openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Woods <dwo...@apache.org>
Subject Re: svn commit: r763155 - Build updates for Eclipse JDK5 users
Date Wed, 08 Apr 2009 17:12:52 GMT
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>
> 
> 
> 

Mime
View raw message