Intellij Idea maven项目每次更新自动更新java compiler 和 language leval

news/2024/7/6 2:03:09

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

如标题,解决方法网上有个统一的说法,就是在pom中增加

<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>

因为一个模块涉及了多个项目,需要修改多个pom 很不方面, 后来修改了maven目录下的settings.xml

	<profile>  
		<id>jdk18</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>
```	
在idea中可以发现这个东东![输入图片说明](https://static.oschina.net/uploads/img/201707/18194119_3ErS.jpg "在这里输入图片标题")

默认勾选即使用我们的设置
	    

转载于:https://my.oschina.net/u/1417838/blog/1457129


http://www.niftyadmin.cn/n/3532711.html

相关文章

【分页问题】elasticsearch 深分页问题以及解决方法

本文主要参考&#xff1a; 1、https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html2、《Elasticsearch权威指南》好&#xff0c;下面上货。首先介绍一下&#xff0c;什么是深分页问题。当使用elasticsearch进行分页查询的时候我们使用…

10 UI线程阻塞及其优化

1、button1移动30次的小动画&#xff1a; Ui_thread01Activity.java: public class Ui_thread01Activity extends Activity {/** Called when the activity is first created. */Overridepublic void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState)…

dubbo-zookeeper

说到分布式&#xff0c;大家可能很快就能想到阿里巴巴的dubbo,zoookeeper集群&#xff0c;目前spring-cloud也是比较热门的&#xff0c;spring-cloud是基于spinrg-boot之上进行协作的&#xff0c; 接下来就先说一下使用dubbo远程接口调用和zookeeper集群 1、首先创建一个maven工…

棋盘问题总结

我们在研究问题时经常能碰到这一类为题&#xff1a;在某个棋盘上有一种棋子&#xff0c;问最多放下几个棋子。或者有一堆棋子&#xff0c;问你移去最少的棋子数目&#xff0c;使得剩下来的棋子两两不攻击。 先看下面这道题 问题 E: P1035 时间限制: 1 Sec 内存限制: 128 MB提交…

javascript的rsa加密和python的rsa解密

先说下目前测试情况&#xff1a;javascript加密后的数据&#xff0c;python无法完成解密&#xff0c;我估计是两者的加密解密方法不同 1、看了这篇文章&#xff1a;http://blog.nsfocus.net/python-js-encrypts-post-form-data-rsa-algorithm/ &#xff0c;然后网上搜索了下&am…

上传excel文件存到服务器并且读取sheet

// 文件目录String fileNameuploadFile.getFileItem().getName();//文件名String uploadDir SystemProperties.getProperty("upload.dir");//获取系统时间SimpleDateFormat simpleDateFormat new SimpleDateFormat("yyyyMMdd"); Date date new Date()…

Ionic2如何下拉刷新和上拉加载

2019独角兽企业重金招聘Python工程师标准>>> http://www.cnblogs.com/hujinshui/p/6404798.html 转载于:https://my.oschina.net/yizhichao/blog/1476698

轻轻松松教你写日志-超级简单

近期在做一个项目。涉及到非常多的服务&#xff0c;一步步调试相当麻烦&#xff0c;要在自己电脑上公布非常多服务&#xff0c;又要所有开启。非常费时间。出现故障&#xff0c;怎么解决最快呢&#xff1f;直接写日志&#xff0c;一步定位哪里出了错。Log4Net库是一个帮助程序猿…