[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for demo 0.0.1-SNAPSHOT:
[INFO]
[INFO] demo ............................................... FAILURE [18:18 min]
[INFO] admin-service ...................................... SKIPPED
[INFO] user-service ....................................... SKIPPED
[INFO] myweb .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  18:22 min
[INFO] Finished at: 2020-02-15T16:38:31+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.4.RELEASE:repackage (repackage) on project demo: Execution repackage of goal org.springframework.boot:spring-boot-m
aven-plugin:2.2.4.RELEASE:repackage failed: Plugin org.springframework.boot:spring-boot-maven-plugin:2.2.4.RELEASE or one of its dependencies could not be resolved: Could not find artifact org.eclipse
.sisu:org.eclipse.sisu.inject:jar:0.3.2 in nexus-releases (http://localhost:8081/nexus/content/groups/public/) -> [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/PluginResolutionException

maven出现:Failed to execute goal on project ...: Could not resolve dependencies for project ...

[ERROR] Failed to execute goal on project admin-service: Could not resolve dependencies for project com.rock:admin-service:jar:0.0.1-SNAPSHOT: Failure to find org.assertj:assertj-core:jar:3.13.2 in ht
tp://localhost:8081/nexus/content/repositories/central/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus-mirror has elapsed or updates are forc
ed -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :admin-service
maven出现:Failed to execute goal on project ...: Could not resolve dependencies for project ...

pom.xml中的version版本没有及时更新,比如,A依赖B,A的pom.xml中依赖着B的<version>1.0.1<version>,但B已经升级到了1.0.2了,这时候可能B中有很多新东西,如果版本不及时更新,有些依赖资源就会找不到。

下面是idea中,设置setting.xml的方法,路径需要自己更改一下。

 

 

分类:

技术点:

相关文章: