When I do the snapshot build for project the build is successful in Hudson. But when we do the hudson release build we see the error below. Please let me know if any have any idea on this.. Appreciate for your help.
[INFO] Constructing Javadoc information...
[INFO] Standard Doclet version 1.6.0_30
[INFO] Building tree for all the packages and classes...
[INFO] Generating /devl/iw/tools/hudson/jobs/Imaging/workspace/Imaging/target/checkout/target/apidocs/ntnood/iw/imaging/client/CommConstants.html...
[INFO] Generating /devl/iw/tools/hudson/jobs/Imaging/workspace/Imaging/target/checkout/target/apidocs/ntnood/iw/imaging/client/DocumentClient.html...
[INFO] Generating /devl/iw/tools/hudson/jobs/docsol/workspace/docsol/target/checkout/target/apidocs/ntnood/iw/imaging/imagegear/class-use/ImageGearException.html...
[INFO] 1 error
[INFO] 1 warning
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] MavenReportException: Error while creating archive:
[INFO] Exit code: 1 - com.sun.tools.javac.file.BaseFileObject$CannotCreateUriError: [DashoPro-V2.2-110100.11101A0148]
[INFO] at com.sun.tools.javac.jvm.ClassReader$SourceFileObject.toUri(ClassReader.java:2325)
[INFO] at com.sun.tools.javadoc.ClassDocImpl.containingPackage(ClassDocImpl.java:297)
[INFO] at com.sun.tools.doclets.formats.html.LinkFactoryImpl.getClassToolTip(LinkFactoryImpl.java:140)
[INFO] at com.sun.tools.doclets.formats.html.LinkFactoryImpl.getClassLink(LinkFactoryImpl.java:63)
[INFO] at com.sun.tools.doclets.internal.toolkit.util.links.LinkFactory.getLinkOutput(LinkFactory.java:116)
[INFO] at com.sun.tools.doclets.formats.html.HtmlDocletWriter.getLink(HtmlDocletWriter.java:1727)
[INFO] at com.sun.tools.doclets.formats.html.AbstractExecutableMemberWriter.addParam(AbstractExecutableMemberWriter.java:126)
[INFO] at com.sun.tools.doclets.formats.html.AbstractExecutableMemberWriter.addParameters(AbstractExecutableMemberWriter.java:195)
[INFO] at com.sun.tools.doclets.formats.html.AbstractExecutableMemberWriter.addSummaryLink(AbstractExecutableMemberWriter.java:97)
[INFO] at com.sun.tools.doclets.formats.html.AbstractMemberWriter.addSummaryLink(AbstractMemberWriter.java:135)
[INFO] at com.sun.tools.doclets.formats.html.AbstractMemberWriter.addMemberSummary(AbstractMemberWriter.java:567)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.MemberSummaryBuilder.buildSummary(MemberSummaryBuilder.java:321)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.MemberSummaryBuilder.addSummary(MemberSummaryBuilder.java:378)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.MemberSummaryBuilder.buildMethodsSummary(MemberSummaryBuilder.java:277)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:622)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.invokeMethod(AbstractBuilder.java:148)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:103)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractMemberBuilder.build(AbstractMemberBuilder.java:76)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.buildChildren(AbstractBuilder.java:129)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildMemberSummary(ClassBuilder.java:333)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:622)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.invokeMethod(AbstractBuilder.java:148)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:103)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.buildChildren(AbstractBuilder.java:129)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildClassDoc(ClassBuilder.java:145)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:622)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.invokeMethod(AbstractBuilder.java:148)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:103)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:117)
[INFO] at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:183)
[INFO] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:183)
[INFO] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:125)
[INFO] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:83)
[INFO] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:63)
[INFO] at com.sun.tools.doclets.standard.Standard.start(Standard.java:41)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:622)
[INFO] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:291)
[INFO] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:165)
[INFO] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:374)
[INFO] at com.sun.tools.javadoc.Start.begin(Start.java:162)
[INFO] at com.sun.tools.javadoc.Main.execute(Main.java:59)
[INFO] at com.sun.tools.javadoc.Main.main(Main.java:49)
[INFO] Caused by: java.net.URISyntaxException: Illegal character in path at index 0: [DashoPro-V2.2-110100.11101A0148]
[INFO] at java.net.URI$Parser.fail(URI.java:2825)
[INFO] at java.net.URI$Parser.checkChars(URI.java:2998)
[INFO] at java.net.URI$Parser.parseHierarchical(URI.java:3082)
[INFO] at java.net.URI$Parser.parse(URI.java:3040)
[INFO] at java.net.URI.<init>(URI.java:824)
[INFO] at com.sun.tools.javac.jvm.ClassReader$SourceFileObject.toUri(ClassReader.java:2323)
[INFO] ... 53 more
[INFO]
[INFO] Command line was: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../bin/javadoc #options #packages
[INFO]
[INFO] Refer to the generated Javadoc files in '/devl/iw/tools/hudson/jobs/docsol/workspace/docsol/target/checkout/target/apidocs' dir.
[INFO]
[INFO]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] For more information, run Maven with the -e switch
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 24 seconds
[INFO] [INFO] Finished at: Thu Aug 21 12:35:22 EDT 2014
[INFO] [INFO] Final Memory: 52M/711M
[INFO] [INFO] ------------------------------------------------------------------------
[HUDSON] Archiving /devl/iw/tools/hudson/jobs/docsol/workspace/docsol/pom.xml to /devl/iw/tools/hudson/jobs/docsol/modules/ntnood.iw$docsol/builds/2014-08-21_12-34-04/archive/ntnood.iw/docsol/2.3.23-SNAPSHOT/pom.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Maven execution failed, exit code: '1'
Related
I am having a nested multi module maven project as below.
The parent pom specifies the profiles to build various component.
Now I need to get the list of all dependencies of all component which I believe that I can get from dependency tree of eclipse ide. But it is not getting displayed. Is there any other way to get the list or I am trying a wrong thing.
Use the maven dependency plugin along with a profile in the normal way.
mvn dependency:tree -Pjava8
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] parent [pom]
[INFO] project-mod-1 [pom]
[INFO] java8 [jar]
[INFO] java7 [jar]
[INFO]
[INFO] --------------------------< com.greg:parent >---------------------------
[INFO] Building parent 1.0-SNAPSHOT [1/4]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # parent ---
[INFO] com.greg:parent:pom:1.0-SNAPSHOT
[INFO]
[INFO] -----------------------< com.greg:project-mod-1 >-----------------------
[INFO] Building project-mod-1 1.0-SNAPSHOT [2/4]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # project-mod-1 ---
[INFO] com.greg:project-mod-1:pom:1.0-SNAPSHOT
[INFO]
[INFO] ---------------------------< com.greg:java8 >---------------------------
[INFO] Building java8 1.0-SNAPSHOT [3/4]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # java8 ---
[INFO] com.greg:java8:jar:1.0-SNAPSHOT
[INFO] \- junit:junit:jar:4.11:test
[INFO] \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO]
[INFO] ---------------------------< com.greg:java7 >---------------------------
[INFO] Building java7 1.0-SNAPSHOT [4/4]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # java7 ---
[INFO] com.greg:java7:jar:1.0-SNAPSHOT
[INFO] \- junit:junit:jar:4.11:test
[INFO] \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for parent 1.0-SNAPSHOT:
[INFO]
[INFO] parent ............................................. SUCCESS [ 2.262 s]
[INFO] project-mod-1 ...................................... SUCCESS [ 0.015 s]
[INFO] java8 .............................................. SUCCESS [ 0.111 s]
[INFO] java7 .............................................. SUCCESS [ 0.250 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.169 s
[INFO] Finished at: 2019-03-20T08:18:24Z
[INFO] ------------------------------------------------------------------------
Good day!
I have maven multimodule project. Contains war,jar and ear modules. When I try to start local Tomcat (web module exploded), got the following error:
Possible root causes include a too low setting for -Xss and illegal
cyclic inheritance dependencies. The class hierarchy being processed
was
[org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DEREncodableVector->org.bouncycastle.asn1.ASN1EncodableVector]
I have read this question Avoid cyclic reference inheritance in grails
and found two version of jar: org.bouncycastle:bcprov-jdk15on:jar and org.bouncycastle:bcprov-jdk14:jar
but still cannot understand how to solve the issue..
Thank you in advance!
tor for org.codehaus.mojo:gwt-maven-plugin:jar:${gwt.version}
[INFO]
[INFO] --- maven-dependency-plugin:2.4:tree (default-cli) # desktop-app ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building arm-data-entry 1.0.30-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:gwt-maven-plugin:${gwt.version}: Plugin org.codehau
s.mojo:gwt-maven-plugin:${gwt.version} or one of its dependencies could not be resolved: Failed to read artifact descrip
tor for org.codehaus.mojo:gwt-maven-plugin:jar:${gwt.version}
[INFO]
[INFO] --- maven-dependency-plugin:2.4:tree (default-cli) # arm-data-entry ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building sea-print 1.0.30-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:gwt-maven-plugin:${gwt.version}: Plugin org.codehau
s.mojo:gwt-maven-plugin:${gwt.version} or one of its dependencies could not be resolved: Failed to read artifact descrip
tor for org.codehaus.mojo:gwt-maven-plugin:jar:${gwt.version}
[INFO]
[INFO] --- maven-dependency-plugin:2.4:tree (default-cli) # sea-print ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building setup-docs 1.0.30-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:gwt-maven-plugin:${gwt.version}: Plugin org.codehau
s.mojo:gwt-maven-plugin:${gwt.version} or one of its dependencies could not be resolved: Failed to read artifact descrip
tor for org.codehaus.mojo:gwt-maven-plugin:jar:${gwt.version}
[INFO]
[INFO] --- maven-dependency-plugin:2.4:tree (default-cli) # setup-docs ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building pdf-cuter 1.0.30-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:gwt-maven-plugin:${gwt.version}: Plugin org.codehau
s.mojo:gwt-maven-plugin:${gwt.version} or one of its dependencies could not be resolved: Failed to read artifact descrip
tor for org.codehaus.mojo:gwt-maven-plugin:jar:${gwt.version}
[INFO]
[INFO] --- maven-dependency-plugin:2.4:tree (default-cli) # pdf-cuter ---
[INFO] ru.my-company.ea.old:pdf-cuter:jar:1.0.30-SNAPSHOT
[INFO] \- org.icepdf.os:icepdf-core:jar:6.1.2:compile
[INFO] +- org.bouncycastle:bcprov-jdk15on:jar:1.54:compile
[INFO] +- org.bouncycastle:bcprov-ext-jdk15on:jar:1.54:compile
[INFO] \- org.bouncycastle:bcpkix-jdk15on:jar:1.54:compile
[INFO] \- (org.bouncycastle:bcprov-jdk15on:jar:1.54:compile - omitted for duplicate)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building sea-web 1.0.30-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.4:tree (default-cli) # sea-web ---
[INFO] ru.my-company.ea.old:sea-web:war:1.0.30-SNAPSHOT
[INFO] +- ru.my-company.ea.old:pdf-cuter:jar:1.0.30-SNAPSHOT:compile
[INFO] | \- org.icepdf.os:icepdf-core:jar:6.1.2:compile
[INFO] | +- org.bouncycastle:bcprov-jdk15on:jar:1.54:compile
[INFO] | +- org.bouncycastle:bcprov-ext-jdk15on:jar:1.54:compile
[INFO] | \- org.bouncycastle:bcpkix-jdk15on:jar:1.54:compile
[INFO] | \- (org.bouncycastle:bcprov-jdk15on:jar:1.54:compile - omitted for duplicate)
[INFO] \- net.sf.jasperreports:jasperreports:jar:4.7.1:compile
[INFO] \- com.lowagie:itext:jar:2.1.7:compile
[INFO] \- org.bouncycastle:bctsp-jdk14:jar:1.38:compile
[INFO] +- org.bouncycastle:bcprov-jdk14:jar:1.38:compile
[INFO] \- org.bouncycastle:bcmail-jdk14:jar:1.38:compile
[INFO] \- (org.bouncycastle:bcprov-jdk14:jar:1.38:compile - omitted for duplicate)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building the-ear 1.0.30-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:gwt-maven-plugin:${gwt.version}: Plugin org.codehau
s.mojo:gwt-maven-plugin:${gwt.version} or one of its dependencies could not be resolved: Failed to read artifact descrip
tor for org.codehaus.mojo:gwt-maven-plugin:jar:${gwt.version}
[INFO]
[INFO] --- maven-dependency-plugin:2.4:tree (default-cli) # the-ear ---
[INFO] ru.my-company.ea.old:the-ear:ear:1.0.30-SNAPSHOT
[INFO] \- net.sf.jasperreports:jasperreports:jar:4.7.1:compile
[INFO] \- com.lowagie:itext:jar:2.1.7:compile
[INFO] \- org.bouncycastle:bctsp-jdk14:jar:1.38:compile
[INFO] +- org.bouncycastle:bcprov-jdk14:jar:1.38:compile
[INFO] \- org.bouncycastle:bcmail-jdk14:jar:1.38:compile
[INFO] \- (org.bouncycastle:bcprov-jdk14:jar:1.38:compile - omitted for duplicate)
[INFO] ------------------------------------------------------------------------
........
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.698 s
[INFO] Finished at: 2018-09-07T11:26:32+05:00
[INFO] Final Memory: 21M/226M
[INFO] ------------------------------------------------------------------------
D:\Projects\sea-eclipse>
Problem as title says
the RocketMQ version i use is incubator-rocketmq-release-4.0.0-incubating
downloading from https://github.com/apache/incubator-rocketmq/tree/release-4.0.0-incubating
it has some err when mvn -Prelease-all -DskipTests clean install -U
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache RocketMQ 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-remoting 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-common 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-client 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-store 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-srvutil 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-broker 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-tools 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-namesrv 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-example 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-filtersrv 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-test 4.1.0-incubating-SNAPSHOT
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache RocketMQ 4.1.0-incubating-SNAPSHOT 4.1.0-incubating-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) # rocketmq-all ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-ban-circular-dependencies) # rocketmq-all ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.8:prepare-agent (default-prepare-agent) # rocketmq-all ---
[INFO] argLine set to -javaagent:/home/alex/.m2/repository/org/jacoco/org.jacoco.agent/0.7.8/org.jacoco.agent-0.7.8-runtime.jar=destfile=/usr/local/rocketMQ/incubator-rocketmq-release-4.0.0-incubating/target/jacoco.exec
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) # rocketmq-all ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache RocketMQ 4.1.0-incubating-SNAPSHOT .......... FAILURE [ 2.688 s]
[INFO] rocketmq-remoting 4.1.0-incubating-SNAPSHOT ........ SKIPPED
[INFO] rocketmq-common 4.1.0-incubating-SNAPSHOT .......... SKIPPED
[INFO] rocketmq-client 4.1.0-incubating-SNAPSHOT .......... SKIPPED
[INFO] rocketmq-store 4.1.0-incubating-SNAPSHOT ........... SKIPPED
[INFO] rocketmq-srvutil 4.1.0-incubating-SNAPSHOT ......... SKIPPED
[INFO] rocketmq-broker 4.1.0-incubating-SNAPSHOT .......... SKIPPED
[INFO] rocketmq-tools 4.1.0-incubating-SNAPSHOT ........... SKIPPED
[INFO] rocketmq-namesrv 4.1.0-incubating-SNAPSHOT ......... SKIPPED
[INFO] rocketmq-example 4.1.0-incubating-SNAPSHOT ......... SKIPPED
[INFO] rocketmq-filtersrv 4.1.0-incubating-SNAPSHOT ....... SKIPPED
[INFO] rocketmq-test 4.1.0-incubating-SNAPSHOT ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.335 s
[INFO] Finished at: 2017-05-10T14:49:16+08:00
[INFO] Final Memory: 15M/43M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (process-resource-bundles) on project rocketmq-all: Error finding remote resources manifests: /usr/local/rocketMQ/incubator-rocketmq-release-4.0.0-incubating/target/maven-shared-archive-resources/META-INF/NOTICE (No such file or directory) -> [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] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (process-resource-bundles) on project rocketmq-all: Error finding remote resources manifests: /usr/local/rocketMQ/incubator-rocketmq-release-4.0.0-incubating/target/maven-shared-archive-resources/META-INF/NOTICE (No such file or directory) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (process-resource-bundles) on project rocketmq-all: Error finding remote resources manifests
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error finding remote resources manifests
at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.processResourceBundles(ProcessRemoteResourcesMojo.java:1238)
at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.execute(ProcessRemoteResourcesMojo.java:520)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more
Caused by: java.io.FileNotFoundException: /usr/local/rocketMQ/incubator-rocketmq-release-4.0.0-incubating/target/maven-shared-archive-resources/META-INF/NOTICE (No such file or directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at java.io.FileWriter.<init>(FileWriter.java:90)
at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.processResourceBundles(ProcessRemoteResourcesMojo.java:1146)
... 23 more
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 :)
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.