设置maven创建工程的jdk编译版本
2024-09-06 03:50:16
方式一:在maven的主配置文件中指定创建工程时使用jdk1.8版本
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
方式二:创建项目后自定义
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>utf-8</encoding>
</configuration>
</plugin>
最新文章
- 《BI项目笔记》SSAS部署时发生的问题——元数据管理器中存在错误 解决办法
- 区间dp的典例
- <;?php $sql = <;<;<;EOF 。。。。EOF;?>;这种写法是什么意思
- git 在苹果系统中的一些命令
- MvcPager分页控件以适用Bootstrap
- CentOS7.2安装jdk7u80
- git自动部署到服务器
- 网络编程基础【day09】:socket接收大数据(五)
- oracle 子查询中null的问题(in 和 not in)
- c++ 可变参数模板
- 第16月底18天 phpstudy设置
- redis参数改进建议
- noip第9课资料
- 蒙特卡罗(Monte Carlo)方法简介
- ubuntu下安装h2数据库
- Hibernate中用left join(左外连接)查询映射中没有关联关系的两个表记录问题
- git的使用(入门)
- protobuf编码
- ios开关按钮
- ConcurrentHashMap的使用