【问题标题】:could not find artifact while running maven build in jenkins在詹金斯中运行maven build时找不到工件
【发布时间】:2013-05-02 10:53:48
【问题描述】:

在 jenkins 中构建 maven 应用程序时出现以下错误

    [ERROR] Artifact: com.envoisolutions.sxc:sxc-runtime:jar:0.7.3-osgi has no file.
org.apache.maven.artifact.resolver.ArtifactNotFoundException: Could not find artifact com.envoisolutions.sxc:sxc-runtime:jar:0.7.3-osgi in central (http://repo.maven.apache.org/maven2)

org.apache.maven.artifact.resolver.ArtifactNotFoundException: Could not find artifact xpp3:xpp3_min:jar:1.1.3.4.O-osgi in central (http://repo.maven.apache.org/maven2)

Try downloading the file manually from the project website.

Then, install it using the command: 
    mvn install:install-file -DgroupId=xpp3 -DartifactId=xpp3_min -Dversion=1.1.3.4.O-osgi -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there: 
    mvn deploy:deploy-file -DgroupId=xpp3 -DartifactId=xpp3_min -Dversion=1.1.3.4.O-osgi -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  xpp3:xpp3_min:jar:1.1.3.4.O-osgi

from the specified remote repositories:
  central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false),
  codehaus-releases (http://repository.codehaus.org/, releases=true, snapshots=true),
  java.net (http://download.java.net/maven/2/, releases=true, snapshots=true),
  central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false)

有什么办法可以限制对maven的搜索到几个repos?

【问题讨论】:

    标签: jenkins maven-3


    【解决方案1】:

    这件神器似乎很古老。 我在这个 Maven 存储库中找到了它:

    https://teamcity-systeme.lip6.fr/nexus/content/groups/public

    将此 repo 添加到 Maven 的 pom。

    【讨论】:

    • 请验证我的答案:)
    猜你喜欢
    • 1970-01-01
    • 2015-03-02
    • 2017-01-29
    • 2012-09-30
    • 2014-07-24
    • 2018-02-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多