Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m2e lifecycle not compatible with eclipse + lombok #4

Open
velo opened this issue Feb 8, 2017 · 0 comments
Open

m2e lifecycle not compatible with eclipse + lombok #4

velo opened this issue Feb 8, 2017 · 0 comments

Comments

@velo
Copy link

velo commented Feb 8, 2017

Probably related to takari/takari-lifecycle#2

Description	Resource	Path	Location	Type
Execution default-mojo-annotation-processor of goal io.takari.maven.plugins:takari-lifecycle-plugin:1.12.3:mojo-annotation-processor failed: An API incompatibility was encountered while executing io.takari.maven.plugins:takari-lifecycle-plugin:1.12.3:mojo-annotation-processor: java.lang.LinkageError: loader constraint violation: when resolving method "lombok.launch.PatchFixesHider$Transform.transform_swapped(Lorg/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration;Lorg/eclipse/jdt/internal/compiler/parser/Parser;)V" the class loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm) of the current class, org/eclipse/jdt/internal/compiler/parser/Parser, and the class loader (instance of <bootloader>) for the method's defining class, lombok/launch/PatchFixesHider$Transform, have different Class objects for the type org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration used in the signature
-----------------------------------------------------
realm =    extension>io.takari.maven.plugins:takari-lifecycle-plugin:1.12.3
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/froederm/.m2/repository/io/takari/maven/plugins/takari-lifecycle-plugin/1.12.3/takari-lifecycle-plugin-1.12.3.jar
urls[1] = file:/C:/Users/froederm/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar
urls[2] = file:/C:/Users/froederm/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.jar
urls[3] = file:/C:/Users/froederm/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
urls[4] = file:/C:/Users/froederm/.m2/repository/io/takari/incrementalbuild/0.20.4/incrementalbuild-0.20.4.jar
urls[5] = file:/C:/Users/froederm/.m2/repository/org/eclipse/tycho/org.eclipse.jdt.core/3.12.2.v20161117-1814/org.eclipse.jdt.core-3.12.2.v20161117-1814.jar
urls[6] = file:/C:/Users/froederm/.m2/repository/org/eclipse/tycho/org.eclipse.jdt.compiler.apt/1.2.100.v20160418-1457/org.eclipse.jdt.compiler.apt-1.2.100.v20160418-1457.jar
urls[7] = file:/C:/Users/froederm/.m2/repository/org/eclipse/tycho/org.eclipse.osgi/3.11.2.v20161107-1947/org.eclipse.osgi-3.11.2.v20161107-1947.jar
urls[8] = file:/C:/Users/froederm/.m2/repository/com/github/spullara/mustache/java/compiler/0.8.17/compiler-0.8.17.jar
urls[9] = file:/C:/Users/froederm/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar
urls[10] = file:/C:/Users/froederm/.m2/repository/io/takari/takari-archiver/0.1.11/takari-archiver-0.1.11.jar
urls[11] = file:/C:/Users/froederm/.m2/repository/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar
urls[12] = file:/C:/Users/froederm/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar
urls[13] = file:/C:/Users/froederm/.m2/repository/org/apache/commons/commons-exec/1.2/commons-exec-1.2.jar
urls[14] = file:/C:/Users/froederm/.m2/repository/io/takari/m2e/workspace/org.eclipse.m2e.workspace.cli/0.4.0/org.eclipse.m2e.workspace.cli-0.4.0.jar
urls[15] = file:/C:/Users/froederm/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
urls[16] = file:/C:/Users/froederm/.m2/repository/xmlunit/xmlunit/1.5/xmlunit-1.5.jar
Number of foreign imports: 2
import: Entry[import io.takari.incrementalbuild.workspace from realm org.eclipse.osgi.internal.loader.EquinoxClassLoader@61906bb1[io.takari.incrementalbuild.workspace:0.7.0(id=708)]]
import: Entry[import  from realm ClassRealm[maven.api, parent: null]]

-----------------------------------------------------
 (io.takari.maven.plugins:takari-lifecycle-plugin:1.12.3:mojo-annotation-processor:default-mojo-annotation-processor:compile)

