Maven frontend plugin is running twice on mvn install - maven

The frontend module pom is just configured with:
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.12.1</version>
<configuration>
<workingDirectory>./</workingDirectory>
<nodeVersion>v18.8.0</nodeVersion>
<npmVersion>8.18.0</npmVersion>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
</execution>
<execution>
<id>npm run build</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>
</plugin>
And in angular.json I just changed the target to get the maven clean plugin working without extra configuration:
"outputPath": "target/frontend",
Result when inside the module directory:
mvn package: executed once
mvn install: executed twice
Logs:
mvn install -DskipTests
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< com.foo.datagen:frontend >-------------------
[INFO] Building frontend 0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- frontend-maven-plugin:1.12.1:install-node-and-npm (install node and npm) # frontend ---
[INFO] Node v18.8.0 is already installed.
[INFO] NPM 8.18.0 is already installed.
[INFO]
[INFO] --- frontend-maven-plugin:1.12.1:npm (npm install) # frontend ---
[INFO] Running 'npm install' in /.../frontend
[INFO]
[INFO] added 1040 packages, and audited 1041 packages in 22s
[INFO]
[INFO] 123 packages are looking for funding
[INFO] run `npm fund` for details
[INFO]
[INFO] 11 high severity vulnerabilities
[INFO]
[INFO] To address issues that do not require attention, run:
[INFO] npm audit fix
[INFO]
[INFO] To address all issues (including breaking changes), run:
[INFO] npm audit fix --force
[INFO]
[INFO] Run `npm audit` for details.
[INFO]
[INFO] --- frontend-maven-plugin:1.12.1:npm (npm run build) # frontend ---
[INFO] Running 'npm run build' in /.../frontend
[INFO]
[INFO] > frontend#0.0.0 build
[INFO] > ng build
[INFO]
[INFO] - Generating browser application bundles (phase: setup)...
[INFO] Processing legacy "View Engine" libraries:
[INFO] - #ctrl/ngx-codemirror [es2015/esm2015] (scttcper/ngx-codemirror)
[INFO] Encourage the library authors to publish an Ivy distribution.
[INFO] ✔ Browser application bundle generation complete.
[INFO] ✔ Browser application bundle generation complete.
[INFO] - Copying assets...
[INFO] ✔ Copying assets complete.
[INFO] - Generating index html...
[INFO] ✔ Index html generation complete.
[INFO]
[INFO] Initial Chunk Files | Names | Raw Size | Estimated Transfer Size
[INFO] main.c1261d1eeee700ca.js | main | 2.04 MB | 435.69 kB
[INFO] scripts.90b6764e1f8f981b.js | scripts | 481.01 kB | 45.68 kB
[INFO] styles.f9e27c2e36f079fb.css | styles | 291.76 kB | 33.56 kB
[INFO] polyfills.21fceb59526882bc.js | polyfills | 33.13 kB | 10.74 kB
[INFO] runtime.896b07ca8815e68d.js | runtime | 1.19 kB | 684 bytes
[INFO]
[INFO] | Initial Total | 2.83 MB | 526.34 kB
[INFO]
[INFO] Build at: 2022-10-30T09:37:17.525Z - Hash: 069c25b6955c3763 - Time: 12770ms
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) # frontend ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /.../frontend/src/main/resources
[INFO] skip non existing resourceDirectory /.../frontend/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) # frontend ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) # frontend ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /.../frontend/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) # frontend ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) # frontend ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) # frontend ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /.../frontend/target/frontend-0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-failsafe-plugin:3.0.0-M7:integration-test (default) # frontend ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-failsafe-plugin:3.0.0-M7:verify (default) # frontend ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) # frontend ---
[INFO] Installing /.../frontend/target/frontend-0.1-SNAPSHOT.jar to /.../frontend/0.1-SNAPSHOT/frontend-0.1-SNAPSHOT.jar
[INFO] Installing /.../frontend/pom.xml to /.../frontend/0.1-SNAPSHOT/frontend-0.1-SNAPSHOT.pom
[INFO]
[INFO] >>> maven-surefire-report-plugin:3.0.0-M7:report (default) > [surefire]test # frontend >>>
[INFO]
[INFO] --- frontend-maven-plugin:1.12.1:install-node-and-npm (install node and npm) # frontend ---
[INFO] Node v18.8.0 is already installed.
[INFO] NPM 8.18.0 is already installed.
[INFO]
[INFO] --- frontend-maven-plugin:1.12.1:npm (npm install) # frontend ---
[INFO] Running 'npm install' in /.../frontend
[INFO]
[INFO] removed 1 package, and audited 1041 packages in 2s
[INFO]
[INFO] 123 packages are looking for funding
[INFO] run `npm fund` for details
[INFO]
[INFO] 11 high severity vulnerabilities
[INFO]
[INFO] To address issues that do not require attention, run:
[INFO] npm audit fix
[INFO]
[INFO] To address all issues (including breaking changes), run:
[INFO] npm audit fix --force
[INFO]
[INFO] Run `npm audit` for details.
[INFO]
[INFO] --- frontend-maven-plugin:1.12.1:npm (npm run build) # frontend ---
[INFO] Running 'npm run build' in /.../frontend
[INFO]
[INFO] > frontend#0.0.0 build
[INFO] > ng build
[INFO]
[INFO] - Generating browser application bundles (phase: setup)...
[INFO] ✔ Browser application bundle generation complete.
[INFO] ✔ Browser application bundle generation complete.
[INFO] - Copying assets...
[INFO] ✔ Copying assets complete.
[INFO] - Generating index html...
[INFO] ✔ Index html generation complete.
[INFO]
[INFO] Initial Chunk Files | Names | Raw Size | Estimated Transfer Size
[INFO] main.c1261d1eeee700ca.js | main | 2.04 MB | 435.69 kB
[INFO] scripts.90b6764e1f8f981b.js | scripts | 481.01 kB | 45.68 kB
[INFO] styles.f9e27c2e36f079fb.css | styles | 291.76 kB | 33.56 kB
[INFO] polyfills.21fceb59526882bc.js | polyfills | 33.13 kB | 10.74 kB
[INFO] runtime.896b07ca8815e68d.js | runtime | 1.19 kB | 684 bytes
[INFO]
[INFO] | Initial Total | 2.83 MB | 526.34 kB
[INFO]
[INFO] Build at: 2022-10-30T09:37:33.002Z - Hash: 069c25b6955c3763 - Time: 10010ms
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) # frontend ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /.../frontend/src/main/resources
[INFO] skip non existing resourceDirectory /.../frontend/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) # frontend ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) # frontend ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /.../frontend/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) # frontend ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) # frontend ---
[INFO] Tests are skipped.
[INFO]
[INFO] <<< maven-surefire-report-plugin:3.0.0-M7:report (default) < [surefire]test # frontend <<<
[INFO]
[INFO]
[INFO] --- maven-surefire-report-plugin:3.0.0-M7:report (default) # frontend ---
[WARNING] Unable to locate Test Source XRef to link to - DISABLED
[INFO]
[INFO] --- maven-surefire-report-plugin:3.0.0-M7:failsafe-report-only (default) # frontend ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 54.770 s
[INFO] Finished at: 2022-10-30T10:37:33+01:00
[INFO] ------------------------------------------------------------------------
Why the the execution id npm run build is executed twice ?
Context: java 17 & angular 14

