Thank you, that was it.
On Friday, December 12, 2014 10:23 AM, Adrien Rivard [via Maven] <[email protected]> wrote: Hi, Your are probably missing <configuration> <source>1.7</source> <target>1.7</target> </configuration> Basically you are using the 1.7 compiler to compile java5 source code to java 5 byte code (1.5 is the default value for source/target IIRC) On Fri, Dec 12, 2014 at 5:11 PM, jeff_gaer <[hidden email]> wrote: > I am building with jdk 1.7 but getting an compiler error that suggests mvn > is > using the 1.5 jdk ( which is not installed). > > error: multi-catch statement is not supported in -source 1.5 > > Here is my environment > > Maven home: /opt/apache-maven-3.0.4 > Java version: 1.7.0_25, vendor: Oracle Corporation > Java home: /usr/java/jdk1.7.0_25/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "2.6.18-274.el5", arch: "i386", family: "unix" > > I have even tried specifically specifying the JDK version in the compile > plugin > > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>3.2</version> > <configuration> > <verbose>true</verbose> > <fork>true</fork> > <executable>${JAVA_HOME}/bin/javac</executable> > <compilerVersion>1.7</compilerVersion> > </configuration> > </plugin> > > > > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Errors-that-look-like-the-compiler-is-using-1-5-jdk-tp5818942.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > -- Adrien Rivard ________________________________ If you reply to this email, your message will be added to the discussion below:http://maven.40175.n5.nabble.com/Errors-that-look-like-the-compiler-is-using-1-5-jdk-tp5818942p5818946.html To unsubscribe from Errors that look like the compiler is using 1.5 jdk, click here. NAML -- View this message in context: http://maven.40175.n5.nabble.com/Errors-that-look-like-the-compiler-is-using-1-5-jdk-tp5818942p5818950.html Sent from the Maven - Users mailing list archive at Nabble.com.
