Home  >  Forum  >  Core Java
Post New Query

How to change maven java version 1.7 to 1.6


joined on
April 01,2014
Asked on June 12,2014
In my system, I have JDK 7 and JDK 6. Currently pom.xml is working in JDK 7.

What to change to run it by JDK 6?
joined on
March 14,2013
Replied on June 12,2014

Add code snippet in your pom.xml

<build>
 <plugin>
  <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
 </plugin>
</build>

Write Answer



Sitewide-Feb4of4234x60





Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us