org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.googlecode.flyway:flyway-maven-plugin:2.2:migrate (default) on project server.database: An API incompatibility was encountered during configuration of mojo com.googlecode.flyway:flyway-maven-plugin:2.2:migrate: java.lang.NoSuchMethodError: org.codehaus.plexus.component.configurator.converters.special.ClassRealmConverter.<init>(Lorg/codehaus/classworlds/ClassRealm;)V ----------------------------------------------------- realm = plugin>com.googlecode.flyway:flyway-maven-plugin:2.2 strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] = file:/C:/.m2/repository/com/googlecode/flyway/flyway-maven-plugin/2.2/flyway-maven-plugin-2.2.jar urls[1] = file:/C:/.m2/repository/com/h2database/h2/1.3.172/h2-1.3.172.jar urls[2] = file:/C:/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar urls[3] = file:/C:/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar urls[4] = file:/C:/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar urls[5] = file:/C:/.m2/repository/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar urls[6] = file:/C:/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar urls[7] = file:/C:/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.2.1/maven-reporting-api-2.2.1.jar urls[8] = file:/C:/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar urls[9] = file:/C:/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar urls[10] = file:/C:/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar urls[11] = file:/C:/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar urls[12] = file:/C:/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar urls[13] = file:/C:/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar urls[14] = file:/C:/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar urls[15] = file:/C:/.m2/repository/com/googlecode/flyway/flyway-core/2.2/flyway-core-2.2.jar urls[16] = file:/C:/Program%20Files/Jenkins/jobs/server/workspace/database/target/test-classes urls[17] = file:/C:/Program%20Files/Jenkins/jobs/server/workspace/database/target/classes/ urls[18] = file:/C:/.m2/repository/com/google/guava/guava/14.0.1/guava-14.0.1.jar Number of foreign imports: 1 import: Entry[import from realm ClassRealm[maven.api, parent: null]] -----------------------------------------------------

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Jenkins JIRA by cowwoc, 1 year ago
Failed to execute goal com.googlecode.flyway:flyway-maven-plugin:2.2:migrate (default) on project server.database: An API incompatibility was encountered during configuration of mojo com.googlecode.flyway:flyway-maven-plugin:2.2:migrate
via Jenkins JIRA by cowwoc, 1 year ago
Failed to execute goal com.googlecode.flyway:flyway-maven-plugin:2.2:migrate (default) on project server.database: An API incompatibility was encountered during configuration of mojo com.googlecode.flyway:flyway-maven-plugin:2.2:migrate
via Atlassian JIRA by Jason Dillon, 1 year ago
-cli-1.0.jar urls[6] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar urls[7] = file:/Users/jason/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1
via Atlassian JIRA by Jason Dillon, 1 year ago
-cli-1.0.jar urls[6] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar urls[7] = file:/Users/jason/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1
via GitHub by 4F2E4A2E
, 2 years ago
Failed to execute goal com.zenjava:javafx-maven-plugin:2.0:run (default-cli) on project g2: Execution default-cli of goal com.zenjava:javafx-maven-plugin:2.0:run failed: An API incompatibility was encountered while executing com.zenjava:javafx-maven
via GitHub by shillner
, 1 year ago
Failed to execute goal com.itemis.maven.plugins:unleash-maven-plugin:2.0.1-SNAPSHOT:perform (default-cli) on project ssh-release-test: Execution default-cli of goal com.itemis.maven.plugins:unleash-maven-plugin:2.0.1-SNAPSHOT:perform failed: An API
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.googlecode.flyway:flyway-maven-plugin:2.2:migrate (default) on project server.database: An API incompatibility was encountered during configuration of mojo com.googlecode.flyway:flyway-maven-plugin:2.2:migrate: java.lang.NoSuchMethodError: org.codehaus.plexus.component.configurator.converters.special.ClassRealmConverter.<init>(Lorg/codehaus/classworlds/ClassRealm;)V ----------------------------------------------------- realm = plugin>com.googlecode.flyway:flyway-maven-plugin:2.2 strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] = file:/C:/.m2/repository/com/googlecode/flyway/flyway-maven-plugin/2.2/flyway-maven-plugin-2.2.jar urls[1] = file:/C:/.m2/repository/com/h2database/h2/1.3.172/h2-1.3.172.jar urls[2] = file:/C:/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar urls[3] = file:/C:/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar urls[4] = file:/C:/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar urls[5] = file:/C:/.m2/repository/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar urls[6] = file:/C:/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar urls[7] = file:/C:/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.2.1/maven-reporting-api-2.2.1.jar urls[8] = file:/C:/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar urls[9] = file:/C:/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar urls[10] = file:/C:/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar urls[11] = file:/C:/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar urls[12] = file:/C:/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar urls[13] = file:/C:/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar urls[14] = file:/C:/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar urls[15] = file:/C:/.m2/repository/com/googlecode/flyway/flyway-core/2.2/flyway-core-2.2.jar urls[16] = file:/C:/Program%20Files/Jenkins/jobs/server/workspace/database/target/test-classes urls[17] = file:/C:/Program%20Files/Jenkins/jobs/server/workspace/database/target/classes/ urls[18] = file:/C:/.m2/repository/com/google/guava/guava/14.0.1/guava-14.0.1.jar Number of foreign imports: 1 import: Entry[import from realm ClassRealm[maven.api, parent: null]] -----------------------------------------------------
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.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:572)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
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)
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:318)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
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:414)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.