org.apache.maven.plugin.PluginExecutionException: Execution default-mojo-annotation-processor of goal io.takari.maven.plugins:takari-lifecycle-plugin:1.12.3:mojo-annotation-processor failed: An API incompatibility was encountered while executing io.takari.maven.plugins:takari-lifecycle-plugin:1.12.3:mojo-annotation-processor: java.lang.LinkageError: loader constraint violation: when resolving method "lombok.launch.PatchFixesHider$Transform.transform_swapped(Lorg/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration;Lorg/eclipse/jdt/internal/compiler/parser/Parser;)V" the class loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm) of the current class, org/eclipse/jdt/internal/compiler/parser/Parser, and the class loader (instance of <bootloader>) for the method's defining class, lombok/launch/PatchFixesHider$Transform, have different Class objects for the type org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration used in the signature
-----------------------------------------------------
realm =    extension>io.takari.maven.plugins:takari-lifecycle-plugin:1.12.3
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/froederm/.m2/repository/io/takari/maven/plugins/takari-lifecycle-plugin/1.12.3/takari-lifecycle-plugin-1.12.3.jar
urls[1] = file:/C:/Users/froederm/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar
urls[2] = file:/C:/Users/froederm/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.jar
urls[3] = file:/C:/Users/froederm/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
urls[4] = file:/C:/Users/froederm/.m2/repository/io/takari/incrementalbuild/0.20.4/incrementalbuild-0.20.4.jar
urls[5] = file:/C:/Users/froederm/.m2/repository/org/eclipse/tycho/org.eclipse.jdt.core/3.12.2.v20161117-1814/org.eclipse.jdt.core-3.12.2.v20161117-1814.jar
urls[6] = file:/C:/Users/froederm/.m2/repository/org/eclipse/tycho/org.eclipse.jdt.compiler.apt/1.2.100.v20160418-1457/org.eclipse.jdt.compiler.apt-1.2.100.v20160418-1457.jar
urls[7] = file:/C:/Users/froederm/.m2/repository/org/eclipse/tycho/org.eclipse.osgi/3.11.2.v20161107-1947/org.eclipse.osgi-3.11.2.v20161107-1947.jar
urls[8] = file:/C:/Users/froederm/.m2/repository/com/github/spullara/mustache/java/compiler/0.8.17/compiler-0.8.17.jar
urls[9] = file:/C:/Users/froederm/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar
urls[10] = file:/C:/Users/froederm/.m2/repository/io/takari/takari-archiver/0.1.11/takari-archiver-0.1.11.jar
urls[11] = file:/C:/Users/froederm/.m2/repository/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar
urls[12] = file:/C:/Users/froederm/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar
urls[13] = file:/C:/Users/froederm/.m2/repository/org/apache/commons/commons-exec/1.2/commons-exec-1.2.jar
urls[14] = file:/C:/Users/froederm/.m2/repository/io/takari/m2e/workspace/org.eclipse.m2e.workspace.cli/0.4.0/org.eclipse.m2e.workspace.cli-0.4.0.jar
urls[15] = file:/C:/Users/froederm/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
urls[16] = file:/C:/Users/froederm/.m2/repository/xmlunit/xmlunit/1.5/xmlunit-1.5.jar
Number of foreign imports: 2
import: Entry[import io.takari.incrementalbuild.workspace from realm org.eclipse.osgi.internal.loader.EquinoxClassLoader@61906bb1[io.takari.incrementalbuild.workspace:0.7.0(id=708)]]
import: Entry[import  from realm ClassRealm[maven.api, parent: null]]

-----------------------------------------------------

	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:183)
	at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331)
	at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1362)
	at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
	at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1360)
	at org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:52)
	at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:137)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:115)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:105)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
	at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:86)
	at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:142)
	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:232)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: org.apache.maven.plugin.PluginContainerException: An API incompatibility was encountered while executing io.takari.maven.plugins:takari-lifecycle-plugin:1.12.3:mojo-annotation-processor: java.lang.LinkageError: loader constraint violation: when resolving method "lombok.launch.PatchFixesHider$Transform.transform_swapped(Lorg/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration;Lorg/eclipse/jdt/internal/compiler/parser/Parser;)V" the class loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm) of the current class, org/eclipse/jdt/internal/compiler/parser/Parser, and the class loader (instance of <bootloader>) for the method's defining class, lombok/launch/PatchFixesHider$Transform, have different Class objects for the type org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration used in the signature
