在项目mvn install的时候有一个报错:
0 1 2 3 4 5 6 7 8 9 10 11 12 |
clean install -Dmaven.test.skip=true [WARNING] The POM for org.apache.rocketmq:spring-boot-starter-rocketmq:jar:1.0.0-SNAPSHOT is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project xxx: Could not resolve dependencies for project com.xx.xxxx:war:0.0.1-SNAPSHOT: Could not find artifact org.apache.rocketmq:spring-boot-starter-rocketmq:jar:1.0.0-SNAPSHOT -> [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 :xxx |
解决方法:
1:找到spring-boot-starter-rocketmq-1.0.0-SNAPSHOT.jar包
2:mvn install:install-file -Dfile=/tmp/spring-boot-starter-rocketmq-1.0.0-SNAPSHOT.jar -DgroupId=org.apache.rocketmq -DartifactId=spring-boot-starter-rocketmq -Dversion=1.0.0-SNAPSHOT -Dpackaging=jarSourceByrd's Weblog-https://note.t4x.org/error/could-not-find-artifact-org-apache-rocketmqspring-boot-starter-rocketmq/
SourceByrd's Weblog-https://note.t4x.org/error/could-not-find-artifact-org-apache-rocketmqspring-boot-starter-rocketmq/
01234 <dependency><groupId>org.apache.rocketmq</groupId><artifactId>spring-boot-starter-rocketmq</artifactId><version>1.0.0-SNAPSHOT</version></dependency>
参考文档:
1:https://github.com/apache/rocketmq-externals/tree/master/rocketmq-spring-boot-starter
2:http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionExceptionSourceByrd's Weblog-https://note.t4x.org/error/could-not-find-artifact-org-apache-rocketmqspring-boot-starter-rocketmq/
SourceByrd's Weblog-https://note.t4x.org/error/could-not-find-artifact-org-apache-rocketmqspring-boot-starter-rocketmq/