繁体   English   中英

Hudson Maven $ {basedir}找不到依赖项

[英]Hudson Maven ${basedir} can't find dependency

我在项目基础中的名为lib的目录中创建了一个Maven存储库。 我可以使用maven来构建此项目,并从lib目录中的存储库中获取依赖项。 当我尝试使用Hudson构建该项目时,Hudson在lib存储库中找不到依赖项。

以下是项目pom的相关部分:

      <dependency>
         <groupId>manitou</groupId>
         <artifactId>manitou.cxf.jar</artifactId>
         <version>1.0.0</version>
      </dependency>

   </dependencies>

   <repositories>
    <repository>
      <id>ErpClientsLibRepo</id>
      <url>file://${basedir}/lib</url>
    </repository>
  </repositories>

这是从哈德森(Hadson)运行时来自Maven的错误:

[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project DigabitERPClients: Could not resolve dependencies for project com.digabit:DigabitERPClients:jar:1.2.0: Failure to find manitou:manitou.cxf.jar:jar:1.0.0 in file:///opt/eng/hudson/jobs/20-DigabitJParent/workspace/DigabitErpClients/lib was cached in the local repository, resolution will not be reattempted until the update interval of ErpClientsLibRepo has elapsed or updates are forced
[DEBUG] Closing connection to remote
[ERROR] Failed to execute goal on project DigabitERPClients: Could not resolve dependencies for project com.digabit:DigabitERPClients:jar:1.2.0: Failure to find manitou:manitou.cxf.jar:jar:1.0.0 in file:///opt/eng/hudson/jobs/20-DigabitJParent/workspace/DigabitErpClients/lib was cached in the local repository, resolution will not be reattempted until the update interval of ErpClientsLibRepo has elapsed or updates are forced -> [Help 1]

这是Maven(由Hudson运行)似乎正在查看的路径上的目录清单:

[root@vail lib]# cd /opt/eng/hudson/jobs/20-DigabitJParent/workspace/DigabitErpClients/lib
[root@vail lib]# ls
manitou
[root@vail lib]# ls manitou/
manitou.cxf.jar
[root@vail lib]#

有什么想法我做错了吗? 谢谢

我进入hudson项目并强迫Maven更新,现在构建工作:S

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM