jenkins.io
jenkins.io copied to clipboard
IntelliJ Setup for Jenkins Core Development page - Failure to install Jenkins core for the first time
Problem with the IntelliJ Setup for Jenkins Core Development page, source file
Running the steps as described in InteliJ I am getting the following output and errors when trying to build the core for the first time (clean install):
mvn -am -pl war,bom -DskipTests -Dspotbugs.skip clean install
[INFO] Scanning for projects...
[WARNING] The artifact xml-apis:xml-apis:jar:2.0.2 has been relocated to xml-apis:xml-apis:jar:1.0.b2
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Jenkins main module [pom]
[INFO] Jenkins BOM [pom]
[INFO] Jenkins cli [jar]
[INFO] Jenkins core [jar]
[INFO] Jenkins war [war]
[INFO]
[INFO] -----------------< org.jenkins-ci.main:jenkins-parent >-----------------
[INFO] Building Jenkins main module 2.327-SNAPSHOT [1/5]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Jenkins main module 2.327-SNAPSHOT:
[INFO]
[INFO] Jenkins main module ................................ FAILURE [ 0.004 s]
[INFO] Jenkins BOM ........................................ SKIPPED
[INFO] Jenkins cli ........................................ SKIPPED
[INFO] Jenkins core ....................................... SKIPPED
[INFO] Jenkins war ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.565 s
[INFO] Finished at: 2021-12-21T18:49:10+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase ".skip". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-i
d>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generat
e-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resour
ces, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, ins
tall, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/LifecyclePhaseNotFoundException
I had to remove the -Dspotbugs.skip to get it running.
I suggest that someone who knows about this whole installation process to review if all these steps are needed or InteliJ is doing something automatic because it did download a lot of dependencies on its own before I had to write anything in the terminal.
Note that this happens when running the command mvn -am -pl war,bom -DskipTests -Dspotbugs.skip -Dspotless.check.skip clean install in InteliJ terminal. When running the same command in a separate cmd terminal window it succeeds. Using Windows 10 x64.
I didnt think there's a difference between InteliJ terminal and windows terminal (Git Bash CMD for that matter) that's relevant to this command.
Is your IntelliJ configured to run a different version of Apache Maven than the version used by Jenkins? We've seen reports in the past from users who were surprised that their IntelliJ was configured to use Apache Maven 3.6.3 when the minimum Apache Maven version for Jenkins development is 3.8.1.
Hey if this issue still has not been resolved. I would like to work on this.