question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]

See original GitHub issue

Not sure what to make of this…

INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.347s
[INFO] Finished at: Thu Jul 30 17:39:15 CDT 2015
[INFO] Final Memory: 9M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project facebook-polling: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-compiler-plugin:3.3:compile: java.lang.NoSuchMethodError: org.codehaus.plexus.compiler.javac.errorprone.JavacCompilerWithErrorProne$NonDelegatingClassLoader.getClassLoadingLock(Ljava/lang/String;)Ljava/lang/Object;
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-compiler-plugin:3.3
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/stantonk/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.3/maven-compiler-plugin-3.3.jar
[ERROR] urls[1] = file:/Users/stantonk/.m2/repository/org/codehaus/plexus/plexus-compiler-javac-errorprone/2.5/plexus-compiler-javac-errorprone-2.5.jar
[ERROR] urls[2] = file:/Users/stantonk/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.10/plexus-utils-3.0.10.jar
[ERROR] urls[3] = file:/Users/stantonk/.m2/repository/com/google/errorprone/error_prone_core/2.0.4/error_prone_core-2.0.4.jar
[ERROR] urls[4] = file:/Users/stantonk/.m2/repository/com/google/errorprone/error_prone_annotation/2.0.4/error_prone_annotation-2.0.4.jar
[ERROR] urls[5] = file:/Users/stantonk/.m2/repository/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar
[ERROR] urls[6] = file:/Users/stantonk/.m2/repository/org/pcollections/pcollections/2.1.2/pcollections-2.1.2.jar
[ERROR] urls[7] = file:/Users/stantonk/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar
[ERROR] urls[8] = file:/Users/stantonk/.m2/repository/com/google/code/findbugs/jFormatString/3.0.0/jFormatString-3.0.0.jar
[ERROR] urls[9] = file:/Users/stantonk/.m2/repository/com/google/code/findbugs/jsr305/3.0.0/jsr305-3.0.0.jar
[ERROR] urls[10] = file:/Users/stantonk/.m2/repository/org/checkerframework/dataflow/1.8.10/dataflow-1.8.10.jar
[ERROR] urls[11] = file:/Users/stantonk/.m2/repository/org/checkerframework/javacutil/1.8.10/javacutil-1.8.10.jar
[ERROR] urls[12] = file:/Users/stantonk/.m2/repository/com/google/errorprone/javac/1.9.0-dev-r2644-1/javac-1.9.0-dev-r2644-1.jar
[ERROR] urls[13] = file:/Users/stantonk/.m2/repository/com/google/errorprone/error_prone_annotations/2.0.4/error_prone_annotations-2.0.4.jar
[ERROR] urls[14] = file:/Users/stantonk/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
[ERROR] urls[15] = file:/Users/stantonk/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
[ERROR] urls[16] = file:/Users/stantonk/.m2/repository/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar
[ERROR] urls[17] = file:/Users/stantonk/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar
[ERROR] urls[18] = file:/Users/stantonk/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[19] = file:/Users/stantonk/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[20] = file:/Users/stantonk/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[21] = file:/Users/stantonk/.m2/repository/org/apache/maven/shared/maven-shared-utils/0.7/maven-shared-utils-0.7.jar
[ERROR] urls[22] = file:/Users/stantonk/.m2/repository/org/apache/maven/shared/maven-shared-incremental/1.1/maven-shared-incremental-1.1.jar
[ERROR] urls[23] = file:/Users/stantonk/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[24] = file:/Users/stantonk/.m2/repository/org/codehaus/plexus/plexus-compiler-api/2.5/plexus-compiler-api-2.5.jar
[ERROR] urls[25] = file:/Users/stantonk/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/2.5/plexus-compiler-manager-2.5.jar
[ERROR] urls[26] = file:/Users/stantonk/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/2.5/plexus-compiler-javac-2.5.jar
[ERROR] urls[27] = file:/Users/stantonk/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
[ERROR] urls[28] = file:/Users/stantonk/.m2/repository/log4j/log4j/1.2.12/log4j-1.2.12.jar
[ERROR] urls[29] = file:/Users/stantonk/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
[ERROR] urls[30] = file:/Users/stantonk/.m2/repository/com/google/collections/google-collections/1.0/google-collections-1.0.jar
[ERROR] urls[31] = file:/Users/stantonk/.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[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/PluginContainerException

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
ronakgpatelcommented, Apr 25, 2018

I had Jdk9 installed but project was using 1.8 I changed it to export JAVA_HOME=“$(/usr/libexec/java_home -v 1.8)” and worked.

3reactions
raghuchowdareddycommented, Jun 3, 2017

Hi, Even I had faced above issue along with http 500 server exception Make sure below steps are working and in place

  1. docker ps
  2. docker-machine ls (at least default machine should be running) Some time docker-machine may not start properly. So I end up doing re-install the docker and start the docker-machine again $docker-machine env default export DOCKER_TLS_VERIFY=“1” export DOCKER_HOST=“tcp://192.168.99.100:2376” export DOCKER_CERT_PATH=“/Users/user-name/.docker/machine/machines/default” export DOCKER_MACHINE_NAME=“default”
  3. Important: make sure you have the dockerfile naming convension as

“Dockerfile”

NOT

“DockerFile”

Because, i have seen some sites suggested to name like DockerFile, but it did not work for me 3. In pom.xml check the configuration as below <configuration> <dockerCertPath>/Users/username/.docker/machine/machines/default</dockerCertPath> <imageName>enterimangename</imageName> <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory> <dockerHost>https://192.168.99.100:2376</dockerHost> <serverId>docker-hub</serverId> <registryUrl>https://index.docker.io/v1/</registryUrl> <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}</directory> <include>${project.build.finalName}.jar</include> </resource> </resources> </configuration> 4. But last but not least in maven settings.xml <server> <id>docker-hub</id> <username>username</username> <password>pwd</password> <configuration> <email>abc@abc.com</email> </configuration> </server> 5. Finally do “mvn clean install”

Read more comments on GitHub >

github_iconTop Results From Across the Web

pmd import: Entry[import from realm ClassRealm[maven.api ...
pmd import: Entry[import from realm ClassRealm[maven.api, parent: null]] ... I am trying to add a custom rule written in java language to the...
Read more >
Error saying import from realm ClassRealm[maven.api, parent
I am getting a message saying import: Entry[import from realm ClassRealm[maven.api, parent: null]] when I import a jar and create object of ...
Read more >
IBM ACE v11 Continuous Integration-Maven-Jenkins
[DEBUG] Importing foreign packages into class realm maven.api ... [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
Read more >
plugin 'ro.isdc.wro4j:wro4j-maven-plugin:1.7.0'. A required ...
[DEBUG] Importing foreign packages into class realm maven.api ... [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]. [ERROR].
Read more >
Vaadin 7.7.9 UpdateWidgetsetMojo
< plexus.core [DEBUG] Imported: org.slf4j.spi.* < plexus.core [DEBUG] Populating class realm maven.api [INFO] Error stacktraces are turned ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found