原因 :
主要是maven不能根據(jù)阿里云下載e-iceblue:spire.xls.free:pom:5.1.0匿沛。
報(bào)錯(cuò)信息:
Could not find artifact e-iceblue:spire.xls.free:pom:5.1.0 in nexus-tencenty
正確解決方式:
1.找到自己maven的安裝路徑中的conf文件夾下的settings.xml配置文件抵栈。
/usr/local/Maven/conf/settings.xml
修改前請(qǐng)先備份settings.xml
cd /usr/local/Maven/conf/
cp settings.xml settings.xml0705
2.打開(kāi)setting.xml文件,修改阿里云公共倉(cāng)庫(kù)
vim settings.xml
修改前
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
修改后
<mirror>
<id>nexus-aliyun</id>
<!-- *是不能下載com.e-iceblue的依賴的复斥,需要加入!com.e-iceblue -->
<mirrorOf>*,!com.e-iceblue</mirrorOf>
<name>Nexus aliyun</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
注意:千萬(wàn)千萬(wàn)要注意標(biāo)點(diǎn)符號(hào)字母不要搞錯(cuò)了。
轉(zhuǎn)發(fā)自:https://blog.csdn.net/WANAN0808/article/details/131585079