idea打包clean时总是报错
Some problems were encountered while building the effective settings
expected START_TAG or END_TAG not TEXT (position: TEXT seen …\r\n -->\r\n \r\n\ua0 \ua0 \ua0 <i… @161:9) @ D:\Maven\apache-maven-3.6.2\conf\settings.xml, line 161, column 9
Unrecognised tag: ‘profile’ (position: START_TAG seen …\r\n -->\r\n \r\n \r\n… @260:10) @ C:\Users\Administrator.m2\settings.xml, line 260, column 10
经过查询网上资料
发现idea2019.2与maven版本不兼容,我的maven版本是3.6.2
1、重新下载maven,下载3.6.0版本
从官网下载maven3.6.0
选择binaries,下载apache-maven-3.6.0-bin.zip
放到本机目录
file–>setting
file–>other setting
重新加载默认的Maven home
2、再次编辑还是报错
将新下载的Maven中的setting.xml文件中添加
<profile>
<id>custom-compiler</id>
<properties>
<JAVA8_HOME>C:\Program Files\Java\jdk1.8.0_131
</JAVA8_HOME>
</properties>
</profile>
<activeProfiles>
<activeProfile>custom-compiler</activeProfile>
</activeProfiles>
3、将mirror的镜像换成国内的
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
4、重新打包
clean&install
在Install时发现使用阿里的镜像比外国的镜快太多了