Tycho update to 0.14.1 breaks JaCoCo build

Dominik
2012-04-09
2013-04-24
  • Dominik

    Dominik - 2012-04-09

    Hi,

    for me the tycho update to 0.14.1 breaks the maven build with a strange error message. If I revert to 0.13.0 as dependency in the pom.xml under o.j.build, JaCoCo builds fine like before… Is this a known issue? Or actually a bug in maven itself that I should report upstream?

    The output is:

    $ mvn3 package
    [INFO] Scanning for projects...
    [WARNING] No explicit target runtime environment configuration. Build is platform dependent.
    [WARNING] No explicit target runtime environment configuration. Build is platform dependent.
    [WARNING] No explicit target runtime environment configuration. Build is platform dependent.
    [WARNING] No explicit target runtime environment configuration. Build is platform dependent.
    [WARNING] No explicit target runtime environment configuration. Build is platform dependent.
    [ERROR] Internal error: java.lang.RuntimeException: org.apache.maven.MavenExecutionException: Could not setup plugin ClassRealm: Plugin org.jacoco:jacoco-maven-plugin:0.5.7-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact org.jacoco:jacoco-maven-plugin:jar:0.5.7-SNAPSHOT -> [Help 1]
    org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.apache.maven.MavenExecutionException: Could not setup plugin ClassRealm
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
            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:616)
            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.RuntimeException: org.apache.maven.MavenExecutionException: Could not setup plugin ClassRealm
            at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.getDependencyMetadata(P2TargetPlatformResolver.java:178)
            at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.setupProjects(P2TargetPlatformResolver.java:140)
            at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.setupProject(DefaultTychoDependencyResolver.java:76)
            at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:56)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
            ... 11 more
    Caused by: org.apache.maven.MavenExecutionException: Could not setup plugin ClassRealm
            at org.eclipse.tycho.core.maven.utils.PluginRealmHelper.newMavenExecutionException(PluginRealmHelper.java:134)
            at org.eclipse.tycho.core.maven.utils.PluginRealmHelper.execute(PluginRealmHelper.java:123)
            at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.getDependencyMetadata(P2TargetPlatformResolver.java:158)
            ... 16 more
    Caused by: org.apache.maven.plugin.PluginResolutionException: Plugin org.jacoco:jacoco-maven-plugin:0.5.7-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact org.jacoco:jacoco-maven-plugin:jar:0.5.7-SNAPSHOT
            at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:140)
            at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:142)
            at org.eclipse.tycho.core.maven.utils.PluginRealmHelper.execute(PluginRealmHelper.java:86)
            ... 17 more
    Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.jacoco:jacoco-maven-plugin:jar:0.5.7-SNAPSHOT
            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)
            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)
            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197)
            at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:323)
            at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:136)
            ... 19 more
    Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.jacoco:jacoco-maven-plugin:jar:0.5.7-SNAPSHOT
            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:531)
            ... 23 more
    [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/InternalErrorException
    
     
  • Marc R. Hoffmann

    Interesting, works on my side. I'll ask Evgeny about this.

    -marc

     
  • Evgeny Mandrikov

    Hi,

    Thanks for reporting this issue. I was able to reproduce it by cleaning local repository. I'll investigate why 0.14.1 doesn't work, and in the meantime we reverted to 0.13.0 in trunk.

     
  • Evgeny Mandrikov

    Hi,

    Not sure that this related, however anyway thank you for information.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks