- common子模块已经移除fastjson
- controller模块打包的时候还是依然报错
- Could not resolve dependencies for project com.xiaomi.mipass:mipass-stats-controller:war:0.0.1-SNAPSHOT: Failure to find com.alibaba:fastjson:jar:1.2.21 in http://xxx/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
- 这是子模块未deploy的缘故,maven打包的时候看不到,移除操作;
- 但是编译器idea确当做已经移除处理,所以tree dependency查不出来alibaba:fastjson:jar的依赖情况
- 两种解决办法:
- deploy common子模块
- 在controller的pom文件中引入common子模块中加上
-
<exclusion> <artifactId>fastjson</artifactId> <groupId>com.alibaba</groupId> </exclusion>
-
来源:oschina
链接:https://my.oschina.net/u/3847203/blog/4537891