報錯:
? ? ? ? 1、Failure to find bad.robot:simple-excel:jar:1.0 in https://maven.aliyun.com/repository/public was cached in the local repository, resolution will not be reattempted until the update interval of aliyunmaven has elapsed or updates are forced
? ? ? ? 2、Could not find artifact bad.robot:simple-excel:pom:1.0 in aliyunmaven (https://maven.aliyun.com/repository/public)
注:有關于maven的報錯都可以嘗試。
自己的解決方法:
(可能是idea的問題,項目只能加載maven版本目錄下的settings文件,設置其他如settings1、settings2名字的文件不會被識別)
? ? ? ? 下圖的idea里maven設置中,settings文件設置時如果設置的名字不是“settings.xml”,可能會導致報錯。可以將原settings文件修改名字如settings1.xml,將自己項目需要的settings文件名字修改為settings.xml。