【发布时间】:2012-01-16 08:16:38
【问题描述】:
我在我的网络 nexus 实例上托管 ojdbc14.jar,但似乎只有本地构建通过。
我的 pom 中有这个:
<repositories>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
<id>thirdparty</id>
<url>http://server/nexus/content/repositories/thirdparty</url>
</repository>
</repositories>
完成删除 ~/.m2/ 后,本地 mvn package 将在 nexus 上找到 ojdbc14.jar。相反,我的 jenkins 构建始终失败:
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.csodehaus.mojo:sql-maven-plugin:1.3:execute (sql-ddl) on project mongo-dbunit: Execution
sql-ddl of goal org.codehaus.mojo:sql-maven-plugin:1.3:execute failed: Plugin
org.codehaus.mojo:sql-maven-plugin:1.3 or one of its dependencies could not be resolved: Could not find artifact com.oracle:ojdbc14:jar:10.2.0.4.0 in central
为什么?
(http://repo1.maven.org/maven2)
【问题讨论】:
标签: maven maven-2 jenkins pom.xml