Re: javac: invalid target release: 1.7
Hi, Mac OS X version 10.7.3 java -version java version 1.6.0_31 Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) (because required by project I want to build) The project I want to build is: http://code.google.com/p/cmake-maven-project/source/browse/ The error I am getting when running mvn install is: [ERROR] Failure executing javac, but could not parse the error: javac: invalid target release: 1.7 Usage: javac options source files use -help for a list of possible options I can't upgrade to java 1.7 (if this is the cause of the error). Yup. A compiler target 1.7 means Java 7 is needed for successful compilation. Are there other means to fix this? Install Oracle's recently released Java 7 port for MacOS X on your machine :-) HTH Thorsten
Re: javac: invalid target release: 1.7
[ERROR] Failure executing javac, but could not parse the error: javac: invalid target release: 1.7 Usage: javac options source files use -help for a list of possible options This error message comes directly from javac and means Maven tried to call me with -target 1.7 but I can't do that. This is not a Maven error but merely being reported by Maven. Upgrade to JDK7 on Mac and you should have no such issues. Or change the code so it does not require JDK7 and change the pom.xml configuration. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org