Home  >  Forum  >  Core Java
Post New Query

How to change maven java version 1.7 to 1.6



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?



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




©2019 concretepage.com | Privacy Policy | Contact Us