tycho: Tycho 3.0.0 fails to build - java.lang.NoSuchMethodError: void org.eclipse.equinox.internal.p2.repository.helpers.ChecksumProducer
I use Tycho 3.0.0 to build our RCP app. Today it no longer works resulting in this error:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:3.0.0:assemble-repository (default-assemble-repository) on project com.archimatetool.editor.product: Execution default-assemble-repository of goal org.eclipse.tycho:tycho-p2-repository-plugin:3.0.0:assemble-repository failed: An API incompatibility was encountered while executing org.eclipse.tycho:tycho-p2-repository-plugin:3.0.0:assemble-repository: java.lang.NoSuchMethodError: ‘void org.eclipse.equinox.internal.p2.repository.helpers.ChecksumProducer.<init>(java.lang.String, java.lang.String, java.lang.String)’
Caused by: java.lang.NoSuchMethodError: 'void org.eclipse.equinox.internal.p2.repository.helpers.ChecksumProducer.<init>(java.lang.String, java.lang.String, java.lang.String)'
at org.eclipse.equinox.internal.p2.artifact.processors.checksum.ChecksumUtilities.calculateChecksums (ChecksumUtilities.java:124)
at org.eclipse.equinox.p2.internal.repository.tools.RecreateRepositoryApplication.recreateRepository (RecreateRepositoryApplication.java:128)
at org.eclipse.equinox.p2.internal.repository.tools.RecreateRepositoryApplication.run (RecreateRepositoryApplication.java:48)
at org.eclipse.tycho.p2.tools.mirroring.MirrorApplicationServiceImpl.recreateArtifactRepository (MirrorApplicationServiceImpl.java:223)
at org.eclipse.tycho.p2.tools.mirroring.MirrorApplicationServiceImpl.mirrorReactor (MirrorApplicationServiceImpl.java:183)
at org.eclipse.tycho.plugins.p2.repository.AssembleRepositoryMojo.execute (AssembleRepositoryMojo.java:217)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
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:294)
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:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
I haven’t changed anything. ~It works OK on Windows and Mac Intel.~
Here is our main pom:
https://github.com/archimatetool/archi/blob/master/pom.xml
And the one for the *.product file:
https://github.com/archimatetool/archi/blob/master/com.archimatetool.editor.product/pom.xml
Using Tycho 3.0.0
I have no idea what could be causing this. I’ve deleted the .m2 directory and still the same result.
Did something change upstream?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 27 (17 by maintainers)
Commits related to this issue
- [Build] Use 3.0.1-SNAPSHOT to fix Tycho - See https://github.com/eclipse-tycho/tycho/issues/1814 — committed to archimatetool/archi by Phillipus 2 years ago
- Update to Tycho 3.0.1 - Contains an important fix - See https://github.com/eclipse-tycho/tycho/issues/1814 — committed to Phillipus/gef-classic by Phillipus 2 years ago
- Tycho 3.0.1 Required due to https://github.com/eclipse-tycho/tycho/issues/1814 — committed to LorenzoBettini/xtext-build-utils by LorenzoBettini 2 years ago
- Update to Tycho 3.0.1 - Contains an important fix - See https://github.com/eclipse-tycho/tycho/issues/1814 — committed to eclipse/gef-classic by Phillipus 2 years ago
- Bump tycho from 3.0.0 to 3.0.1 See eclipse-tycho/tycho#1814 — committed to pmd/pmd-eclipse-plugin by adangel 2 years ago
- Updated tycho version due to https://github.com/eclipse-tycho/tycho/issues/1814 — committed to salvatore-coppola/kura by salvatore-coppola 2 years ago
- build: Updated tycho version from 3.0.0 to 3.0.1 (#4307) * Updated tycho version due to https://github.com/eclipse-tycho/tycho/issues/1814 * Removed libsocket-can-java.jar — committed to eclipse/kura by salvatore-coppola 2 years ago
- Update pom.xml https://github.com/eclipse-tycho/tycho/issues/1814 — committed to trinnguyen/bahndsl by eyip002 a year ago
Thanks all for verification, the snapshot is now released and should shortly show up in central.
Currently there is no plan for Tycho 3.1 release