maven configure default jdk version

Modify the pom.xml file of the maven project,

Add to,

1
2
3
4
5
6
7
8
9
10
11
12
13
< build
     < plugins
         < plugin
             < groupId >org.apache.maven.plugins</ groupId
             < artifactId >maven-compiler-plugin</ artifactId
             < version >2.0.2</ version
             < configuration
                 < source >1.8</ source
                 < target >1.8</ target
             </ configuration
         </ plugin
     </ plugins
</ build

That's it. 

 

reprint

 

 http://blog.csdn.net/zhaoyongnj2012/article/details/23970451

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327016359&siteId=291194637