modified version engineering eclipse jdk

Recently replaced back to eclipse the office, met jdk version of the problem, the industry is now a more popular approach, as follows

Add the following two files to the project's pom.xml,

1. If you do not add this step may report this error Missing artifact jdk.tools:jdk.tools:jar:1.6jdk version

<dependency>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.8</version>
<scope>system</scope>
<systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>

 

2. Because of the requirements in the different versions of jdk project is not the same, we propose to add here the advantage of easy maintenance release

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<!-- Neo4j Procedures require Java 8 -->
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

Guess you like

Origin www.cnblogs.com/xinyumuhe/p/12516405.html