openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Sutter <kwsut...@gmail.com>
Subject Re: metamodel with maven compiler 3.0?
Date Thu, 10 Jan 2013 16:31:30 GMT
Hi Romain,
Is there some reason why you must use Maven 3.0?  Since OpenJPA identified
it's requirement as 2.5.1, I'm not clear on what the question or issue is.
If you want to figure out how OpenJPA can support Maven 3.0, then
submitting a proposed patch would be beneficial and welcome.

Thanks,
Kevin

On Wed, Jan 9, 2013 at 7:33 AM, Romain Manni-Bucau <rmannibucau@gmail.com>wrote:

> Hi guys,
>
>
> did you check the metamodel was correctly generated with maven compiler
> 3.0? with 2.5.1 it works smoothly but with 3.0 nothing is generated
>
> here the config
>
>
> <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-compiler-plugin</artifactId>
>         <version>2.5.1</version>
>         <executions>
>           <execution>
>             <id>generate-entity-metamodel</id>
>             <phase>generate-sources</phase>
>             <goals>
>               <goal>compile</goal>
>             </goals>
>             <configuration>
>               <source>1.6</source>
>               <target>1.6</target>
>               <optimize>true</optimize>
>               <showDeprecation>true</showDeprecation>
>               <showWarnings>true</showWarnings>
>
>
> <compilerArguments><Aopenjpa.metamodel>true</Aopenjpa.metamodel></compilerArguments>
>
>
> <generatedSourcesDirectory>${project.build.directory}/generated-sources</generatedSourcesDirectory>
>             </configuration>
>           </execution>
>           <execution>
>             <id>compile</id>
>             <phase>compile</phase>
>             <goals>
>               <goal>compile</goal>
>             </goals>
>             <configuration>
>               <source>1.6</source>
>               <target>1.6</target>
>             </configuration>
>           </execution>
>         </executions>
>         <dependencies>
>           <dependency>
>             <groupId>org.apache.openjpa</groupId>
>             <artifactId>openjpa</artifactId>
>             <version>2.2.0</version>
>           </dependency>
>         </dependencies>
>       </plugin>
>
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message