openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maxtorzito <maxtorz...@gmail.com>
Subject Re: ReverseMappingTool Maven
Date Sat, 12 May 2012 16:18:20 GMT
Here is the plugin:



<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>

--
View this message in context: http://openjpa.208410.n2.nabble.com/ReverseMappingTool-Maven-tp7550493p7553671.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message