2013-05-02 1 views
1

При создании приложения Maven в Дженкинс я получаю следующее сообщение об ошибкене смог найти артефакт в то время как работает 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) 

Есть ли способ, чтобы ограничить результаты поиска мавена в нескольких РЕПО?

ответ

0

Этот артефакт кажется очень старым. Я нашел его в этом репозитории Maven:

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

Добавить репозиторий в ПОМ вашего в Maven.

+0

Большое спасибо Жан. Он работает сейчас! – Kiran

+0

Подтвердите свой ответ, пожалуйста :) –

Смежные вопросы