org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalStateException: Duplicate plugin realm for plugin org.apache.maven.plugins:maven-compiler-plugin:2.4

JFrog JIRA | Chad Larkin | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Possibly related to BAP-248 Bamboo version 5.12.2 Artifactory Plugin Version 1.11.1 Maven compiler plugin 2.4 Groovy compiler plugin 2.7.0-01 failure message in bamboo: {code} 25-Jul-2016 15:50:51 [ERROR] Internal error: java.lang.IllegalStateException: Duplicate plugin realm for plugin org.apache.maven.plugins:maven-compiler-plugin:2.4 -> [Help 1] 25-Jul-2016 15:50:51 org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalStateException: Duplicate plugin realm for plugin org.apache.maven.plugins:maven-compiler-plugin:2.4 25-Jul-2016 15:50:51 at org.apache.maven.lifecycle.internal.builder.BuilderCommon.handleBuildError(BuilderCommon.java:147) 25-Jul-2016 15:50:51 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:129) 25-Jul-2016 15:50:51 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) 25-Jul-2016 15:50:51 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) 25-Jul-2016 15:50:51 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) 25-Jul-2016 15:50:51 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) 25-Jul-2016 15:50:51 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) 25-Jul-2016 15:50:51 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) 25-Jul-2016 15:50:51 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) 25-Jul-2016 15:50:51 at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) 25-Jul-2016 15:50:51 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 25-Jul-2016 15:50:51 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 25-Jul-2016 15:50:51 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 25-Jul-2016 15:50:51 at java.lang.reflect.Method.invoke(Method.java:597) 25-Jul-2016 15:50:51 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) 25-Jul-2016 15:50:51 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) 25-Jul-2016 15:50:51 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) 25-Jul-2016 15:50:51 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) 25-Jul-2016 15:50:51 Caused by: java.lang.IllegalStateException: Duplicate plugin realm for plugin org.apache.maven.plugins:maven-compiler-plugin:2.4 25-Jul-2016 15:50:51 at org.apache.maven.plugin.DefaultPluginRealmCache.put(DefaultPluginRealmCache.java:172) 25-Jul-2016 15:50:51 at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMavenPluginManager.java:331) 25-Jul-2016 15:50:51 at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:229) 25-Jul-2016 15:50:51 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:100) 25-Jul-2016 15:50:51 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) 25-Jul-2016 15:50:51 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 25-Jul-2016 15:50:51 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 25-Jul-2016 15:50:51 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) 25-Jul-2016 15:50:51 ... 16 more 25-Jul-2016 15:50:51 [ERROR] 25-Jul-2016 15:50:51 [ERROR] 25-Jul-2016 15:50:51 [ERROR] For more information about the errors and possible solutions, please read the following articles: 25-Jul-2016 15:50:51 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException {code} relevant POM configuration: {code} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.4</version> <configuration> <source>${java.version}</source> <target>${target.jre.version}</target> <compilerId>groovy-eclipse-compiler</compilerId> <!-- <verbose>true</verbose> --> </configuration> <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-compiler</artifactId> <version>2.7.0-01</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-batch</artifactId> <version>2.0.6-01</version> </dependency> </dependencies> </plugin> {code}

    JFrog JIRA | 9 months ago | Chad Larkin
    org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalStateException: Duplicate plugin realm for plugin org.apache.maven.plugins:maven-compiler-plugin:2.4
  2. 0

    Maven Duplicate plugin realm for plugin

    Stack Overflow | 4 years ago | Tuno
    org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalStateException: Duplicate plugin realm for plugin eviware:maven-soapui-plugin:4.5.1
  3. 0

    Hi folks! Currently we're constantly seeing a lot of the following exceptions when trying to use the Bamboo Artifactory Plug-In in a project that utilizes the groovy-eclipse-compiler in version 2.9.0-01. {code} [ERROR] Internal error: java.lang.IllegalStateException: Duplicate plugin realm for plugin org.codehaus.groovy:groovy-eclipse-compiler:2.9.0-01 -> [Help 1] org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalStateException: Duplicate plugin realm for plugin org.codehaus.groovy:groovy-eclipse-compiler:2.9.0-01 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: java.lang.IllegalStateException: Duplicate plugin realm for plugin org.codehaus.groovy:groovy-eclipse-compiler:2.9.0-01 at org.apache.maven.plugin.DefaultPluginRealmCache.put(DefaultPluginRealmCache.java:170) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMavenPluginManager.java:323) at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:175) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:78) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) 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:84) {code} We made sure that the POM does not contain a duplicate definition of the groovy-eclipse-compiler plug-in.

    JFrog JIRA | 2 years ago | Henning Malzahn
    org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalStateException: Duplicate plugin realm for plugin org.codehaus.groovy:groovy-eclipse-compiler:2.9.0-01
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hi folks! Currently we're constantly seeing a lot of the following exceptions when trying to use the Bamboo Artifactory Plug-In in a project that utilizes the groovy-eclipse-compiler in version 2.9.0-01. {code} [ERROR] Internal error: java.lang.IllegalStateException: Duplicate plugin realm for plugin org.codehaus.groovy:groovy-eclipse-compiler:2.9.0-01 -> [Help 1] org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalStateException: Duplicate plugin realm for plugin org.codehaus.groovy:groovy-eclipse-compiler:2.9.0-01 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: java.lang.IllegalStateException: Duplicate plugin realm for plugin org.codehaus.groovy:groovy-eclipse-compiler:2.9.0-01 at org.apache.maven.plugin.DefaultPluginRealmCache.put(DefaultPluginRealmCache.java:170) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMavenPluginManager.java:323) at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:175) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:78) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) 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:84) {code} We made sure that the POM does not contain a duplicate definition of the groovy-eclipse-compiler plug-in.

    JFrog JIRA | 2 years ago | Henning Malzahn
    org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalStateException: Duplicate plugin realm for plugin org.codehaus.groovy:groovy-eclipse-compiler:2.9.0-01
  6. 0

    [BAP-248] Duplicate plugin realm for plugin groovy-eclipse-compiler - JFrog JIRA

    jfrog.com | 4 months ago
    org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalStateException: Duplicate plugin realm plugin org.codehaus.groovy:groovy-eclipse-compiler:2.9.0-01

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Duplicate plugin realm for plugin org.apache.maven.plugins:maven-compiler-plugin:2.4

      at org.apache.maven.plugin.DefaultPluginRealmCache.put()
    2. Maven Plugin
      DefaultPluginRealmCache.put
      1. org.apache.maven.plugin.DefaultPluginRealmCache.put(DefaultPluginRealmCache.java:172)
      1 frame
    3. Maven Core
      DefaultMavenPluginManager.setupPluginRealm
      1. org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMavenPluginManager.java:331)
      1 frame
    4. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:229)
      2. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:100)
      2 frames
    5. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      6. org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
      9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
      9 frames
    6. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
      2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
      3. org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
      3 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    8. Plexus
      Launcher.main
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      4 frames