Hawkular server setup using maven give me error during build - maven

Hawkular server setup using maven give me error during build. I am getting below error after run below command :
mvn clean install -Pdev -DskipTests -e
I am using git hub souce code to build this using link : https://github.com/hawkular/hawkular-apm/tree/master
[WARNING] npm WARN deprecated babel#6.5.2: Babel's CLI commands have been moved from the babel package to the babel-cli package
[WARNING] npm WARN deprecated vinyl-map#1.0.1: Missing dependencies resolved in v1.0.2 (Run 'npm update --save vinyl-map' to update package.json)
[WARNING] npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
[WARNING] npm WARN deprecated minimatch#0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
[WARNING] npm WARN deprecated graceful-fs#1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs#^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
[WARNING] npm WARN deprecated minimatch#0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
[WARNING] npm WARN deprecated node-uuid#1.4.7: use uuid module instead
[WARNING] npm WARN deprecated graceful-fs#2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs#^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Hawkular APM ....................................... SUCCESS [ 11.622 s]
[INFO] Hawkular APM::Client::Instrumentation JVM .......... SUCCESS [ 2.024 s]
[INFO] Hawkular APM::API .................................. SUCCESS [ 12.477 s]
[INFO] Hawkular APM::Client::API .......................... SUCCESS [ 1.301 s]
[INFO] Hawkular APM::Server::API .......................... SUCCESS [ 4.397 s]
[INFO] Hawkular APM::Tests::Parent ........................ SUCCESS [ 0.743 s]
[INFO] Hawkular APM::Tests::Common ........................ SUCCESS [ 0.942 s]
[INFO] Hawkular APM::Client::Collector .................... SUCCESS [ 1.769 s]
[INFO] Hawkular APM::Client::Trace Publisher REST Client .. SUCCESS [ 0.600 s]
[INFO] Hawkular APM::Client::Instrumenter ................. SUCCESS [ 3.242 s]
[INFO] Hawkular APM::Client::Config Service REST Client ... SUCCESS [ 0.672 s]
[INFO] Hawkular APM::Client::Agent ........................ SUCCESS [ 11.770 s]
[INFO] Hawkular APM::Client::OpenTracing .................. SUCCESS [ 2.608 s]
[INFO] Hawkular APM::Client::OpenTracing Agent ............ SUCCESS [ 2.005 s]
[INFO] Hawkular APM::Client::Analytics Service REST Client SUCCESS [ 0.599 s]
[INFO] Hawkular APM::Client::Kafka ........................ SUCCESS [ 0.877 s]
[INFO] Hawkular APM::Client::Trace Service REST Client .... SUCCESS [ 0.556 s]
[INFO] Hawkular APM::Examples::Vertx Opentracing .......... SUCCESS [ 0.550 s]
[INFO] Hawkular APM::Examples::Vertx Opentracing::Common .. SUCCESS [ 1.142 s]
[INFO] Hawkular APM::Examples::Vertx Opentracing::Account Manager SUCCESS [ 3.121 s]
[INFO] Hawkular APM::Examples::Vertx Opentracing::Inventory Manager SUCCESS [ 2.613 s]
[INFO] Hawkular APM::Examples::Vertx Opentracing::Order Log SUCCESS [ 2.547 s]
[INFO] Hawkular APM::Examples::Vertx Opentracing::Order Manager SUCCESS [ 2.939 s]
[INFO] Hawkular APM::Server::Elasticsearch ................ SUCCESS [ 4.698 s]
[INFO] Hawkular APM::Server::Infinispan ................... SUCCESS [ 1.564 s]
[INFO] Hawkular APM::Server::Processors ................... SUCCESS [ 1.926 s]
[INFO] Hawkular APM::Server::Processors::Zipkin ........... SUCCESS [ 1.488 s]
[INFO] Hawkular APM::Server::JMS .......................... SUCCESS [ 2.246 s]
[INFO] Hawkular APM::Server::Kafka ........................ SUCCESS [ 1.072 s]
[INFO] Hawkular APM::Server::Processors::Alerts Publisher . SUCCESS [ 1.325 s]
[INFO] Hawkular APM::Server::REST ......................... SUCCESS [ 2.697 s]
[INFO] Hawkular APM::Server::Security Provider::JAAS ...... SUCCESS [ 0.566 s]
[INFO] Hawkular APM::Server::Zipkin REST .................. SUCCESS [ 0.690 s]
[INFO] Hawkular APM::Server::Zipkin WAR ................... SUCCESS [ 2.372 s]
[INFO] Hawkular APM::Server::WAR .......................... SUCCESS [ 2.235 s]
[INFO] Hawkular APM::UI::Console .......................... FAILURE [ 28.713 s]
[INFO] Hawkular APM::Distribution ......................... SKIPPED
[INFO] Hawkular APM::Tests::App::Swarm polyglot OpenTracing SKIPPED
[INFO] Hawkular APM::Tests::OpenTracing Agent ............. SKIPPED
[INFO] Hawkular APM::Tests::Containers::Jetty ............. SKIPPED
[INFO] Hawkular APM::Tests::Containers::Standalone ........ SKIPPED
[INFO] Hawkular APM::Tests::Containers::Wildfly ........... SKIPPED
[INFO] Hawkular APM::Tests::Instrumentation ............... SKIPPED
[INFO] Hawkular APM::Tests::Instrumentation Test Framework SKIPPED
[INFO] Hawkular APM::Tests::Distribution .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:05 min
[INFO] Finished at: 2017-01-18T03:45:12-05:00
[INFO] Final Memory: 127M/239M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm install) on project hawkular-apm-ui: Failed to run task: 'npm install' failed. (error code 137) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm install) on project hawkular-apm-ui: Failed to run task
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:497)
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.MojoFailureException: Failed to run task
at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute(AbstractFrontendMojo.java:95)
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: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'npm install' failed. (error code 137)
at com.github.eirslett.maven.plugins.frontend.lib.NodeTaskExecutor.execute(NodeTaskExecutor.java:60)
at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute(NpmMojo.java:62)
at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute(AbstractFrontendMojo.java:89)
... 22 more
[ERROR]
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :hawkular-apm-ui

