1. 程式人生 > 其它 >maven專案間依賴

maven專案間依賴

說實話,上家公司三個專案(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