maven打包服务中引用了另一个无需运行的服务打包报错

这个必须要说一下,希望大家对大家有帮助! spring boot 多个服务,避免不了有服务依赖,比如使用commen包存放一些工具等等, 例如:需要打包时,因为依赖发生报错, 找不到commen包 [ERROR] Failed to execute goal on project leshangyx_user_service: Could not resolve dependencies for project com.leshangyx.user:leshangyx_user_service:jar:1.0-SNAPSHOT: Could not find artifact com.leshangyx.user:leshangyx_common:jar:1.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 解决办法就是对该服务进行compile,然后install一下,如图 完成操作后,再对父项目进行install,然后大功告成,需要打包的模块就可以成功了,快去试试吧。。。

发布了1 篇原创文章 · 获赞 0 · 访问量 6

猜你喜欢

转载自blog.csdn.net/weixin_44356673/article/details/104032364