Thanks!!
I was fixed this issue at my end. I update ui pom.xml file for npm and bower install with install --allow-root. :)

Related

mvn sonar:sonar overrides the top level pom build time and runs sequentially at the end

After integrating sonar qube into my maven multi-module build and running
mvn -U -B -Dmaven.test.failure.ignore -Psonar verify sonar:sonar
I see the following build times
[2023-01-06T17:00:17.831Z] [INFO] ------------------------------------------------------------------------
[2023-01-06T17:00:17.831Z] [INFO] Reactor Summary for my-project 1.0.1:
[2023-01-06T17:00:17.831Z] [INFO]
[2023-01-06T17:00:17.831Z] [INFO] my-project ............................................ SUCCESS [01:52 min]
[2023-01-06T17:00:17.831Z] [INFO] my-project-common ..................................... SUCCESS [ 22.046 s]
[2023-01-06T17:00:17.831Z] [INFO] my-project-migration .................................. SUCCESS [ 3.998 s]
[2023-01-06T17:00:17.831Z] [INFO] my-project-test-common ................................ SUCCESS [ 33.710 s]
[2023-01-06T17:00:17.831Z] [INFO] my-project-dto ........................................ SUCCESS [ 3.010 s]
[2023-01-06T17:00:17.831Z] [INFO] my-project-producer ................................... SUCCESS [ 31.773 s]
[2023-01-06T17:00:17.831Z] [INFO] my-project-db ......................................... SUCCESS [01:07 min]
[2023-01-06T17:00:17.831Z] [INFO] my-project-utils ...................................... SUCCESS [ 23.637 s]
[2023-01-06T17:00:17.831Z] [INFO] my-project-server ..................................... SUCCESS [05:50 min]
[2023-01-06T17:00:17.831Z] [INFO] my-project-client ..................................... SUCCESS [ 32.758 s]
[2023-01-06T17:00:17.831Z] [INFO] my-project-http-client ................................ SUCCESS [ 5.322 s]
[2023-01-06T17:00:17.831Z] [INFO] my-project-integration ................................ SUCCESS [02:43 min]
[2023-01-06T17:00:17.831Z] [INFO] jacoco-coverage-report ................................ SUCCESS [ 8.389 s]
[2023-01-06T17:00:17.831Z] [INFO] my-project-other ...................................... SUCCESS [01:00 min]
[2023-01-06T17:00:17.831Z] [INFO] ------------------------------------------------------------------------
[2023-01-06T17:00:17.831Z] [INFO] BUILD SUCCESS
[2023-01-06T17:00:17.831Z] [INFO] ------------------------------------------------------------------------
[2023-01-06T17:00:17.831Z] [INFO] Total time: 15:22 min
[2023-01-06T17:00:17.831Z] [INFO] Finished at: 2023-01-06T17:00:17Z
[2023-01-06T17:00:17.831Z] [INFO] ------------------------------------------------------------------------
where the my-project .... build time of ~2 minutes took me by surprise.
Then on the console output I noticed the following
Building my-project 1.0.1 [15/14]
i.e. It builds the 15th step out of 14.
Examining the output it seems this is an extra step added by sonar. But it re-uses the the top level pom.xml name masking it's build time and hiding its own.
Is this expected? Is there a workaround to avoid the override?
I'm also curious if there is a way to integrate sonar and run its analysis in parallel rather than sequentially at the end?
i.e. It could analyse the finished modules while the next module is being built in parallel.
Note: The integration is via jacoco
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
</plugin>

