2016-08-08 2 views
0

누군가의 도움을 나는 젠킨스에 프로젝트 nodejs 실행 해요시겠습니까 나는이 오류가있어 : 나는 폴더 C:\Users\sam\.m2\repository\org\apache\maven\plugins\maven-resources-plugin을 삭제하려고했습니다오류 젠킨스에 nodejs 프로젝트를 실행하는 동안

[INFO] Building node-js-project::server::node-js-project-appli 0.0.1-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[WARNING] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.8-beta is missing, no dependency information available 
[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Summary: 
[INFO] 
[INFO] node-js-project .................................... SUCCESS [ 1.002 s] 
[INFO] node-js-project::delivery .......................... SUCCESS [ 3.013 s] 
[INFO] node-js-project::server ............................ SUCCESS [ 0.256 s] 
[INFO] node-js-project::server::node-js-project-appli ..... FAILURE [ 0.101 s] 
[INFO] node-js-project::common ............................ SKIPPED 
[INFO] node-js-project::common::vertxstub ................. SKIPPED 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 4.983 s 
[INFO] Finished at: 2016-08-08T10:54:17+02:00 
[INFO] Final Memory: 11M/28M 
[INFO] ------------------------------------------------------------------------ 
[WARNING] The requested profile "nexus" could not be activated because it does not exist. 
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.8-beta or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-resources-plugin:jar:2.8-beta in file:///var/lib/jenkins/workspace/node/node-Build on demand/trunk/server/test-project-appli/../../../repository/maven was cached in the local repository, resolution will not be reattempted until the update interval of node-js-project-local-plugin-repo has elapsed or updates are forced -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException 
[Pipeline] } 
[Pipeline] // dir 
[Pipeline] } 
[Pipeline] // node 
[Pipeline] End of Pipeline 
ERROR: script returned exit code 1 
Finished: FAILURE 

을했지만 작동하지 않습니다. this solution도 시도했지만 작동하지 않습니다.

+0

은 추가? http://stackoverflow.com/questions/4701532/force-maven-update – Tunaki

+0

답을 알고 싶습니다. 나는이 명령을 시도했다 : mvn clean install -U는 당신의 링크에 제안하고 싶지만 같은 오류가있다. – aicha

+0

이것은 불가능하다. '-U' 스위치는 ... 경과 된 업데이트 간격이나 업데이트가 강제로 해결되어 * 동일한 오류를 가질 수 없습니다. 그 후에 nex 오류를 게시하십시오. – Tunaki

답변

0

Maven에 -P nexus를 사용하면 "nexus라는 프로필이있어서 찾아서 활성화하십시오"라는 의미입니다. 이 플래그에 대한 귀하의 환경과 Settings.XML의 확인도

내가이 사실이라면 당신은 프로필 이름 넥서스을 생각하는 다양한 XML 파일 내부의 모든 요소를 ​​보면 않는 : 보통

<activeProfiles> 
    <activeProfile>nexus</activeProfile> 
</activeProfiles> 

, MVN help : effective-pom은 실제 POM이 어떻게 보이는지 확인하는 데 유용합니다. 그래서

,

내가 받는다는 - 자원 - 플러그인 2.8 베타 버전은 아래 링크에서 받는다는의 repo 볼 수 있습니다를 찾아 플러그인의 적절한 버전을 사용하고 다시 시도 할 수 없다. 여기에 표시된 것처럼 당신은`-U` 스위치를 사용해 볼 수

maven-resources-plugin

+0

이름이 nexus 인 프로필이 없습니다. – aicha

관련 문제