5-9 项目改造成多模块 引入jar包找不到问题
来源:5-9 项目改造成多模块
王铭远
2019-02-26
改造多模块后 一直报引入不了spring 的jar包 还有jpa等都会报错
写回答
2回答
-
你在命令行里打包可以吗?我试了7-8代码打包是没问题的。
mvn clean package -Dmaven.test.skip=true -U
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ product-client --- [INFO] Building jar: /Users/admin/code/myProjects/java/imooc/SpringCloud_Sell/product/client/target/product-client-0.0.1-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] product 0.0.1-SNAPSHOT ............................. SUCCESS [ 0.106 s] [INFO] product-common ..................................... SUCCESS [ 1.030 s] [INFO] product-server ..................................... SUCCESS [ 1.469 s] [INFO] product-client 0.0.1-SNAPSHOT ...................... SUCCESS [ 0.135 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.049 s [INFO] Finished at: 2019-02-28T00:12:31+08:00 [INFO] ------------------------------------------------------------------------ ➜ product git:(7-8) ➜ product git:(7-8) ➜ product git:(7-8) ➜ product git:(7-8) mvn clean package -Dmaven.test.skip=true -U
022019-03-01 -
廖师兄
2019-02-26
对比下5-9的源码,源码获取方式见源码获取章节。
022019-02-26
SpringCloud Finchley(M2+RELEASE+SR2)微服务实战
SpringCloud组件实现微服务,【已升级Finchley.Release】
5668 学习 · 2489 问题
相似问题