Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.1</version>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <configuration>
- <tasks>
- <taskdef name="reversemappingtool"
- classname="org.apache.openjpa.jdbc.ant.ReverseMappingToolTask"/>
- <reversemappingtool
- package="com.xyz.model"
- directory="${basedir}/src/main/java"
- metadata="none"
- generateAnnotations="true"
- >
- <config
- propertiesFile="${basedir}/src/main/resources/META-INF/persistence.xml"/>
- <codeformat
- tabSpaces="4"
- spaceBeforeParen="true"
- braceOnSameLine="false"/>
- </reversemappingtool>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>org.apache.openjpa</groupId>
- <artifactId>openjpa</artifactId>
- <version>2.2.0</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.19</version>
- </dependency>
- </dependencies>
- </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement