商城网站的开发怎么做的,excel动态表格图表制作,网站站点断开,品牌电商网站设计最近做微服务项目#xff0c;服务A#xff0c;服务B#xff0c;..#xff0c;服务A依赖B#xff0c;在idea里都可以跑起来#xff0c;但是当打包部署到服务器时#xff0c;懵逼了#xff0c;各种clean package 就是不行#xff0c;总是报找不到类或找不到包#xff0…最近做微服务项目服务A服务B..服务A依赖B在idea里都可以跑起来但是当打包部署到服务器时懵逼了各种clean package 就是不行总是报找不到类或找不到包痛定思通网上各种百度结果试了下这个可以。
在被依赖的B服务pom里添加
build plugins plugin groupIdorg.springframework.boot/groupId artifactIdspring-boot-maven-plugin/artifactId configuration classifierexec/classifier /configuration /plugin /plugins /build 其他模块
buildpluginsplugingroupIdorg.springframework.boot/groupIdartifactIdspring-boot-maven-plugin/artifactId executionsexecutiongoalsgoalrepackage/goal/goals/execution/executions/plugin/plugins
/build然后clean package 就可以了 注意如果你的配置文件就是如上配置那么你需要在maven打包的时候install一下就可以依赖了