zoukankan      html  css  js  c++  java
  • 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>

  • 相关阅读:
    BAT脚本打印空行的使用方法
    Shell脚本关于屏幕输出的字符进行颜色控制的问题
    shell脚本中切换用户执行相应的命令或者shell脚本的方法
    Linux下执行的java命令重定向到文件中的方法
    解决Firefox浏览器每次打开都弹出导入向导的问题
    解决Ruby在IE11中报Unable to get browser (Selenium::WebDriver::Error::NoSuchWindowError)的错误
    6月28日 Django form组件 和 modelform组件
    6月27日 ajax
    6月25日 Django 分页 cookie、session
    6月26日 Django 中间件
  • 原文地址:https://www.cnblogs.com/zhjh256/p/6086114.html
Copyright © 2011-2022 走看看