Related

Why failed to compile pentaho-kettle-9.0.0.2-R?

Why dose the release build fail? Pentaho-kettle-9.0.0.3-R is same problem.
Environmental information:
maven version 3
jdk 11
mvn clean install -Dmaven.test.skip=true
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) # kettle-core ---
[INFO]
[INFO] --- build-helper-maven-plugin:3.0.0:parse-version (set-doc-version-property) # kettle-core ---
[INFO]
[INFO] --- build-helper-maven-plugin:3.0.0:rootlocation (set-root-dir-property) # kettle-core ---
[INFO]
[INFO] --- license-helper-maven-plugin:1.27:check-license (check-license) # kettle-core ---
[INFO] Effective license file is [/usr/src/app/src/pentaho-kettle-9.0.0.2-R/LICENSE.txt]
[INFO]
[INFO] --- iterator-maven-plugin:0.5.1:iterator (javascript-dependencies_unpack-dependencies) # kettle-core ---
[INFO] ------ (dummy) org.apache.maven.plugins:maven-dependency-plugin:3.1.0:unpack-dependencies
[INFO]
[INFO] --- build-helper-maven-plugin:3.0.0:add-resource (add-filtered-resources) # kettle-core ---
[INFO]
[INFO] --- license-helper-maven-plugin:1.27:bundle (bundle-license) # kettle-core ---
[INFO] License file [/usr/src/app/src/pentaho-kettle-9.0.0.2-R/LICENSE.txt] will be added to [META-INF/LICENSE.txt]
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) # kettle-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 90 resources
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) # kettle-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 398 source files to /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/target/classes
[INFO] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/version/BuildVersion.java: Some input files use or override a deprecated API.
[INFO] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/version/BuildVersion.java: Recompile with -Xlint:deprecation for details.
[INFO] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/core/plugins/SupplementalPlugin.java: Some input files use unchecked or unsafe operations.
[INFO] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/core/plugins/SupplementalPlugin.java: Recompile with -Xlint:unchecked for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/core/Result.java:[32,33] package javax.xml.bind.annotation does not exist
[ERROR] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/core/Result.java:[65,2] cannot find symbol
symbol: class XmlRootElement
[INFO] 2 errors
Who can help me?
Look at main pom.xml like
https://github.com/pentaho/pentaho-kettle/blob/master/pom.xml
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
Use jdk8.
package javax.xml.bind.annotation does not exist because if I ain't mistaken, it is moved to jee with removal from jdk core since jdk9

