pinpoint-apm / pinpoint

APM, (Application Performance Management) tool for large-scale distributed systems.
https://pinpoint-apm.gitbook.io/
Apache License 2.0
13.41k stars 3.75k forks source link

Failed to build V1.7.3 and master(20180627) due to cloudera repos #4304

Closed xuqingkang closed 6 years ago

xuqingkang commented 6 years ago

How can i fix it?

What version of pinpoint are you using? master and v1.7.3

Describe your problem Faild to run "mvn install -Dmaven.test.skip=true", the "pinpoint-profiler" always failed to build. due to [Failed to execute goal on project pinpoint-profiler: Could not resolve dependencies for project com.navercorp.pinpoint:pinpoint-profiler:jar:1.8.0-SNAPSHOT: Could not find artifact com.navercorp.pinpoint:pinpoint-rpc:jar:tests:1. 8.0-SNAPSHOT in cloudera (https://repository.cloudera.com/artifactory/cloudera-repos/)]

How can we reproduce? Steps to reproduce, for example:

  1. git clone https://github.com/naver/pinpoint.git
  2. ./mvnw install -Dmaven.test.skip=true

Screenshots None

Logs [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for http://jcenter.bintray.com Downloading: http://jcenter.bintray.com/com/navercorp/pinpoint/pinpoint-rpc/1.8.0-SNAPSHOT/pinpoint-rpc-1.8.0-SNAPSHOT-tests.jar [DEBUG] Writing tracking file E:\devInstaller\maven\repository\com\navercorp\pinpoint\pinpoint-rpc\1.8.0-SNAPSHOT\pinpoint-rpc-1.8.0-SNAPSHOT-tests.jar.lastUpdated [DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/ [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/ Downloading: https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/com/navercorp/pinpoint/pinpoint-rpc/1.8.0-SNAPSHOT/pinpoint-rpc-1.8.0-SNAPSHOT-tests.jar [DEBUG] Writing tracking file E:\devInstaller\maven\repository\com\navercorp\pinpoint\pinpoint-rpc\1.8.0-SNAPSHOT\pinpoint-rpc-1.8.0-SNAPSHOT-tests.jar.lastUpdated [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] pinpoint ........................................... SUCCESS [02:25 min] [INFO] pinpoint-annotations ............................... SUCCESS [04:10 min] [INFO] pinpoint-commons ................................... SUCCESS [01:27 min] [INFO] pinpoint-thrift .................................... SUCCESS [ 15.566 s] [INFO] pinpoint-bootstrap-core ............................ SUCCESS [ 9.707 s] [INFO] pinpoint-bootstrap ................................. SUCCESS [ 8.540 s] [INFO] pinpoint-rpc ....................................... SUCCESS [ 30.669 s] [INFO] pinpoint-profiler .................................. FAILURE [01:13 min] [INFO] pinpoint-commons-hbase ............................. SKIPPED [INFO] pinpoint-commons-server ............................ SKIPPED [INFO] pinpoint-profiler-test ............................. SKIPPED [INFO] pinpoint-profiler-optional-parent .................. SKIPPED [INFO] pinpoint-profiler-optional-jdk6 .................... SKIPPED [INFO] pinpoint-profiler-optional-jdk7 .................... SKIPPED [INFO] pinpoint-test ...................................... SKIPPED [INFO] pinpoint-profiler-optional-jdk8 .................... SKIPPED [INFO] pinpoint-profiler-optional-jdk9 .................... SKIPPED [INFO] pinpoint-profiler-optional ......................... SKIPPED [INFO] pinpoint-httpclient3-plugin ........................ SKIPPED [INFO] pinpoint-httpclient4-plugin ........................ SKIPPED [INFO] pinpoint-ning-asynchttpclient-plugin ............... SKIPPED [INFO] pinpoint-resttemplate-plugin ....................... SKIPPED [INFO] pinpoint-netty-plugin .............................. SKIPPED [INFO] pinpoint-gson-plugin ............................... SKIPPED [INFO] pinpoint-cubrid-jdbc-driver-plugin ................. SKIPPED [INFO] pinpoint-mysql-jdbc-driver-plugin .................. SKIPPED [INFO] pinpoint-mariadb-jdbc-driver-plugin ................ SKIPPED [INFO] pinpoint-postgresql-jdbc-driver-plugin ............. SKIPPED [INFO] pinpoint-jtds-plugin ............................... SKIPPED [INFO] pinpoint-oracle-jdbc-driver-plugin ................. SKIPPED [INFO] pinpoint-commons-dbcp-plugin ....................... SKIPPED [INFO] pinpoint-commons-dbcp2-plugin ...................... SKIPPED [INFO] pinpoint-hikaricp-plugin ........................... SKIPPED [INFO] pinpoint-cassandra-driver-plugin ................... SKIPPED [INFO] pinpoint-jdk-http-plugin ........................... SKIPPED [INFO] pinpoint-redis-plugin .............................. SKIPPED [INFO] pinpoint-tomcat-plugin ............................. SKIPPED [INFO] pinpoint-json-lib-plugin ........................... SKIPPED [INFO] pinpoint-jackson-plugin ............................ SKIPPED [INFO] pinpoint-thrift-plugin ............................. SKIPPED [INFO] pinpoint-user-plugin ............................... SKIPPED [INFO] pinpoint-arcus-plugin .............................. SKIPPED [INFO] pinpoint-google-httpclient-plugin .................. SKIPPED [INFO] pinpoint-jetty-plugin .............................. SKIPPED [INFO] pinpoint-websphere-plugin .......................... SKIPPED [INFO] pinpoint-spring-plugin ............................. SKIPPED [INFO] pinpoint-spring-boot-plugin ........................ SKIPPED [INFO] pinpoint-ibatis-plugin ............................. SKIPPED [INFO] pinpoint-mybatis-plugin ............................ SKIPPED [INFO] pinpoint-okhttp-plugin ............................. SKIPPED [INFO] pinpoint-log4j-plugin .............................. SKIPPED [INFO] pinpoint-logback-plugin ............................ SKIPPED [INFO] pinpoint-dubbo-plugin .............................. SKIPPED [INFO] pinpoint-activemq-client-plugin .................... SKIPPED [INFO] pinpoint-cxf-plugin ................................ SKIPPED [INFO] pinpoint-hystrix-plugin ............................ SKIPPED [INFO] pinpoint-jboss-plugin .............................. SKIPPED [INFO] pinpoint-vertx-plugin .............................. SKIPPED [INFO] pinpoint-resin-plugin .............................. SKIPPED [INFO] pinpoint-jsp-plugin ................................ SKIPPED [INFO] pinpoint-rxjava-plugin ............................. SKIPPED [INFO] pinpoint-rabbitmq-plugin ........................... SKIPPED [INFO] pinpoint-weblogic-plugin ........................... SKIPPED [INFO] pinpoint-php-plugin ................................ SKIPPED [INFO] pinpoint-plugins ................................... SKIPPED [INFO] pinpoint-bootstrap-java9 ........................... SKIPPED [INFO] pinpoint-bootstrap-core-optional ................... SKIPPED [INFO] pinpoint-tools ..................................... SKIPPED [INFO] pinpoint-agent-distribution ........................ SKIPPED [INFO] pinpoint-collector ................................. SKIPPED [INFO] pinpoint-plugin-bom ................................ SKIPPED [INFO] pinpoint-web ....................................... SKIPPED [INFO] pinpoint-hbase-distribution ........................ SKIPPED [INFO] pinpoint-flink ..................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10:32 min [INFO] Finished at: 2018-06-27T11:55:34+08:00 [INFO] Final Memory: 48M/417M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project pinpoint-profiler: Could not resolve dependencies for project com.navercorp.pinpoint:pinpoint-profiler:jar:1.8.0-SNAPSHOT: Could not find artifact com.navercorp.pinpoint:pinpoint-rpc:jar:tests:1. 8.0-SNAPSHOT in cloudera (https://repository.cloudera.com/artifactory/cloudera-repos/) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project pinpoint-profiler: Could not resolve dependencies for project com.navercorp.pinpoint:pinpoint-profiler:jar:1.8.0-SNAPSHOT: Could not find artifact com.navercorp.pinpoint:pinpoint-rpc:jar:tests:1.8.0-SNAPSHOT in cloudera (https://repository.cloudera.com/artifactory/cloudera-repos/) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200) 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:862) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) 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.project.DependencyResolutionException: Could not resolve dependencies for project com.navercorp.pinpoint:pinpoint-profiler:jar:1.8.0-SNAPSHOT: Could not find artifact com.navercorp.pinpoint:pinpoint-rpc:jar:te sts:1.8.0-SNAPSHOT in cloudera (https://repository.cloudera.com/artifactory/cloudera-repos/) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:211) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195) ... 23 more Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact com.navercorp.pinpoint:pinpoint-rpc:jar:tests:1.8.0-SNAPSHOT in cloudera (https://repository.cloudera.com/artifactory/cloudera-repos/) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:205) ... 24 more Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact com.navercorp.pinpoint:pinpoint-rpc:jar:tests:1.8.0-SNAPSHOT in cloudera (https://repository.cloudera.com/artifactory/cloudera-repos/) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367) ... 25 more Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact com.navercorp.pinpoint:pinpoint-rpc:jar:tests:1.8.0-SNAPSHOT in cloudera (https://repository.cloudera.com/artifactory/cloudera-repos/) at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:39) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355) at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [ERROR] [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 -rf :pinpoint-profiler

Additional context\ in my local maven repository, i found the file "com\navercorp\pinpoint\pinpoint-rpc\1.8.0-SNAPSHOT\pinpoint-rpc-1.8.0-SNAPSHOT-tests.jar.lastUpdated",the content is as following:

NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.

Wed Jun 27 11:55:32 CST 2018

http\://repo.spring.io/libs-release-remote/.error= http\://maven.springframework.org/release/.error= http\://repo.spring.io/libs-release-remote/.lastUpdated=1530071726138 https\://repository.jboss.org/nexus/content/repositories/thirdparty-releases/.lastUpdated=1530071732657 http\://maven.springframework.org/release/.lastUpdated=1530071724482 http\://jcenter.bintray.com/.error= https\://repository.jboss.org/nexus/content/repositories/thirdparty-releases/.error= https\://repository.cloudera.com/artifactory/cloudera-repos/.lastUpdated=1530071722268 http\://jcenter.bintray.com/.lastUpdated=1530071729135 https\://repository.cloudera.com/artifactory/cloudera-repos/.error=

xuqingkang commented 6 years ago

I delete the "-Dmaven.test.skip=true" option from mvn install command. althrough the mvn install command failed, but i found pinpoint-rpc-1.8.0-SNAPSHOT-tests.jar in my local maven repository “com\navercorp\pinpoint\pinpoint-rpc\1.8.0-SNAPSHOT”, it seems to be ok.

Then, i re-execute the “mvn install -Dmaven.test.skip=true” and it success

koo-taejin commented 6 years ago

hi xuqingkang

It was created to delete duplication of test code, I can't expect this issue to happen. i will verify this issue.

But If look at our travis script In the initial state, We can run following script without throwing errors.

./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -B -V | grep -Fv '[copy'
./mvnw clover:setup test -Ptest clover:aggregate clover:clover -e | grep -Fv 'DEBUG' | grep -Fv '[copy'

thanks.

xuqingkang commented 6 years ago

hi koo-taejin. thanks for you reply, today the build failed at pinpoint-web module, the following are the message. it seems that:Caused by: java.lang.ClassNotFoundException: org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream.

detail message is: [INFO] pinpoint-plugin-bom ................................ SUCCESS [ 0.403 s] [INFO] pinpoint-web ....................................... FAILURE [ 2.221 s] [INFO] pinpoint-hbase-distribution ........................ SKIPPED [INFO] pinpoint-flink 1.8.0-SNAPSHOT ...................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:28 min [INFO] Finished at: 2018-07-20T10:33:29+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:install-node-and-npm (install node and npm) on project pinpoint-web: Execution install node and npm of goal com.github.eirslett:frontend-maven-plugin:1.0:install-node-and-npm failed: A required class was missing while executing com.github.eirslett:frontend-maven-plugin:1.0:install-node-and-npm: org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>com.github.eirslett:frontend-maven-plugin:1.0 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/E:/devInstaller/maven/repository/com/github/eirslett/frontend-maven-plugin/1.0/frontend-maven-plugin-1.0.jar [ERROR] urls[1] = file:/E:/devInstaller/maven/repository/com/github/eirslett/frontend-plugin-core/1.0/frontend-plugin-core-1.0.jar [ERROR] urls[2] = file:/E:/devInstaller/maven/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.2/maven-plugin-annotations-3.2.jar [ERROR] urls[3] = file:/E:/devInstaller/maven/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar [ERROR] urls[4] = file:/E:/devInstaller/maven/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] ----------------------------------------------------- [ERROR] : org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:install-node-and-npm (install node and npm) on project pinpoint-web: Execution install node and npm of goal com.github.eirslett:frontend-maven-plugin:1.0:install-node-and-npm failed: A required class was missing while executing com.github.eirslett:frontend-maven-plugin:1.0:install-node-and-npm: org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream

realm = plugin>com.github.eirslett:frontend-maven-plugin:1.0 strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] = file:/E:/devInstaller/maven/repository/com/github/eirslett/frontend-maven-plugin/1.0/frontend-maven-plugin-1.0.jar urls[1] = file:/E:/devInstaller/maven/repository/com/github/eirslett/frontend-plugin-core/1.0/frontend-plugin-core-1.0.jar urls[2] = file:/E:/devInstaller/maven/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.2/maven-plugin-annotations-3.2.jar urls[3] = file:/E:/devInstaller/maven/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar urls[4] = file:/E:/devInstaller/maven/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar Number of foreign imports: 1 import: Entry[import from realm ClassRealm[maven.api, parent: null]]


at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
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)
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.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:39)
at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:122)
at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:55)

Caused by: org.apache.maven.plugin.PluginExecutionException: Execution install node and npm of goal com.github.eirslett:frontend-maven-plugin:1.0:install-node-and-npm failed: A required class was missing while executing com.github.eirslett:frontend-maven-plugin:1.0:install-node-and-npm: org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream

realm = plugin>com.github.eirslett:frontend-maven-plugin:1.0 strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] = file:/E:/devInstaller/maven/repository/com/github/eirslett/frontend-maven-plugin/1.0/frontend-maven-plugin-1.0.jar urls[1] = file:/E:/devInstaller/maven/repository/com/github/eirslett/frontend-plugin-core/1.0/frontend-plugin-core-1.0.jar urls[2] = file:/E:/devInstaller/maven/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.2/maven-plugin-annotations-3.2.jar urls[3] = file:/E:/devInstaller/maven/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar urls[4] = file:/E:/devInstaller/maven/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar Number of foreign imports: 1 import: Entry[import from realm ClassRealm[maven.api, parent: null]]


at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
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)
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.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:39)
at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:122)
at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:55)

Caused by: org.apache.maven.plugin.PluginContainerException: A required class was missing while executing com.github.eirslett:frontend-maven-plugin:1.0:install-node-and-npm: org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream

realm = plugin>com.github.eirslett:frontend-maven-plugin:1.0 strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] = file:/E:/devInstaller/maven/repository/com/github/eirslett/frontend-maven-plugin/1.0/frontend-maven-plugin-1.0.jar urls[1] = file:/E:/devInstaller/maven/repository/com/github/eirslett/frontend-plugin-core/1.0/frontend-plugin-core-1.0.jar urls[2] = file:/E:/devInstaller/maven/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.2/maven-plugin-annotations-3.2.jar urls[3] = file:/E:/devInstaller/maven/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar urls[4] = file:/E:/devInstaller/maven/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar Number of foreign imports: 1 import: Entry[import from realm ClassRealm[maven.api, parent: null]]


at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:169)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
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)
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.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:39)
at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:122)
at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:55)

Caused by: java.lang.NoClassDefFoundError: org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream at com.github.eirslett.maven.plugins.frontend.lib.FrontendPluginFactory.getNodeAndNPMInstaller (FrontendPluginFactory.java:26) at com.github.eirslett.maven.plugins.frontend.mojo.InstallNodeAndNpmMojo.execute (InstallNodeAndNpmMojo.java:72) at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:89) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) 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) 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.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:39) at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:122) at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:55) Caused by: java.lang.ClassNotFoundException: org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:239) at com.github.eirslett.maven.plugins.frontend.lib.FrontendPluginFactory.getNodeAndNPMInstaller (FrontendPluginFactory.java:26) at com.github.eirslett.maven.plugins.frontend.mojo.InstallNodeAndNpmMojo.execute (InstallNodeAndNpmMojo.java:72) at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:89) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) 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) 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.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:39) at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:122) at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:55) [ERROR] [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/PluginContainerException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :pinpoint-web

xuqingkang commented 6 years ago

Hi ALL. Finally, I checked my local maven repository, and i found several version module in org\apache\commons\commons-compress directory. so I modified following file of frontend-maven-plugin: repository\com\github\eirslett\frontend-maven-plugin\1.0\frontend-maven-plugin-1.0.pom.

I added following dependencies in this file.

    <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-plugin-api</artifactId>
        <version>3.1.0</version>
    </dependency>

    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-compress</artifactId>
        <version>1.10</version>
    </dependency>

And it succeeded to build, it's great!

[INFO] pinpoint-web ....................................... SUCCESS [09:28 min] [INFO] pinpoint-hbase-distribution ........................ SUCCESS [ 5.221 s] [INFO] pinpoint-flink 1.8.0-SNAPSHOT ...................... SUCCESS [16:13 min] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 52:48 min [INFO] Finished at: 2018-07-20T14:59:34+08:00 [INFO] ------------------------------------------------------------------------

koo-taejin commented 6 years ago

I found why error occurred in executing mvn install -Dmaven.test.skip=true command. Pinpoint create RPC module jar for test.

However, the maven command had the following differences -Dmaven.test.skip=true This command not build the test jars but it will check test dependency. -DskipTests, This command not build the test jars and also not check test dependency

For this reason, should use - DskipTests instead of -Dmaven.test.skip=true command.

I'll figure out how to handle this.

irvingqiu0823 commented 5 years ago

I delete the "-Dmaven.test.skip=true" option from mvn install command. althrough the mvn install command failed, but i found pinpoint-rpc-1.8.0-SNAPSHOT-tests.jar in my local maven repository “com\navercorp\pinpoint\pinpoint-rpc\1.8.0-SNAPSHOT”, it seems to be ok.

Then, i re-execute the “mvn install -Dmaven.test.skip=true” and it success

I found why error occurred in executing mvn install -Dmaven.test.skip=true command. Pinpoint create RPC module jar for test.

However, the maven command had the following differences -Dmaven.test.skip=true This command not build the test jars but it will check test dependency. -DskipTests, This command not build the test jars and also not check test dependency

For this reason, should use - DskipTests instead of -Dmaven.test.skip=true command.

I'll figure out how to handle this.

it helps a lot