Maven - invalid target release 1.7 with Java 1.7 -


everything seems correct, won't work.

$ sudo mvn clean package ... [info] compilation failure failure executing javac, not parse error: javac: invalid target release: 1.7 

versions :

$ mvn -v apache maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100) java version: 1.7.0_75 java home: /library/java/javavirtualmachines/jdk1.7.0_75.jdk/contents/home/jre  $ java -version java version "1.7.0_75" java(tm) se runtime environment (build 1.7.0_75-b13) java hotspot(tm) 64-bit server vm (build 24.75-b04, mixed mode)  $ echo $java_home /library/java/javavirtualmachines/jdk1.7.0_75.jdk/contents/home/ 

pom.xml :

<plugin>     <groupid>org.apache.maven.plugins</groupid>     <artifactid>maven-compiler-plugin</artifactid>     <version>2.0.2</version>     <configuration>         <source>1.7</source>         <target>1.7</target>     </configuration> </plugin> 

for record :

$ /usr/libexec/java_home /library/java/javavirtualmachines/jdk1.8.0_25.jdk/contents/home 

but don't think problem.

any ideas ?

try updating compiler plugin. version 3.3 latest. if not try using maven 3+


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -