You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Donald Woods <dw...@apache.org> on 2009/04/08 19:12:52 UTC
Re: svn commit: r763155 - Build updates for Eclipse JDK5 users
For those using Eclipse and JDK5, you'll need to update the
openjpa-persistence project to also exclude the
AnnotationProcessor6.java file either through the UI or by adding the
following <classpathentry> to the openjpa-persistence/.classpath -
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry
excluding="org/apache/openjpa/persistence/meta/AnnotationProcessor6.java"
kind="src" path="src/main/java"/>
. . .
-Donald
ppoddar@apache.org wrote:
> Author: ppoddar
> Date: Wed Apr 8 09:37:04 2009
> New Revision: 763155
>
> URL: http://svn.apache.org/viewvc?rev=763155&view=rev
> Log:
> Skip compiling JDK6 dependent class on JDK5 profile
>
> Modified:
> openjpa/trunk/openjpa-persistence/pom.xml
>
> Modified: openjpa/trunk/openjpa-persistence/pom.xml
> URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/pom.xml?rev=763155&r1=763154&r2=763155&view=diff
> ==============================================================================
> --- openjpa/trunk/openjpa-persistence/pom.xml (original)
> +++ openjpa/trunk/openjpa-persistence/pom.xml Wed Apr 8 09:37:04 2009
> @@ -44,18 +44,26 @@
> <artifactId>geronimo-jpa_2.0_spec</artifactId>
> </dependency>
> </dependencies>
> - <build>
> - <plugins>
> - <plugin>
> - <groupId>org.apache.maven.plugins</groupId>
> - <artifactId>maven-compiler-plugin</artifactId>
> - <configuration>
> - <excludes>
> - <exclude>**/AnnotationProcessor6.java</exclude>
> - </excludes>
> - </configuration>
> - </plugin>
> - </plugins>
> - </build>
>
> + <profiles>
> + <profile>
> + <id>jdk5-compiler</id>
> + <build>
> + <plugins>
> + <plugin>
> + <groupId>org.apache.maven.plugins</groupId>
> + <artifactId>maven-compiler-plugin</artifactId>
> + <configuration>
> + <excludes>
> + <exclude>**/AnnotationProcessor6.java</exclude>
> + </excludes>
> + </configuration>
> + </plugin>
> + </plugins>
> + </build>
> + <activation>
> + <jdk>1.5</jdk>
> + </activation>
> + </profile>
> + </profiles>
> </project>
>
>
>