Maven Shade Plugin: only creates SNAPSHOT, not release

We are using Apache Flink, which according to its documentation needs the Maven Shade Plugin to build an application JAR that contains all dependencies.
I am used to using the Maven Release Plugin, it appears that the Shade plugin does a similar job, except bundling and renaming (aka "shading") dependencies.
We have a Jenkins pipeline job that makes the following call on the "master" branch:
mvn -B -Dmaven.test.failure.ignore=true -Dmaven.test.skip=true -DskipTests release:prepare release:perform -e
What I would expect from this is the following (probably not in this order):
a new SNAPSHOT version is built and uploaded to Nexus
a new RELEASE version is built and uploaded to Nexus
the branch is tagged with the app name & release number
the POM is updated with a new SNAPSHOT number
the POM is checked in to Git
What actually happens:
a "local" branch is created & tagged (that is, local to the Jenkins instance)
a new SNAPSHOT version is built and uploaded to Nexus
Jenkins Logs, with the relevant build info (and irrelevant parts redacted):
Checking out git ..[COMPANY]/[PROJECT].git into /var/jenkins_home/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]#script to read Jenkinsfile.groovy
....
[[PROJECT]] Running shell script
...
[Pipeline] sh
[[PROJECT]] Running shell script
+ mvn -B -Dmaven.test.failure.ignore=true -Dmaven.test.skip=true -DskipTests release:prepare -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building [PROJECT]-job 0.0.13-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.3.2:prepare (default-cli) # [PROJECT]-job ---
[INFO] Verifying that there are no local modifications...
[INFO] ignoring changes on: **/pom.xml.releaseBackup, **/pom.xml.next, **/pom.xml.tag, **/pom.xml.branch, **/release.properties, **/pom.xml.backup
[INFO] Executing: /bin/sh -c cd "/home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]" && git status
[INFO] Working directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]
[INFO] Checking dependencies and plugins for snapshots ...
[INFO] Transforming '[PROJECT]-job'...
[INFO] Not generating release POMs
[INFO] Executing goals 'clean verify'...
[INFO] [INFO] Scanning for projects...
[INFO] [INFO]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building [PROJECT]-job 0.0.13
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO]
[INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) # [PROJECT]-job ---
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) # [PROJECT]-job ---
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] Copying 2 resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) # [PROJECT]-job ---
[INFO] [INFO] Changes detected - recompiling the module!
[INFO] [INFO] Compiling 15 source files to /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/classes
[INFO] [INFO] /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/src/main/java/[SUB_PROJECT]/jobs/[MAIN_CLASS]].java: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/src/main/java/[SUB_PROJECT]/jobs/[MAIN_CLASS]].java uses or overrides a deprecated API.
[INFO] [INFO] /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/src/main/java/[SUB_PROJECT]/jobs/[MAIN_CLASS]].java: Recompile with -Xlint:deprecation for details.
[INFO] [INFO] /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/src/main/java/[SUB_PROJECT]/serialisers/CustomDateSerializer.java: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/src/main/java/[SUB_PROJECT]/serialisers/CustomDateSerializer.java uses unchecked or unsafe operations.
[INFO] [INFO] /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/src/main/java/[SUB_PROJECT]/serialisers/CustomDateSerializer.java: Recompile with -Xlint:unchecked for details.
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # [PROJECT]-job ---
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] skip non existing resourceDirectory /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/src/test/resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) # [PROJECT]-job ---
[INFO] [INFO] Changes detected - recompiling the module!
[INFO] [INFO] Compiling 9 source files to /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/test-classes
[INFO] [INFO]
[INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # [PROJECT]-job ---
[INFO] [INFO] Surefire report directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/surefire-reports
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
...
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD SUCCESS
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 43.627 s
[INFO] [INFO] Finished at: 2019-07-10T09:55:32Z
[INFO] [INFO] Final Memory: 74M/638M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd "/home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]" && git add -- pom.xml
[INFO] Working directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]
[INFO] Executing: /bin/sh -c cd "/home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]" && git status
[INFO] Working directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]
[INFO] Tagging release with the label [PROJECT]-job-0.0.13...
[INFO] Executing: /bin/sh -c cd "/home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]" && git tag -F /tmp/maven-scm-2648.commit [PROJECT]-job-0.0.13
[INFO] Working directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]
[INFO] Executing: /bin/sh -c cd "/home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]" && git push ssh://bit... [PROJECT]-job-0.0.13
[INFO] Working directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]
[INFO] Executing: /bin/sh -c cd "/home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]" && git ls-files
[INFO] Working directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]
[INFO] Transforming '[PROJECT]-job'...
[INFO] Not removing release POMs
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd "/home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]" && git add -- pom.xml
[INFO] Working directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]
[INFO] Executing: /bin/sh -c cd "/home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]" && git status
[INFO] Working directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]
[INFO] Release preparation complete.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
...
[Pipeline] sh
[[PROJECT]] Running shell script
+ git status
HEAD detached at 1033ff8
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: pom.xml
+ mvn -B -Dmaven.test.failure.ignore=true -Dmaven.test.skip=true -DskipTests release:perform -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building [PROJECT]-job 0.0.14-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.3.2:perform (default-cli) # [PROJECT]-job ---
[INFO] Checking out the project to perform the release ...
[INFO] Executing: /bin/sh -c cd "/home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target" && git clone --branch [PROJECT]-job-0.0.13 ssh://git#bitbucket.. '/home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout'
[INFO] Working directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target
[INFO] Executing: /bin/sh -c cd /tmp && git ls-remote ssh://git#bitbucket...
[INFO] Working directory: /tmp
[INFO] Executing: /bin/sh -c cd "/home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout" && git fetch ssh://git#bitbucket...
[INFO] Working directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout
[INFO] Executing: /bin/sh -c cd "/home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout" && git checkout [PROJECT]-job-0.0.13
[INFO] Working directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout
[INFO] Executing: /bin/sh -c cd "/home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout" && git ls-files
[INFO] Working directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout
[INFO] Invoking perform goals in directory /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout
[INFO] Executing goals 'deploy'...
[INFO] [INFO] Scanning for projects...
...
[INFO] [INFO]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building [PROJECT]-job 0.0.13-SNAPSHOT
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) # [PROJECT]-job ---
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] Copying 2 resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) # [PROJECT]-job ---
[INFO] [INFO] Changes detected - recompiling the module!
[INFO] [INFO] Compiling 15 source files to /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/target/classes
[INFO] [INFO] /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/src/main/java/[SUB_PROJECT]/jobs/[MAIN_CLASS]].java: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/src/main/java/[SUB_PROJECT]/jobs/[MAIN_CLASS]].java uses or overrides a deprecated API.
[INFO] [INFO] /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/src/main/java/[SUB_PROJECT]/jobs/[MAIN_CLASS]].java: Recompile with -Xlint:deprecation for details.
[INFO] [INFO] /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/src/main/java/[SUB_PROJECT]/serialisers/CustomDateSerializer.java: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/src/main/java/[SUB_PROJECT]/serialisers/CustomDateSerializer.java uses unchecked or unsafe operations.
[INFO] [INFO] /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/src/main/java/[SUB_PROJECT]/serialisers/CustomDateSerializer.java: Recompile with -Xlint:unchecked for details.
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # [PROJECT]-job ---
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] skip non existing resourceDirectory /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/src/test/resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) # [PROJECT]-job ---
[INFO] [INFO] Changes detected - recompiling the module!
[INFO] [INFO] Compiling 9 source files to /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/target/test-classes
[INFO] [INFO]
[INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # [PROJECT]-job ---
[INFO] [INFO] Surefire report directory: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/target/surefire-reports
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running [SUB_PROJECT].utils.EnvUtilsTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
[INFO] Running [SUB_PROJECT].utils.SqlUtilsTest
[INFO] 09:56:25,764 INFO [SUB_PROJECT].models.QosHeartbeatSerializationSchema - ------------------initMapper-----------------
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.513 sec
[INFO]
[INFO] Results :
[INFO]
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] [INFO]
[INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) # [PROJECT]-job ---
[INFO] [INFO] Building jar: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/target/[PROJECT]-job-0.0.13-SNAPSHOT.jar
[INFO] [INFO]
[INFO] [INFO] >>> maven-source-plugin:3.1.0:jar (attach-sources) > generate-sources # [PROJECT]-job >>>
[INFO] [INFO]
[INFO] [INFO] <<< maven-source-plugin:3.1.0:jar (attach-sources) < generate-sources # [PROJECT]-job <<<
[INFO] [INFO]
[INFO] [INFO]
[INFO] [INFO] --- maven-source-plugin:3.1.0:jar (attach-sources) # [PROJECT]-job ---
[INFO] [INFO] Building jar: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/target/[PROJECT]-job-0.0.13-SNAPSHOT-sources.jar
[INFO] [INFO]
[INFO] [INFO] --- maven-javadoc-plugin:3.1.1:jar (attach-javadocs) # [PROJECT]-job ---
[INFO] [INFO]
...
[INFO] [INFO] --- maven-shade-plugin:3.1.1:shade (default) # [PROJECT]-job ---
[INFO] [INFO] Including ....
...
[INFO] [INFO] Replacing original artifact with shaded artifact.
[INFO] [INFO] Replacing /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/target/[PROJECT]-job-0.0.13-SNAPSHOT.jar with /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/target/[PROJECT]-job-0.0.13-SNAPSHOT-shaded.jar
[INFO] [INFO] Dependency-reduced POM written at: /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/dependency-reduced-pom.xml
[INFO] [INFO]
[INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) # [PROJECT]-job ---
[INFO] [INFO] Installing /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/target/[PROJECT]-job-0.0.13-SNAPSHOT.jar to /root/.m2/repository/com/[COMPANY]/cv/[PROJECT]-job/0.0.13-SNAPSHOT/[PROJECT]-job-0.0.13-SNAPSHOT.jar
[INFO] [INFO] Installing /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/dependency-reduced-pom.xml to /root/.m2/repository/com/[COMPANY]/cv/[PROJECT]-job/0.0.13-SNAPSHOT/[PROJECT]-job-0.0.13-SNAPSHOT.pom
[INFO] [INFO] Installing /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/target/[PROJECT]-job-0.0.13-SNAPSHOT-sources.jar to /root/.m2/repository/com/[COMPANY]/cv/[PROJECT]-job/0.0.13-SNAPSHOT/[PROJECT]-job-0.0.13-SNAPSHOT-sources.jar
[INFO] [INFO] Installing /home/jenkins/workspace/[TEAM_NAME]/Flink Jobs/[PROJECT]/target/checkout/target/[PROJECT]-job-0.0.13-SNAPSHOT-javadoc.jar to /root/.m2/repository/com/[COMPANY]/cv/[PROJECT]-job/0.0.13-SNAPSHOT/[PROJECT]-job-0.0.13-SNAPSHOT-javadoc.jar
[INFO] [INFO]
[INFO] [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) # [PROJECT]-job ---
[INFO] [INFO] Downloading from nexus:
... {download files from nexus here}
[INFO] [INFO] Uploading to nexus:
... {upload files from nexus here}
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD SUCCESS
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 48.330 s
[INFO] [INFO] Finished at: 2019-07-10T09:56:52Z
[INFO] [INFO] Final Memory: 78M/661M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Cleaning up after release...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:12 min
[INFO] Finished at: 2019-07-10T09:56:52Z
[INFO] Final Memory: 12M/241M
[INFO] ------------------------------------------------------------------------
UPDATE:
The solution was to use explicit version the Maven Release Plugin (2.4.2) in pom

