这个必需要说一下,但愿你们对你们有帮助! 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,而后大功告成,须要打包的模块就能够成功了,快去试试吧。。。spring