Hudson Maven $ {basedir}无法找到依赖关系

时间:2014-09-25 18:11:58

标签: java maven hudson

我在项目基础上的一个名为lib的目录中创建了一个maven repo。 我可以使用maven来构建这个项目,并从lib目录中的repo获取依赖项。当我尝试使用Hudson构建这个项目时,Hudson无法在lib repo中找到依赖项。

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

      <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>

以下是来自Hudson的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经营)的dir列表似乎在看:

[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]#

任何想法我做错了什么?感谢

1 个答案:

答案 0 :(得分:0)

我进入了哈德森项目并强制maven更新,现在构建工作:S