Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] BundlesAction produced more than one IU

Looks like a bug or, more likely, two bugs.

First, looks like org.eclipse.update.configurator should have only one
installable unit (IU). Tycho appears to generate wrong p2 metadata for
this bundle.

First, regardless of org.eclipse.update.configurator, Tycho should not
force one-IU-per-bundle. additional IUs can be defined with p2.inf [1].

I suggest you open a bugreport in Tycho bugzilla and provide complete
standalone project and steps to reproduce the problem.


[1] http://wiki.eclipse.org/Equinox/p2/Customizing_Metadata

--
Regards,
Igor

On 11-06-21 12:03 PM, Simon Goodall wrote:
Here it is;


[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-surefire-plugin:0.13.0-SNAPSHOT:test
(default-test) on project my.rcp.plugin.tests: Execution default-test of
goal org.eclipse.tycho:tycho-surefire-plugin:0.13.0-SNAPSHOT:test
failed: BundlesAction produced more than one IU for
/home/user/.m2/repository/p2/osgi/bundle/org.eclipse.update.configurator/3.3.100.v20100512/org.eclipse.update.configurator-3.3.100.v20100512.jar
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal
org.eclipse.tycho:tycho-surefire-plugin:0.13.0-SNAPSHOT:test
(default-test) on project my.rcp.plugin.tests: Execution default-test of
goal org.eclipse.tycho:tycho-surefire-plugin:0.13.0-SNAPSHOT:test
failed: BundlesAction produced more than one IU for
/home/user/.m2/repository/p2/osgi/bundle/org.eclipse.update.configurator/3.3.100.v20100512/org.eclipse.update.configurator-3.3.100.v20100512.jar
     at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
     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:319)
     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:39)
     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     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: org.apache.maven.plugin.PluginExecutionException: Execution
default-test of goal
org.eclipse.tycho:tycho-surefire-plugin:0.13.0-SNAPSHOT:test failed:
BundlesAction produced more than one IU for
/home/user/.m2/repository/p2/osgi/bundle/org.eclipse.update.configurator/3.3.100.v20100512/org.eclipse.update.configurator-3.3.100.v20100512.jar
     at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
     at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
     ... 19 more
Caused by: org.eclipse.core.runtime.AssertionFailedException:
BundlesAction produced more than one IU for
/home/user/.m2/repository/p2/osgi/bundle/org.eclipse.update.configurator/3.3.100.v20100512/org.eclipse.update.configurator-3.3.100.v20100512.jar
     at
org.eclipse.tycho.p2.impl.resolver.ResolutionContextBundlePublisher$PublisherRun.getPublishedUnitIfExists(ResolutionContextBundlePublisher.java:176)
     at
org.eclipse.tycho.p2.impl.resolver.ResolutionContextBundlePublisher.attemptToPublishBundle(ResolutionContextBundlePublisher.java:106)
     at
org.eclipse.tycho.p2.impl.resolver.ResolutionContextImpl.publishAndAddArtifactIfBundleArtifact(ResolutionContextImpl.java:208)
     at
org.eclipse.tycho.p2.resolver.PomDependencyProcessor.addPomDependenciesToResolutionContext(PomDependencyProcessor.java:89)
     at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:238)
     at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:156)
     at
org.eclipse.tycho.surefire.TestMojo.createEclipseInstallation(TestMojo.java:383)
     at org.eclipse.tycho.surefire.TestMojo.execute(TestMojo.java:353)
     at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
     ... 20 more

On 21 June 2011 08:31, Igor Fedorenko <igor@xxxxxxxxxxxxxx
<mailto:igor@xxxxxxxxxxxxxx>> wrote:

    Can you post complete stack trace?

    --
    Regards,
    Igor


    On 11-06-20 1:16 PM, Simon Goodall wrote:

        Hi,

        I switched using Tycho 0.13.0-SNAPSHOT from 0.12.0 and I now get the
        following exception when trying to run my test plugin (which
        includes
        swtbot tests) - everything else builds with "SUCCESS".  Checking
        my .m2
        directory there is only one org.eclipse.update.
        configurator-3.3.100.v20100512.jar (although a .source version
        is also
        present). There is also only that version. I did have both
        helios and
        eclipse-update sites defined, but since removed eclipse-updates
        but I
        still get the same error.

        Any ideas?

        [ERROR] Failed to execute goal org.eclipse.tycho:tycho-
        surefire-plugin:0.13.0-SNAPSHOT:test (default-test) on project
        my.rcp.plugin.tests: Execution default-test of goal
        org.eclipse.tycho:tycho-surefire-plugin:0.13.0-SNAPSHOT:test failed:
        BundlesAction produced more than one IU for
        /home/user/.m2/repository/p2/osgi/bundle/org.eclipse.update.configurator/3.3.100.v20100512/org.eclipse.update.configurator-3.3.100.v20100512.jar
        -> [Help 1]
        org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
        execute goal
        org.eclipse.tycho:tycho-surefire-plugin:0.13.0-SNAPSHOT:test
        (default-test) on project my.rcp.plugin.tests: Execution
        default-test of
        goal org.eclipse.tycho:tycho-surefire-plugin:0.13.0-SNAPSHOT:test
        failed: BundlesAction produced more than one IU for
        /home/user/.m2/repository/p2/osgi/bundle/org.eclipse.update.configurator/3.3.100.v20100512/org.eclipse.update.configurator-3.3.100.v20100512.jar
                at
        org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
                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(
        ......


        --
        Simon Goodall



        _______________________________________________
        tycho-user mailing list
        tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
        https://dev.eclipse.org/mailman/listinfo/tycho-user

    _______________________________________________
    tycho-user mailing list
    tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
    https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Simon



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top