如何修改maven的默认jdk版本
1个回答
展开全部
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.compile.version>1.8</project.compile.version>
<testng.version>6.9.10</testng.version>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>${project.compile.version}</source>
<target>${project.compile.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
</plugins>
</build>
<project.compile.version>1.8</project.compile.version>就是JDK的版本
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询