说实话,上家公司三个项目(A、B、C)同时依赖另一个项目(D),以前从没有出现过任何依赖问题,操作方式也就是每当D发生改动后,直接install D,然后A、B、C就能依赖到新的jar。
来到新公司后,代码出现了依赖的错误,install后发现依然依赖的旧的jar,一开始一直不知道为什么,后来才发现install的目录不对,不是maven的仓库,而是安装到了c盘。
下面是改好maven后的提示
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ weather-service-server ---
[INFO] Installing D:\IdeaProjects\weather-service\weather-service-server\target\weather-service-server.jar to E:\wisdom\repository\com\rn\smart\weather-service-server\0.0.1-SNAPSHOT\weather-service-server-0.0.1-SNAPSHOT.jar
[INFO] Installing D:\IdeaProjects\weather-service\weather-service-server\pom.xml to E:\wisdom\repository\com\rn\smart\weather-service-server\0.0.1-SNAPSHOT\weather-service-server-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] weather-service .................................... SUCCESS [ 0.633 s]
[INFO] weather-service-common ............................. SUCCESS [ 1.048 s]
[INFO] weather-service-client ............................. SUCCESS [ 0.267 s]
[INFO] weather-service-server ............................. SUCCESS [ 1.876 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS