简体   繁体   中英

Error while running nodejs project on jenkins

Can someone help please I'm running nodejs project on jenkins and I got this error :

[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

I tried to delete folder C:\\Users\\sam\\.m2\\repository\\org\\apache\\maven\\plugins\\maven-resources-plugin but it doesn't work. I also tried this solution but it doesn't work.

if you use -P nexus to Maven which means "there is a profile called nexus; find it and activate it". Check your environment and your settings.xml for this flag and also look at all elements inside the various XML files

i think you have a profile named nexus if it's true do that :

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

Usually, mvn help:effective-pom is also useful to see what the real POM would look like.

So,

i can't find maven-resources-plugin with 2.8-beta version can you look at maven repo in the link below and use the appropriate version of your plugin and retry.

maven-resources-plugin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM