resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced
2017-04-20 10:47
537 查看
Maven在执行中报错:
原因是有些jar包没有完全下载下来,在编译中找不到jar包。
解决方法是 在setting.xml中增加一个更新策略,如下:
- Failure to transfer org.slf4j:slf4j-api:jar:1.7.24 from http://localhost:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced.
原因是有些jar包没有完全下载下来,在编译中找不到jar包。
解决方法是 在setting.xml中增加一个更新策略,如下:
<profiles> <profile> <id>nexus</id> <!--所有请求均通过镜像 --> <repositories> <repository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled><updatePolicy>always</updatePolicy></releases> <snapshots><enabled>true</enabled><updatePolicy>always</updatePolicy></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled><updatePolicy>always</updatePolicy></releases> <snapshots><enabled>true</enabled><updatePolicy>always</updatePolicy></snapshots> </pluginRepository> </pluginRepositories> </profile> <profile> <id>jdk-1.7</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.7</jdk> </activation> <properties> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion> </properties> </profile> </profiles>
相关文章推荐
- Failure to find xxx in xxx was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced @ xxx
- Maven-010-maven 编译报错:Failure to ... in ... was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced.
- resolution will not be reattempted until the update interval of central has elapsed or updates are f
- was cached in the local repository, resolution will not be reattempted until the update interval of
- was cached in the local repository, resolution will not be reattempted until the update interval of
- was cached in the local repository, resolution will not be reattempted until the update interval of
- cached in the local repository, resolution will not be reattempted until the update interval of RIIL
- 解决 Maven was cached in the local repository, resolution will not be reattempted until the update interv
- Maven错误:was cached in the local repository, resolution will not be reattempted until the update
- Maven was cached in the local repository, resolution will not be reattempted until the update interv
- resolution-will-not-be-reattempted-until-the-update-interval-of
- was cached in the local repository, resolution will not be reattempted until(Maven常见问题)
- was cached in the local repository, resolution will not be reattempted until
- was cached in the local repository, resolution will not be reattempted until(Maven常见问题)
- Maven经典错误之三:was cached in the local repository, resolution will not be reattempted until the upda
- cached in the local repository, resolution will not be reattempted
- the create feature task could not be completed,the coordinates or measures are out of bounds
- The ratio of reported blocks 0.0000 has not reached the threshold 0.9990. Safe mode will be turned o
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved