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,而後大功告成,須要打包的模塊就能夠成功了,快去試試吧。。。spring

相關文章
相關標籤/搜索