Vote count:
0
I'm struggling a bit with hibernate reverse engineering using maven from the command line and from eclipse.
1) How do I get my newly created DelegatingReverseEngineeringStrategy class into the maven classpath so that it actually gets called?
2) What do I have to do to get my pom.xml to be callable from eclipse? e.g. "Run as...". Eclipse seems to want "goals" to be set, yet when I run "mvn hibernate3:hbm2java" on the commandline, I get my classes just fine.
Thanks for any help.
Here's the pom:
<project xmlns="http://ift.tt/IH78KX" xmlns:xsi="http://ift.tt/ra1lAU"
xsi:schemaLocation="http://ift.tt/IH78KX http://ift.tt/HBk9RF">
<modelVersion>4.0.0</modelVersion>
<groupId>com.rcs.modelgen</groupId>
<artifactId>rcs_modelgen</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>rcs_modelgen</name>
<url>http://ift.tt/19pvvEY;
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<version>1.0.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-tools</artifactId>
<version>3.2.0.ga</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.3.8.Final</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<!-- Here starts the hibernate reverse engineering stuff -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<components>
<component>
<name>hbm2java</name>
<implementation>jdbcconfiguration</implementation>
<outputDirectory>src/main/java</outputDirectory>
</component>
</components>
<componentProperties>
<revengfile>src/main/resources/reveng.xml</revengfile>
<propertyfile>src/main/resources/hibernate.properties</propertyfile>
<packagename>com.rcs.model</packagename>
<jdk5>true</jdk5>
<ejb3>true</ejb3>
</componentProperties>
</configuration>
<dependencies>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>2.2.2</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version> 9.4-1201-jdbc41</version>
</dependency>
</dependencies>
</plugin>
<!-- Here ends the hibernate reverse engineering stuff -->
</plugins>
</build>
</project>
asked 15 secs ago
Maven task Hibernate reverse engineering
Aucun commentaire:
Enregistrer un commentaire