首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在jenkins中运行maven build时找不到工件

在jenkins中运行maven build时找不到工件
EN

Stack Overflow用户
提问于 2013-05-02 18:53:49
回答 1查看 1.7K关注 0票数 1

在jenkins中构建maven应用程序时,我得到以下错误

代码语言:javascript
复制
    [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范围内?

EN

回答 1

Stack Overflow用户

发布于 2013-05-06 23:27:39

这件文物看起来很古老了。我在这个Maven存储库中找到了它:

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

将此存储库添加到Maven的pom中。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16336225

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档