Apache Storm: storm-core build failure

When trying to build Apache Storm downloaded from Git repository I get storm-core (or maybe storm-hive?) build error:
[INFO] Reactor Summary:
[INFO]
[INFO] Storm .............................................. SUCCESS [ 1.366 s]
[INFO] multilang-javascript ............................... SUCCESS [ 0.801 s]
[INFO] multilang-python ................................... SUCCESS [ 0.138 s]
[INFO] multilang-ruby ..................................... SUCCESS [ 0.111 s]
[INFO] maven-shade-clojure-transformer .................... SUCCESS [ 1.482 s]
[INFO] storm-maven-plugins ................................ SUCCESS [ 1.949 s]
[INFO] Storm Core ......................................... SUCCESS [02:08 min]
[INFO] storm-rename-hack .................................. SUCCESS [ 1.966 s]
[INFO] storm-kafka ........................................ SUCCESS [ 3.924 s]
[INFO] storm-hdfs ......................................... SUCCESS [01:23 min]
[INFO] storm-hbase ........................................ SUCCESS [ 13.381 s]
[INFO] storm-hive ......................................... FAILURE [ 43.185 s]
[INFO] storm-jdbc ......................................... SKIPPED
[INFO] storm-redis ........................................ SKIPPED
[INFO] storm-eventhubs .................................... SKIPPED
[INFO] flux ............................................... SKIPPED
....
....
....
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.2.1:process (default) on project storm-hive:
Error resolving project artifact: Failure to transfer org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.3-jhyde from https://clojars.org/repo/ was cached in the local repository, resolution will not be reattempted until the update interval of clojars has elapsed or updates are forced.
Original error: Could not transfer artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.3-jhyde from/to clojars (https://clojars.org/repo/): sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target for project org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.3-jhyde -> [Help 1]
[ERROR]
....
....
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :storm-hive
When running the same build with -e option (mvn -e clean install -DskipTests) I get additional info as follows:
[INFO] Reactor Summary:
[INFO]
[INFO] Storm .............................................. SUCCESS [ 4.136 s]
[INFO] multilang-javascript ............................... SUCCESS [ 1.441 s]
[INFO] multilang-python ................................... SUCCESS [ 0.151 s]
[INFO] multilang-ruby ..................................... SUCCESS [ 0.150 s]
[INFO] maven-shade-clojure-transformer .................... SUCCESS [ 1.915 s]
[INFO] storm-maven-plugins ................................ SUCCESS [ 2.727 s]
[INFO] Storm Core ......................................... FAILURE [ 9.685 s]
[INFO] storm-rename-hack .................................. SKIPPED
[INFO] storm-kafka ........................................ SKIPPED
[INFO] storm-hdfs ......................................... SKIPPED
[INFO] storm-hbase ........................................ SKIPPED
[INFO] storm-hive ......................................... SKIPPED
[INFO] storm-jdbc ......................................... SKIPPED
....
....
....
....
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
....
[ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (prepare-agent) on project storm-core:
Execution prepare-agent of goal org.jacoco:jacoco-maven-plugin:0.7.2.201409121644:prepare-agent failed: Plugin org.jacoco:jacoco-maven-plugin:0.7.2.201409121644 or one of its dependencies could not be resolved:
Failed to collect dependencies at org.jacoco:jacoco-maven-plugin:jar:0.7.2.201409121644 -> org.apache.maven:maven-project:jar:2.2.1 -> org.apache.maven:maven-settings:jar:2.2.1 -> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1 -> junit:junit:jar:4.8.2:
Failed to read artifact descriptor for junit:junit:jar:4.8.2:
Could not transfer artifact junit:junit:pom:4.8.2 from/to central (https://repo.maven.apache.org/maven2):
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException:
Failed to execute goal org.jacoco:jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (prepare-agent) on project storm-core:
Execution prepare-agent of goal org.jacoco:jacoco-maven-plugin:0.7.2.201409121644:prepare-agent failed:
Plugin org.jacoco:jacoco-maven-plugin:0.7.2.201409121644 or one of its dependencies could not be resolved:
Failed to collect dependencies at org.jacoco:jacoco-maven-plugin:jar:0.7.2.201409121644 -> org.apache.maven:maven-project:jar:2.2.1 ->
....
....
....
....
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
... 90 more
Any ideas how to solve this?
Maven is trying to download jars from https repo "https://clojars.org/repo/" but java does not have client certificates. Follow below steps to import client certificates
Step 1 : Download Client Certificate
Open https://clojars.org/repo/ URL in the browser (i.e firefox)
Click on the lock icon right to the URL bar
Server URL is shown , click to get right arrow and then on "more information"
Pop-up is opened to view the certificate of the Server.
click on the "View Certificate", In "details" table export to a file CERT_FILE_NAME.crt
Step 2 : Import the client certificate to JDK which maven is using
keytool -import -noprompt -trustcacerts -alias "clojars.org" -file C:\CERT_FILE_NAME.crt -keystore C:\java\jre\lib\security\cacerts -storepass "changeit"

Apache drill 1.7 build failure

Trying to build apache drill from git clone https://git-wip-us.apache.org/repos/asf/drill.git
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Drill Root POM .............................. SUCCESS [ 13.700 s]
[INFO] tools/Parent Pom ................................... SUCCESS [ 2.708 s]
[INFO] tools/freemarker codegen tooling ................... SUCCESS [ 7.458 s]
[INFO] Drill Protocol ..................................... SUCCESS [ 16.764 s]
[INFO] Common (Logical Plan, Base expressions) ............ SUCCESS [ 13.602 s]
[INFO] Logical Plan, Base expressions ..................... SUCCESS [ 15.324 s]
[INFO] exec/Parent Pom .................................... SUCCESS [ 5.805 s]
[INFO] exec/memory/Parent Pom ............................. SUCCESS [ 1.478 s]
[INFO] exec/memory/base ................................... SUCCESS [ 10.578 s]
[INFO] exec/rpc ........................................... SUCCESS [ 4.130 s]
[INFO] exec/Vectors ....................................... SUCCESS [01:24 min]
[INFO] contrib/Parent Pom ................................. SUCCESS [ 1.237 s]
[INFO] contrib/data/Parent Pom ............................ SUCCESS [ 1.031 s]
[INFO] contrib/data/tpch-sample-data ...................... SUCCESS [ 4.037 s]
[INFO] exec/Java Execution Engine ......................... FAILURE [ 49.806 s]
[INFO] exec/JDBC Driver using dependencies ................ SKIPPED
[INFO] JDBC JAR with all dependencies ..................... SKIPPED
[INFO] contrib/kudu-storage-plugin ........................ SKIPPED
[INFO] contrib/mongo-storage-plugin ....................... SKIPPED
[INFO] contrib/hbase-storage-plugin ....................... SKIPPED
[INFO] contrib/jdbc-storage-plugin ........................ SKIPPED
[INFO] contrib/hive-storage-plugin/Parent Pom ............. SKIPPED
[INFO] contrib/hive-storage-plugin/hive-exec-shaded ....... SKIPPED
[INFO] contrib/hive-storage-plugin/core ................... SKIPPED
[INFO] contrib/drill-gis-plugin ........................... SKIPPED
[INFO] Packaging and Distribution Assembly ................ SKIPPED
[INFO] contrib/sqlline .................................... SKIPPED
[INFO] --------------------------------------------------------------------- ---
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:53 min
[INFO] Finished at: 2016-05-29T16:34:33+05:30
[INFO] Final Memory: 102M/795M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
2:compile (default-compile) on project drill-java-exec: Compilation failure -> [
Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default- compile) on project drill-java-exec: Compilation failure
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.buildProje
ct(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(Abstrac
tCompilerMojo.java:913)
at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.ja
va:129)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:207)
... 20 more
[ERROR]
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :drill-java-exec
My environment:
Maven version 3.3.9
Java version 1.7.0_45
Anyone who has faced such issues please give suggestions, solutions.
Even I got an issue few days back it saying Some unit tests are failing.
So i used mvn install -DskipTests to continue.
follow this link, i used git clone https://github.com/apache/drill.git repo.

after correcting the problems, you can resume the build with the command mvn <goals>

I am new in maven
when I build ,I got this message
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Main ........................................ SUCCESS [ 2.187 s]
[INFO] Apache Ambari Project POM .......................... SUCCESS [ 0.038 s]
[INFO] Ambari Web ......................................... SUCCESS [ 0.526 s]
[INFO] Ambari Views ....................................... SUCCESS [ 0.248 s]
[INFO] Ambari Admin View .................................. SUCCESS [04:34 min]
[INFO] ambari-metrics ..................................... SUCCESS [ 26.287 s]
[INFO] Ambari Metrics Common .............................. SUCCESS [ 8.582 s]
[INFO] Ambari Metrics Hadoop Sink ......................... SUCCESS [01:07 min]
[INFO] Ambari Metrics Flume Sink .......................... SUCCESS [ 47.242 s]
[INFO] Ambari Metrics Kafka Sink .......................... SUCCESS [ 35.241 s]
[INFO] Ambari Metrics Storm Sink .......................... SUCCESS [02:29 min]
[INFO] Ambari Metrics Collector ........................... FAILURE [02:44 min]
[INFO] Ambari Metrics Monitor ............................. SKIPPED
[INFO] Ambari Metrics Assembly ............................ SKIPPED
[INFO] Ambari Server ...................................... SKIPPED
[INFO] Ambari Agent ....................................... SKIPPED
[INFO] Ambari Client ...................................... SKIPPED
[INFO] Ambari Python Client ............................... SKIPPED
[INFO] Ambari Groovy Client ............................... SKIPPED
[INFO] Ambari Shell ....................................... SKIPPED
[INFO] Ambari Python Shell ................................ SKIPPED
[INFO] Ambari Groovy Shell ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12:57 min
[INFO] Finished at: 2015-08-24T09:36:27+08:00
[INFO] Final Memory: 41M/320M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ambari-metrics-timelineservice: Could not resolve dependencies for project org.apache.ambari:ambari-metrics-timelineservice:jar:2.0.0-SNAPSHOT: Could not find artifact org.apache.ambari:ambari-metrics-common:jar:2.0.0-SNAPSHOT in apache-hadoop (http://repo.hortonworks.com/content/groups/public/) -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :ambari-metrics-timelineservice
I have question with this: [ERROR] mvn <goals> -rf :ambari-metrics-timelineservice
what is the <goals> means???
I type mvn <goals> -rf :ambari-metrics-timelineservice in command
it said no directory named goals
Please guide me
You have to substitute <goals> with the actual goals you have called. E.g., if you executed the maven build with mvn clean install, then clean install are the goals, which means, the complete command would be mvn clean install -rf :ambari-metrics-timelineservice.

Ant BuildException error building Hadoop 2.4.1

I am trying to install Hadoop 2.4.1 from source on Windows 7, I got the following error on the last stage. I searched for a solution, but to no avail.
O/S Windows 7: 6.1 (32-bit)
Java: java version "1.8.0_11"
protoc 2.5.0
Apache Maven 3.2.2
I use this tutorials: https://wiki.apache.org/hadoop/Hadoop2OnWindows and https://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os
Maven command:mvn package -Pdist,native-win -DskipTests -Dtar
Please help.
Error code:
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Hadoop Distribution 2.4.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (create-testdirs) # hadoop-dist ---
[INFO] Executing tasks
main:
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.2:resources (default-resources) # hadoop-dist ---
[INFO] Using default encoding to copy filtered resources.
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) # hadoop-dist ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.2:testResources (default-testResources) # hadoop-dist ---
[INFO] Using default encoding to copy filtered resources.
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) # hadoop-dist ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) # hadoop-dist ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (dist) # hadoop-dist ---
[INFO] Executing tasks
main:
[exec]
[exec] Current directory /cygdrive/c/hdc/hadoop-dist/target
[exec]
[exec] $ rm -rf hadoop-2.4.1
[exec] $ mkdir hadoop-2.4.1
[exec] $ cd hadoop-2.4.1
[exec] $ cp -r /cygdrive/c/hdc/hadoop-common-project/hadoop-common/target/hadoop-common-2.4.1/bin /cygdrive/c/hdc/ha
doop-common-project/hadoop-common/target/hadoop-common-2.4.1/etc /cygdrive/c/hdc/hadoop-common-project/hadoop-common/targ
et/hadoop-common-2.4.1/libexec /cygdrive/c/hdc/hadoop-common-project/hadoop-common/target/hadoop-common-2.4.1/sbin /cygdr
ive/c/hdc/hadoop-common-project/hadoop-common/target/hadoop-common-2.4.1/share .
[exec] cp.exe: /cygdrive/c/hdc/hadoop-common-project/hadoop-common/target/hadoop-common-2.4.1/bin: No such file or d
irectory
[exec] cp.exe: /cygdrive/c/hdc/hadoop-common-project/hadoop-common/target/hadoop-common-2.4.1/etc: No such file or d
irectory
[exec] cp.exe: /cygdrive/c/hdc/hadoop-common-project/hadoop-common/target/hadoop-common-2.4.1/libexec: No such file
or directory
[exec] cp.exe: /cygdrive/c/hdc/hadoop-common-project/hadoop-common/target/hadoop-common-2.4.1/sbin: No such file or
directory
[exec] cp.exe: /cygdrive/c/hdc/hadoop-common-project/hadoop-common/target/hadoop-common-2.4.1/share: No such file or
directory
[exec]
[exec] Failed!
[exec]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................. SUCCESS [ 4.006 s]
[INFO] Apache Hadoop Project POM .......................... SUCCESS [ 1.592 s]
[INFO] Apache Hadoop Annotations .......................... SUCCESS [ 4.343 s]
[INFO] Apache Hadoop Assemblies ........................... SUCCESS [ 0.233 s]
[INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [ 3.262 s]
[INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [ 4.871 s]
[INFO] Apache Hadoop MiniKDC .............................. SUCCESS [ 4.450 s]
[INFO] Apache Hadoop Auth ................................. SUCCESS [ 3.150 s]
[INFO] Apache Hadoop Auth Examples ........................ SUCCESS [ 3.384 s]
[INFO] Apache Hadoop Common ............................... SUCCESS [02:26 min]
[INFO] Apache Hadoop NFS .................................. SUCCESS [ 9.297 s]
[INFO] Apache Hadoop Common Project ....................... SUCCESS [ 0.058 s]
[INFO] Apache Hadoop HDFS ................................. SUCCESS [03:31 min]
[INFO] Apache Hadoop HttpFS ............................... SUCCESS [ 34.454 s]
[INFO] Apache Hadoop HDFS BookKeeper Journal .............. SUCCESS [ 9.568 s]
[INFO] Apache Hadoop HDFS-NFS ............................. SUCCESS [ 4.962 s]
[INFO] Apache Hadoop HDFS Project ......................... SUCCESS [ 0.071 s]
[INFO] hadoop-yarn ........................................ SUCCESS [ 0.055 s]
[INFO] hadoop-yarn-api .................................... SUCCESS [ 42.210 s]
[INFO] hadoop-yarn-common ................................. SUCCESS [ 36.877 s]
[INFO] hadoop-yarn-server ................................. SUCCESS [ 0.048 s]
[INFO] hadoop-yarn-server-common .......................... SUCCESS [ 7.941 s]
[INFO] hadoop-yarn-server-nodemanager ..................... SUCCESS [ 14.402 s]
[INFO] hadoop-yarn-server-web-proxy ....................... SUCCESS [ 2.625 s]
[INFO] hadoop-yarn-server-applicationhistoryservice ....... SUCCESS [ 4.543 s]
[INFO] hadoop-yarn-server-resourcemanager ................. SUCCESS [ 16.911 s]
[INFO] hadoop-yarn-server-tests ........................... SUCCESS [ 1.438 s]
[INFO] hadoop-yarn-client ................................. SUCCESS [ 3.495 s]
[INFO] hadoop-yarn-applications ........................... SUCCESS [ 0.042 s]
[INFO] hadoop-yarn-applications-distributedshell .......... SUCCESS [ 2.033 s]
[INFO] hadoop-yarn-applications-unmanaged-am-launcher ..... SUCCESS [ 1.682 s]
[INFO] hadoop-yarn-site ................................... SUCCESS [ 0.051 s]
[INFO] hadoop-yarn-project ................................ SUCCESS [ 3.453 s]
[INFO] hadoop-mapreduce-client ............................ SUCCESS [ 0.117 s]
[INFO] hadoop-mapreduce-client-core ....................... SUCCESS [ 33.057 s]
[INFO] hadoop-mapreduce-client-common ..................... SUCCESS [ 23.963 s]
[INFO] hadoop-mapreduce-client-shuffle .................... SUCCESS [ 2.181 s]
[INFO] hadoop-mapreduce-client-app ........................ SUCCESS [ 13.202 s]
[INFO] hadoop-mapreduce-client-hs ......................... SUCCESS [ 8.889 s]
[INFO] hadoop-mapreduce-client-jobclient .................. SUCCESS [ 7.842 s]
[INFO] hadoop-mapreduce-client-hs-plugins ................. SUCCESS [ 1.379 s]
[INFO] Apache Hadoop MapReduce Examples ................... SUCCESS [ 5.019 s]
[INFO] hadoop-mapreduce ................................... SUCCESS [ 3.700 s]
[INFO] Apache Hadoop MapReduce Streaming .................. SUCCESS [ 3.600 s]
[INFO] Apache Hadoop Distributed Copy ..................... SUCCESS [ 12.786 s]
[INFO] Apache Hadoop Archives ............................. SUCCESS [ 2.083 s]
[INFO] Apache Hadoop Rumen ................................ SUCCESS [ 6.695 s]
[INFO] Apache Hadoop Gridmix .............................. SUCCESS [ 4.275 s]
[INFO] Apache Hadoop Data Join ............................ SUCCESS [ 1.995 s]
[INFO] Apache Hadoop Extras ............................... SUCCESS [ 2.223 s]
[INFO] Apache Hadoop Pipes ................................ SUCCESS [ 0.042 s]
[INFO] Apache Hadoop OpenStack support .................... SUCCESS [ 4.186 s]
[INFO] Apache Hadoop Client ............................... SUCCESS [ 7.937 s]
[INFO] Apache Hadoop Mini-Cluster ......................... SUCCESS [ 0.158 s]
[INFO] Apache Hadoop Scheduler Load Simulator ............. SUCCESS [ 3.874 s]
[INFO] Apache Hadoop Tools Dist ........................... SUCCESS [ 5.658 s]
[INFO] Apache Hadoop Tools ................................ SUCCESS [ 0.038 s]
[INFO] Apache Hadoop Distribution ......................... FAILURE [ 2.740 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12:23 min
[INFO] Finished at: 2014-07-18T17:43:34+04:00
[INFO] Final Memory: 65M/238M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (dist) on project hadoop-dist: An Ant
BuildException has occured: exec returned: 1
[ERROR] around Ant part ...<exec failonerror="true" dir="C:\hdc\hadoop-dist\target" executable="sh">... # 34:76 in C:\hdc
\hadoop-dist\target\antrun\build-main.xml
[ERROR] -> [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 :hadoop-dist
I met the same problem.
There are some information above the "Reactor Summar",
such as
"cp: cannot open `/cygdrive/c/hadoop/hadoop-common-project/hadoop-common/target/hadoop-common-3.0.0-SNAPSHOT/bin/hadoop.dll' for reading: Permission denied".
Just run the command prompt as admin
I just had the same problem - run the Maven command from within Cygwin and follow the instructions from here up to step 5.
I had the same issue and i fixed it by doing:
sudo apt-get install zlib1g-dev
sudo apt-get install libssl-dev
Source: https://stackoverflow.com/a/23385780/2245718
Cheers

Resources