The POM for XXX:jar:${com.ld.base.service.version} is missing, no dependency information available


最近有個jar改了名字后,有個依賴它的工程死活引用的是老名字,導致打包的時候出錯,如下所示:

[INFO] ------------------------------------------------------------------------
[INFO] Building com.ld.base.runtime 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.jxls:jxls:jar:1.0.8 is missing, no dependency information available
[WARNING] The POM for com.ld.base:com.ld.base.service:jar:${com.ld.base.service.version} is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.644 s
[INFO] Finished at: 2016-11-21T12:02:22+08:00
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project com.ld.base.runtime: Could not resolve dependencies for project com.ld.base:com.ld.base.runtime:war:1.0.0-SNAPSHOT: Failure to find com.ld.base:com.ld.base.service:jar:${com.ld.base.service.version} in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]

仔細檢查了,肯定沒有引用了,並且本地倉庫、可能的classpath都刪除重新force update了、工程都刪除重新從svn更新了,還是報這個錯。

最后實在沒轍,通過人工添加個不存在引用來繞過去,如下所示:

<properties>
<com.ld.base.service.version>1.0.0-SNAPSHOT</com.ld.base.service.version>
</properties>

<dependency>
<groupId>com.ld.base</groupId>
<artifactId>com.ld.base.service</artifactId>
<version>${com.ld.base.service.version}</version>
<scope>system</scope>
<systemPath>d:/jar/com.ld.base.service-1.0.0-SNAPSHOT.jar</systemPath>
</dependency>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM