У меня есть maven repo в каталоге lib в базе моего проекта. Я могу использовать maven для создания этого проекта и получения зависимостей из репо в каталоге lib. Когда я пытаюсь построить этот проект с помощью 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>
Здесь находятся ошибки из 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 (As под управлением Hudson), похоже, выглядит так:
[[email protected] lib]# cd /opt/eng/hudson/jobs/20-DigabitJParent/workspace/DigabitErpClients/lib
[[email protected] lib]# ls
manitou
[[email protected] lib]# ls manitou/
manitou.cxf.jar
[[email protected] lib]#
Любые идеи, что я делаю неправильно? Благодаря
Если вы не используете менеджер хранилища начать использовать один и развернуть эти артефакты в менеджер хранилища и Hudson будет доступ к ним. – khmarbaise