-----------------------------------------------------
realm =    extension>io.takari.maven.plugins:takari-lifecycle-plugin:1.12.3
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/froederm/.m2/repository/io/takari/maven/plugins/takari-lifecycle-plugin/1.12.3/takari-lifecycle-plugin-1.12.3.jar
urls[1] = file:/C:/Users/froederm/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar
urls[2] = file:/C:/Users/froederm/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.jar
urls[3] = file:/C:/Users/froederm/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
urls[4] = file:/C:/Users/froederm/.m2/repository/io/takari/incrementalbuild/0.20.4/incrementalbuild-0.20.4.jar
urls[5] = file:/C:/Users/froederm/.m2/repository/org/eclipse/tycho/org.eclipse.jdt.core/3.12.2.v20161117-1814/org.eclipse.jdt.core-3.12.2.v20161117-1814.jar
urls[6] = file:/C:/Users/froederm/.m2/repository/org/eclipse/tycho/org.eclipse.jdt.compiler.apt/1.2.100.v20160418-1457/org.eclipse.jdt.compiler.apt-1.2.100.v20160418-1457.jar
urls[7] = file:/C:/Users/froederm/.m2/repository/org/eclipse/tycho/org.eclipse.osgi/3.11.2.v20161107-1947/org.eclipse.osgi-3.11.2.v20161107-1947.jar
urls[8] = file:/C:/Users/froederm/.m2/repository/com/github/spullara/mustache/java/compiler/0.8.17/compiler-0.8.17.jar
urls[9] = file:/C:/Users/froederm/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar
urls[10] = file:/C:/Users/froederm/.m2/repository/io/takari/takari-archiver/0.1.11/takari-archiver-0.1.11.jar
urls[11] = file:/C:/Users/froederm/.m2/repository/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar
urls[12] = file:/C:/Users/froederm/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar
urls[13] = file:/C:/Users/froederm/.m2/repository/org/apache/commons/commons-exec/1.2/commons-exec-1.2.jar
urls[14] = file:/C:/Users/froederm/.m2/repository/io/takari/m2e/workspace/org.eclipse.m2e.workspace.cli/0.4.0/org.eclipse.m2e.workspace.cli-0.4.0.jar
urls[15] = file:/C:/Users/froederm/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
urls[16] = file:/C:/Users/froederm/.m2/repository/xmlunit/xmlunit/1.5/xmlunit-1.5.jar
Number of foreign imports: 2
import: Entry[import io.takari.incrementalbuild.workspace from realm org.eclipse.osgi.internal.loader.EquinoxClassLoader@61906bb1[io.takari.incrementalbuild.workspace:0.7.0(id=708)]]
import: Entry[import  from realm ClassRealm[maven.api, parent: null]]

-----------------------------------------------------

	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:181)
	... 31 more
Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "lombok.launch.PatchFixesHider$Transform.transform_swapped(Lorg/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration;Lorg/eclipse/jdt/internal/compiler/parser/Parser;)V" the class loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm) of the current class, org/eclipse/jdt/internal/compiler/parser/Parser, and the class loader (instance of <bootloader>) for the method's defining class, lombok/launch/PatchFixesHider$Transform, have different Class objects for the type org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration used in the signature
	at org.eclipse.jdt.internal.compiler.parser.Parser.endParse(Parser.java:9988)
	at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:11165)
	at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:11389)
	at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:11346)
	at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse(Parser.java:9760)
	at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:815)
	at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:385)
	at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:435)
	at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:417)
	at io.takari.maven.plugins.compile.jdt.CompilerJdt$FullCompilationStrategy.compile(CompilerJdt.java:434)
	at io.takari.maven.plugins.compile.jdt.CompilerJdt.compile(CompilerJdt.java:554)
	at io.takari.maven.plugins.compile.AbstractCompileMojo.execute(AbstractCompileMojo.java:412)
	at io.takari.maven.plugins.plugin.MojoAnnotationProcessorMojo.execute(MojoAnnotationProcessorMojo.java:25)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	... 31 more
	pom.xml	/mfp_formatter-maven-plugin	line 22	Maven Build Problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant