[ERROR] Failed to execute goal on project jdong: Could not resolve dependencies for project jdong:jar:1.0.3: Failure to find com.lowagie:itextasian:jar:1.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Process finished with exit code 1
使用idea开发时,maven项目install时,出现此错误的可能原因是:
setting.xml文件没有配置
或者
没有拉最新的代码,导致依赖出问题。
或者
pom.xml中的version版本没有及时更新,比如,A依赖B,A的pom.xml中依赖着B的<version>1.0.1<version>,但B已经升级到了1.0.2了,这时候可能B中有很多新东西,如果版本不及时更新,有些依赖资源就会找不到。
下面是idea中,设置setting.xml的方法,路径需要自己更改一下。