116970u
 1 <!-- 局部jdk配置,pom.xml中 -->  
 2     <build>    
 3         <plugins>    
 4             <plugin>    
 5                 <groupId>org.apache.maven.plugins</groupId>    
 6                 <artifactId>maven-compiler-plugin</artifactId>    
 7                 <configuration>    
 8                     <source>1.8</source>    
 9                     <target>1.8</target>    
10                 </configuration>    
11             </plugin>    
12         </plugins>    
13     </build>  

 

 1 <!-- 全局jdk配置,settings.xml -->  
 2     <profile>    
 3         <id>jdk18</id>    
 4         <activation>    
 5             <activeByDefault>true</activeByDefault>    
 6             <jdk>1.8</jdk>    
 7         </activation>    
 8         <properties>    
 9             <maven.compiler.source>1.8</maven.compiler.source>    
10             <maven.compiler.target>1.8</maven.compiler.target>    
11             <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>    
12         </properties>     
13     </profile>    

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-11-29
  • 2021-12-25
  • 2021-10-04
  • 2021-07-29
  • 2021-05-24
猜你喜欢
  • 2021-09-13
  • 2021-07-12
  • 2021-08-02
  • 2021-12-25
相关资源
相似解决方案