Wasabi fails on build - Maven plugin

See the solution below
Using Ubuntu 16.04 on Google Cloud
Everything is done as noted here https://github.com/intuit/wasabi.
After successfully bootstraping the wasabai
by running:
$ ./bin/wasabi.sh bootstrap
and getting
Everything looks all right!
...
installed dependencies.
Then I reboot the machine
$ sudo reboot
and try running the build
$ ./bin/wasabi.sh build
which obviously fails, this is the output I see:
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 30 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 30 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] wasabi
[INFO] wasabi-experiment-objects
[INFO] wasabi-export
[INFO] wasabi-assignment-objects
[INFO] wasabi-exceptions
[INFO] wasabi-analytics-objects
[INFO] wasabi-authentication-objects
[INFO] wasabi-eventlog
[INFO] wasabi-auditlog-objects
[INFO] wasabi-authorization-objects
[INFO] wasabi-cassandra
[INFO] wasabi-database
[INFO] wasabi-feedback-objects
[INFO] wasabi-user-directory
[INFO] wasabi-repository
[INFO] wasabi-experiment
[INFO] wasabi-assignment
[INFO] wasabi-util
[INFO] wasabi-analytics
[INFO] wasabi-auditlog
[INFO] wasabi-event-objects
[INFO] wasabi-event
[INFO] wasabi-email
[INFO] wasabi-feedback
[INFO] wasabi-authentication
[INFO] wasabi-authorization
[INFO] wasabi-api
[INFO] wasabi-functional-test
[INFO] wasabi-main
[INFO] wasabi-swagger-ui
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building wasabi 1.0.20161107232436-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # wasabi ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-resources) # wasabi ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/www/html/wasabi/wasabi/src/main/env
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (prepare-agent) # wasabi ---
[INFO] argLine set to -javaagent:/home/silversillu/.m2/repository/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/var/www/html/wasabi/wasabi/target/jacoco.exec,excludes=com/intuit/wasabi/tests/**
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report (post-unit-test) # wasabi ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report (report) # wasabi ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- maven-javadoc-plugin:2.10.3:jar (attach-javadocs) # wasabi ---
[INFO] Not executing Javadoc as the project is not a Java classpath-capable package
[INFO]
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) # wasabi ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.10:remove-project-artifact (remove-old-artifacts) # wasabi ---
[INFO] /home/silversillu/.m2/repository/com/intuit/wasabi/wasabi removed.
[INFO]
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) # wasabi ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building wasabi-experiment-objects 1.0.20161107232436-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # wasabi-experiment-objects ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-resources) # wasabi-experiment-objects ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/www/html/wasabi/wasabi/modules/experiment-objects/src/main/env
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (prepare-agent) # wasabi-experiment-objects ---
[INFO] argLine set to -javaagent:/home/silversillu/.m2/repository/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/var/www/html/wasabi/wasabi/modules/experiment-objects/target/jacoco.exec,excludes=com/intuit/wasabi/tests/**
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) # wasabi-experiment-objects ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/www/html/wasabi/wasabi/modules/experiment-objects/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) # wasabi-experiment-objects ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 24 source files to /var/www/html/wasabi/wasabi/modules/experiment-objects/target/classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping wasabi
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] wasabi ............................................. SUCCESS [ 4.085 s]
[INFO] wasabi-experiment-objects .......................... FAILURE [ 0.633 s]
[INFO] wasabi-export ...................................... SKIPPED
[INFO] wasabi-assignment-objects .......................... SKIPPED
[INFO] wasabi-exceptions .................................. SKIPPED
[INFO] wasabi-analytics-objects ........................... SKIPPED
[INFO] wasabi-authentication-objects ...................... SKIPPED
[INFO] wasabi-eventlog .................................... SKIPPED
[INFO] wasabi-auditlog-objects ............................ SKIPPED
[INFO] wasabi-authorization-objects ....................... SKIPPED
[INFO] wasabi-cassandra ................................... SKIPPED
[INFO] wasabi-database .................................... SKIPPED
[INFO] wasabi-feedback-objects ............................ SKIPPED
[INFO] wasabi-user-directory .............................. SKIPPED
[INFO] wasabi-repository .................................. SKIPPED
[INFO] wasabi-experiment .................................. SKIPPED
[INFO] wasabi-assignment .................................. SKIPPED
[INFO] wasabi-util ........................................ SKIPPED
[INFO] wasabi-analytics ................................... SKIPPED
[INFO] wasabi-auditlog .................................... SKIPPED
[INFO] wasabi-event-objects ............................... SKIPPED
[INFO] wasabi-event ....................................... SKIPPED
[INFO] wasabi-email ....................................... SKIPPED
[INFO] wasabi-feedback .................................... SKIPPED
[INFO] wasabi-authentication .............................. SKIPPED
[INFO] wasabi-authorization ............................... SKIPPED
[INFO] wasabi-api ......................................... SKIPPED
[INFO] wasabi-functional-test ............................. SKIPPED
[INFO] wasabi-main ........................................ SKIPPED
[INFO] wasabi-swagger-ui .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.399 s
[INFO] Finished at: 2017-01-10T21:48:24+00:00
[INFO] Final Memory: 29M/70M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project wasabi-experiment-objects: Fatal error compiling: directory not found: /var/www/html/wasabi/wasabi/modules/experiment-objects/target/classes -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :wasabi-experiment-objects
error: invalid: mvn -Pdevelopment clean -Dmaven.test.skip=true package javadoc:aggregate
usage: build.sh [options]
options:
-b | --build [ true | false ] : build; default: false
-p | --profile [profile] : build profile; default: development
-t | --test [ true | false ] : test; default: false
-h | --help : help message
Solution
I don't know if it makes any sense but what fixed the issue was moving my cloud machine from micro to much more powerful one n1-standard-4 (4 vCPUs, 15 GB memory)
can you try the following:
% WASABI_MAVEN="-e -X" ./bin/wasabi.sh build
additionally one could try issuing the reported failed mvn invocation directly, ie:
% mvn -e -X -Pdevelopment clean -Dmaven.test.skip=true package javadoc:aggregate
clearly none of the codebase is compiling given the first module fails.
i don't see why a reboot would matter unless logged in as a different user, some directory is owned by 'root' and not writable/deletable, etc.
let's fix this :)

Maven clean install only works with sudo on a certain project?

Without getting into the details of my project. I am wondering if this is a common issue. without sudo I get NPM errors. NPM was installed correctly. On MAC Yosemite?
error below
C00427#C17PN92CG8WN ~/s/c/ui>
mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ACS.org CQ5 --> PARENT --> UI 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # ui ---
[INFO] Deleting /Users/C00427/sites/cq5/ui/target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.180 s
[INFO] Finished at: 2015-11-12T09:59:46-05:00
[INFO] Final Memory: 15M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project ui: Failed to clean project: Failed to delete /Users/C00427/sites/cq5/ui/target/org.acs.cq-code-1.0-SNAPSHOT.jar -> [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/MojoExecutionException
C00427#C17PN92CG8WN ~/s/c/ui>
If I use sudo it works perfectly fine
C00427#C17PN92CG8WN ~/s/c/ui> sudo mvn clean install
Password:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ACS.org CQ5 --> PARENT --> UI 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # ui ---
[INFO] Deleting /Users/C00427/sites/cq5/ui/target
[INFO]
[INFO] --- frontend-maven-plugin:0.0.25:install-node-and-npm (install node and npm) # ui ---
[INFO] Node v5.0.0 is already installed.
[INFO] Found NPM version 3.3.9
[INFO]
[INFO] --- frontend-maven-plugin:0.0.25:npm (npm install) # ui ---
[INFO] Running 'npm install --color=false' in /Users/C00427/sites/cq5/ui
[ERROR] npm WARN EPACKAGEJSON ui#0.0.0 No repository field.
[INFO]
[INFO] --- frontend-maven-plugin:0.0.25:gulp (gulp build) # ui ---
[INFO] Running 'gulp.js --no-color' in /Users/C00427/sites/cq5/ui
[INFO] [10:02:23] Using gulpfile ~/sites/cq5/ui/gulpfile.js
[INFO] [10:02:23] Starting 'default'...
[INFO] [10:02:23] Starting 'coffee'...
[INFO] [10:02:23] Finished 'default' after 11 ms
[INFO] [10:02:24] Finished 'coffee' after 657 ms
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # ui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources to META-INF
[INFO] Copying 2093 resources to jcr_root
[INFO]
[INFO] --- maven-dependency-plugin:2.9:copy-dependencies (copy-bundles) # ui ---
[INFO] Copying jackson-databind-2.5.1.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/jackson-databind-2.5.1.jar
[INFO] Copying org.apache.sling.models.api-1.1.0.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/org.apache.sling.models.api-1.1.0.jar
[INFO] Copying guice-1.0.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/guice-1.0.jar
[INFO] Copying commons-lang3-3.0.1.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/commons-lang3-3.0.1.jar
[INFO] Copying com.springsource.org.apache.commons.codec-1.3.0.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.org.apache.commons.codec-1.3.0.jar
[INFO] Copying com.springsource.org.apache.commons.logging-1.1.1.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.org.apache.commons.logging-1.1.1.jar
[INFO] Copying com.springsource.org.aopalliance-1.0.0.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.org.aopalliance-1.0.0.jar
[INFO] Copying com.springsource.org.cyberneko.html-1.9.13.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.org.cyberneko.html-1.9.13.jar
[INFO] Copying com.springsource.org.apache.commons.httpclient-3.1.0.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.org.apache.commons.httpclient-3.1.0.jar
[INFO] Copying jackson-annotations-2.5.1.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/jackson-annotations-2.5.1.jar
[INFO] Copying com.springsource.org.apache.httpcomponents.httpclient-4.1.1.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.org.apache.httpcomponents.httpclient-4.1.1.jar
[INFO] Copying groovy-all-2.3.8.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/groovy-all-2.3.8.jar
[INFO] Copying com.springsource.org.apache.httpcomponents.httpcore-4.1.1.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.org.apache.httpcomponents.httpcore-4.1.1.jar
[INFO] Copying commons-beanutils-1.8.3.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/commons-beanutils-1.8.3.jar
[INFO] Copying commons-logging-1.1.1.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/commons-logging-1.1.1.jar
[INFO] Copying jackson-core-2.5.1.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/jackson-core-2.5.1.jar
[INFO] Copying com.springsource.org.apache.xmlcommons-1.3.4.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.org.apache.xmlcommons-1.3.4.jar
[INFO] Copying io.wcm.cq5.sling.models-1.0.0.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/io.wcm.cq5.sling.models-1.0.0.jar
[INFO] Copying com.springsource.org.openid4java-0.9.6.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.org.openid4java-0.9.6.jar
[INFO] Copying com.springsource.org.apache.xerces-2.9.1.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.org.apache.xerces-2.9.1.jar
[INFO] Copying org.apache.sling.models.impl-1.1.0.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/org.apache.sling.models.impl-1.1.0.jar
[INFO] Copying com.springsource.org.apache.httpcomponents.httpmime-4.1.1.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.org.apache.httpcomponents.httpmime-4.1.1.jar
[INFO] Copying com.springsource.org.apache.httpcomponents.httpclient-cache-4.1.1.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.org.apache.httpcomponents.httpclient-cache-4.1.1.jar
[INFO] Copying ehcache-2.7.0.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/ehcache-2.7.0.jar
[INFO] Copying com.springsource.org.apache.xml.resolver-1.2.0.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.org.apache.xml.resolver-1.2.0.jar
[INFO] Copying com.springsource.com.google.inject-2.0.0.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.com.google.inject-2.0.0.jar
[INFO] Copying com.springsource.net.spy.memcached-2.5.0.jar to /Users/C00427/sites/cq5/ui/target/classes/jcr_root/apps/acs/install/com.springsource.net.spy.memcached-2.5.0.jar
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) # ui ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # ui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/C00427/sites/cq5/ui/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) # ui ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) # ui ---
[INFO] No tests to run.
[INFO]
[INFO] --- replacer:1.5.0:replace (default) # ui ---
[INFO] Replacement run on 1 file.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # ui ---
[INFO] Building jar: /Users/C00427/sites/cq5/ui/target/org.acs.cq-code-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # ui ---
[INFO] Installing /Users/C00427/sites/cq5/ui/target/org.acs.cq-code-1.0-SNAPSHOT.jar to /var/root/.m2/repository/org/acs/cq/ui/1.0-SNAPSHOT/ui-1.0-SNAPSHOT.jar
[INFO] Installing /Users/C00427/sites/cq5/ui/pom.xml to /var/root/.m2/repository/org/acs/cq/ui/1.0-SNAPSHOT/ui-1.0-SNAPSHOT.pom
[INFO]
[INFO] --- cq-deploy-plugin:0.0.4:install-package (install-package-author) # ui ---
[INFO] execute
[INFO] Connecting to server: http://localhost:4502
[INFO] Connecting with user: admin
[INFO] Deleting package at path: org.acs.cq-code-1.0-SNAPSHOT.jar
[WARNING] Delete failed: no package
[WARNING] Delete failed with jar, trying with zip.
[INFO] Deleting package at path: org.acs.cq-code-1.0-SNAPSHOT.zip
[INFO] Delete succeeded
[INFO] Uploading package /Users/C00427/sites/cq5/ui/target/org.acs.cq-code-1.0-SNAPSHOT.jar to path: org.acs.cq-code-1.0-SNAPSHOT.jar
[INFO] Upload succeeded
[INFO] Package upload successful
[INFO] Installing package at path: org.acs.cq-code-1.0-SNAPSHOT.jar
[WARNING] Installation failed: no package
[WARNING] Installation failed with jar, trying with zip.
[INFO] Installing package at path: org.acs.cq-code-1.0-SNAPSHOT.zip
[INFO] Installation succeeded
[INFO] Package installation successful
[INFO] Package Upload/Installation Completed Successfully
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.859 s
[INFO] Finished at: 2015-11-12T10:02:36-05:00
[INFO] Final Memory: 28M/514M
[INFO] ------------------------------------------------------------------------
The Issue was resolved by reinstalling NPM. As many times as I tried to uninstall and install NPM, i never deleted hidden files that were left over inside usr/ folder.
I don't really understand why sudo worked. But the issue was resolved.

How can I disable default lifecycle phases in Maven 3?

By disable I mean completely, entirely cut the phase from the lifecycle, so that it is not even invoked.
I might need a custom lifecycle but I could not find an easy way to define it straight in my pom.xml. It appears I need to write a plugin just to list phases I want.
For example, I would like default-testResources, default-testCompile and default-test phases to never happen and turn my build log from this:
[INFO] ------------------------------------------------------------------------
[INFO] Building HelpDesk Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # helpdesk ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory d:\proj\HelpDesk\repo\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) # helpdesk ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # helpdesk ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) # helpdesk ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) # helpdesk ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.3:war (default-war) # helpdesk ---
[INFO] Packaging webapp
[INFO] Assembling webapp [helpdesk] in [d:\proj\HelpDesk\repo\target\helpdesk]
[INFO] Processing war project
[INFO] Copying webapp resources [d:\proj\HelpDesk\repo\src\main\webapp]
[INFO] Webapp assembled in [40 msecs]
[INFO] Building war: d:\proj\HelpDesk\repo\target\helpdesk.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
into this:
[INFO] ------------------------------------------------------------------------
[INFO] Building HelpDesk Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # helpdesk ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory d:\proj\HelpDesk\repo\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) # helpdesk ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-war-plugin:2.3:war (default-war) # helpdesk ---
[INFO] Packaging webapp
[INFO] Assembling webapp [helpdesk] in [d:\proj\HelpDesk\repo\target\helpdesk]
[INFO] Processing war project
[INFO] Copying webapp resources [d:\proj\HelpDesk\repo\src\main\webapp]
[INFO] Webapp assembled in [40 msecs]
[INFO] Building war: d:\proj\HelpDesk\repo\target\helpdesk.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
If you want to continue using a predefined packaging (jar, war, etc.) you cannot totally remove them. You may leave the packaging as pom and define your own lifecycle by binding the goals you want to the desired phases, or you may define your own lifecycle entirely. You may also bind a default goal to phase none to prevent the goal from doing any real work as shown.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>default-testResources</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
All that said - khmarbaise's question is a good one. Generally it's not a best practice to change the existing pre-built lifecycles.

Resources