[ https://issues.apache.org/jira/browse/MNG-4338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240236#comment-17240236 ]
Hudson commented on MNG-4338: ----------------------------- Build unstable in Jenkins: Maven » Maven TLP » maven » MNG-6957 #11 See https://ci-builds.apache.org/job/Maven/job/maven-box/job/maven/job/MNG-6957/11/ > Unexepceted "Unknown packaging: bundle" error for plugins with custom > lifecycle mapping that defines optional mojos > ------------------------------------------------------------------------------------------------------------------- > > Key: MNG-4338 > URL: https://issues.apache.org/jira/browse/MNG-4338 > Project: Maven > Issue Type: Bug > Components: Plugins and Lifecycle > Affects Versions: 3.0 > Reporter: Igor Fedorenko > Assignee: Benjamin Bentmann > Priority: Major > Fix For: 3.0-alpha-3 > > > This was originally reported against m2e as > https://issues.sonatype.org/browse/MNGECLIPSE-1636. Attached sample project > builds using maven 2.2.1 but fails with using 3.0 snapshot (svn rev 811372) > {noformat} > igor@desktop:/tmp/bundle-test$ > /workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/bin/mvn > -X clean package > Apache Maven 3.0-SNAPSHOT (r811383; 2009-09-04 12:18:34-0400) > Java version: 1.6.0_13 > Java home: /opt/jdk1.6.0_13/jre > Default locale: en_CA, platform encoding: UTF-8 > OS name: "linux" version: "2.6.28-15-generic" arch: "amd64" Family: "unix" > [INFO] Error stacktraces are turned on. > [INFO] Scanning for projects... > [DEBUG] Created new class realm project>org.example:bundle-test:1.0.0-SNAPSHOT > [DEBUG] Included: org.ops4j:maven-pax-plugin:maven-plugin:1.4 > [DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.7 > [DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.7 > [DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.7 > [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.4.7 > [DEBUG] Excluded: > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1 > [DEBUG] Included: junit:junit:jar:3.8.1 > [DEBUG] Excluded: classworlds:classworlds:jar:1.1-alpha-2 > [DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.7 > [DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.7 > [DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.7 > [DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.7 > [DEBUG] Excluded: org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2 > [DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.7 > [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.7 > [DEBUG] Included: > org.apache.maven.archetype:maven-archetype-core:jar:1.0-alpha-7 > [DEBUG] Included: org.codehaus.plexus:plexus-velocity:jar:1.1.2 > [DEBUG] Included: plexus:plexus-utils:jar:1.0.2 > [DEBUG] Included: commons-collections:commons-collections:jar:2.0 > [DEBUG] Included: commons-logging:commons-logging-api:jar:1.0.4 > [DEBUG] Included: velocity:velocity:jar:1.4 > [DEBUG] Included: velocity:velocity-dep:jar:1.4 > [DEBUG] Included: dom4j:dom4j:jar:1.6.1 > [DEBUG] Included: xml-apis:xml-apis:jar:1.0.b2 > [DEBUG] Included: org.apache.maven.shared:maven-downloader:jar:1.0 > [DEBUG] Included: > org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.2 > [DEBUG] Included: org.codehaus.plexus:plexus-compiler-api:jar:1.5.3 > [DEBUG] Included: org.codehaus.plexus:plexus-compiler-manager:jar:1.5.3 > [DEBUG] Included: org.codehaus.plexus:plexus-compiler-javac:jar:1.5.3 > [DEBUG] Included: > org.apache.maven.plugins:maven-eclipse-plugin:maven-plugin:2.5.1 > [DEBUG] Included: org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7 > [DEBUG] Included: > org.codehaus.plexus:plexus-interactivity-jline:jar:1.0-alpha-5 > [DEBUG] Included: jline:jline:jar:0.9.1 > [DEBUG] Included: > org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-5 > [DEBUG] Included: org.apache.maven:maven-archiver:jar:2.2 > [DEBUG] Included: org.codehaus.plexus:plexus-resources:jar:1.0-alpha-4 > [DEBUG] Included: biz.aQute:bndlib:jar:0.0.255 > [DEBUG] Included: org.apache.maven.shared:maven-osgi:jar:0.2.0 > [DEBUG] Included: org.eclipse.core:resources:jar:3.3.0-v20070604 > [DEBUG] Included: org.apache.maven.shared:file-management:jar:1.2 > [DEBUG] Included: org.apache.maven.shared:maven-shared-io:jar:1.1 > [DEBUG] Failed to lookup a member of active collection with role: > org.apache.maven.lifecycle.mapping.LifecycleMapping and role-hint: bundle > ----------------------------------------------------- > this realm = project>org.example:bundle-test:1.0.0-SNAPSHOT > this strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy > urls[0] = > file:/home/igor/.m2/repository/org/ops4j/maven-pax-plugin/1.4/maven-pax-plugin-1.4.jar > urls[1] = > file:/home/igor/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.7/plexus-utils-1.4.7.jar > urls[2] = file:/home/igor/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar > urls[3] = > file:/home/igor/.m2/repository/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-7/maven-archetype-core-1.0-alpha-7.jar > urls[4] = > file:/home/igor/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar > urls[5] = > file:/home/igor/.m2/repository/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar > urls[6] = > file:/home/igor/.m2/repository/commons-collections/commons-collections/2.0/commons-collections-2.0.jar > urls[7] = > file:/home/igor/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar > urls[8] = > file:/home/igor/.m2/repository/velocity/velocity/1.4/velocity-1.4.jar > urls[9] = > file:/home/igor/.m2/repository/velocity/velocity-dep/1.4/velocity-dep-1.4.jar > urls[10] = file:/home/igor/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar > urls[11] = > file:/home/igor/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar > urls[12] = > file:/home/igor/.m2/repository/org/apache/maven/shared/maven-downloader/1.0/maven-downloader-1.0.jar > urls[13] = > file:/home/igor/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar > urls[14] = > file:/home/igor/.m2/repository/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.jar > urls[15] = > file:/home/igor/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/1.5.3/plexus-compiler-manager-1.5.3.jar > urls[16] = > file:/home/igor/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.jar > urls[17] = > file:/home/igor/.m2/repository/org/apache/maven/plugins/maven-eclipse-plugin/2.5.1/maven-eclipse-plugin-2.5.1.jar > urls[18] = > file:/home/igor/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar > urls[19] = > file:/home/igor/.m2/repository/org/codehaus/plexus/plexus-interactivity-jline/1.0-alpha-5/plexus-interactivity-jline-1.0-alpha-5.jar > urls[20] = file:/home/igor/.m2/repository/jline/jline/0.9.1/jline-0.9.1.jar > urls[21] = > file:/home/igor/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-5/plexus-interactivity-api-1.0-alpha-5.jar > urls[22] = > file:/home/igor/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar > urls[23] = > file:/home/igor/.m2/repository/org/codehaus/plexus/plexus-resources/1.0-alpha-4/plexus-resources-1.0-alpha-4.jar > urls[24] = > file:/home/igor/.m2/repository/biz/aQute/bndlib/0.0.255/bndlib-0.0.255.jar > urls[25] = > file:/home/igor/.m2/repository/org/apache/maven/shared/maven-osgi/0.2.0/maven-osgi-0.2.0.jar > urls[26] = > file:/home/igor/.m2/repository/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.jar > urls[27] = > file:/home/igor/.m2/repository/org/apache/maven/shared/file-management/1.2/file-management-1.2.jar > urls[28] = > file:/home/igor/.m2/repository/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.jar > Number of foreign imports: 4 > import: Entry[import org.codehaus.plexus.util.xml.pull.XmlSerializer from > realm ClassRealm[plexus.core, parent: null]] > import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParserException > from realm ClassRealm[plexus.core, parent: null]] > import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParser from > realm ClassRealm[plexus.core, parent: null]] > import: Entry[import org.codehaus.plexus.util.xml.Xpp3Dom from realm > ClassRealm[plexus.core, parent: null]] > Number of parent imports: 19 > import: Entry[import org.codehaus.plexus.personality from realm null] > import: Entry[import org.codehaus.plexus.logging from realm null] > import: Entry[import org.codehaus.plexus.lifecycle from realm null] > import: Entry[import org.codehaus.plexus.context from realm null] > import: Entry[import org.codehaus.plexus.container from realm null] > import: Entry[import org.codehaus.plexus.configuration from realm null] > import: Entry[import org.codehaus.plexus.component from realm null] > import: Entry[import org.codehaus.plexus.classworlds from realm null] > import: Entry[import org.codehaus.plexus.PlexusContainerException from realm > null] > import: Entry[import org.codehaus.plexus.PlexusContainer from realm null] > import: Entry[import org.codehaus.plexus.PlexusConstants from realm null] > import: Entry[import org.codehaus.plexus.MutablePlexusContainer from realm > null] > import: Entry[import org.codehaus.plexus.DuplicateChildContainerException > from realm null] > import: Entry[import org.codehaus.plexus.DefaultPlexusContainer from realm > null] > import: Entry[import org.codehaus.plexus.DefaultContainerConfiguration from > realm null] > import: Entry[import org.codehaus.plexus.DefaultComponentRegistry from realm > null] > import: Entry[import org.codehaus.plexus.ContainerConfiguration from realm > null] > import: Entry[import org.codehaus.plexus.ComponentRegistry from realm null] > import: Entry[import org.apache.maven from realm null] > this realm = plexus.core > this strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy > urls[0] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/wagon-provider-api-1.0-beta-6.jar > urls[1] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/nekohtml-1.9.6.2.jar > urls[2] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/wagon-file-1.0-beta-6.jar > urls[3] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/maven-plugin-api-3.0-SNAPSHOT.jar > urls[4] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/plexus-interpolation-1.11.jar > urls[5] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/xbean-reflect-3.4.jar > urls[6] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/wagon-http-lightweight-1.0-beta-6.jar > urls[7] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/maven-model-builder-3.0-SNAPSHOT.jar > urls[8] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/commons-cli-1.2.jar > urls[9] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/plexus-cipher-1.4.jar > urls[10] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/google-collect-snapshot-20080530.jar > urls[11] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/plexus-sec-dispatcher-1.3.jar > urls[12] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/maven-model-3.0-SNAPSHOT.jar > urls[13] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/plexus-container-default-1.2.1-20090904.072840-12.jar > urls[14] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/xercesMinimal-1.9.6.2.jar > urls[15] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/plexus-component-annotations-1.2.1-20090904.072840-12.jar > urls[16] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/maven-compat-3.0-SNAPSHOT.jar > urls[17] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/maven-embedder-3.0-SNAPSHOT.jar > urls[18] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/plexus-utils-1.5.15.jar > urls[19] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/maven-core-3.0-SNAPSHOT.jar > urls[20] = > file:/workspaces/tycho-dev/maven/apache-maven/target/apache-maven-3.0-SNAPSHOT/lib/wagon-http-shared-1.0-beta-6.jar > Number of foreign imports: 0 > ----------------------------------------------------- > org.codehaus.plexus.component.repository.exception.ComponentLookupException: > Unable to lookup component > 'org.apache.maven.lifecycle.mapping.LifecycleMapping', it could not be > started. > role: org.apache.maven.lifecycle.mapping.LifecycleMapping > roleHint: bundle > classRealm: project>org.example:bundle-test:1.0.0-SNAPSHOT > at > org.codehaus.plexus.DefaultComponentRegistry.getComponent(DefaultComponentRegistry.java:366) > at > org.codehaus.plexus.DefaultComponentRegistry.lookup(DefaultComponentRegistry.java:178) > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:394) > at > org.codehaus.plexus.component.collections.AbstractComponentCollection.lookup(AbstractComponentCollection.java:140) > at > org.codehaus.plexus.component.collections.ComponentMap.get(ComponentMap.java:74) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getPluginsBoundByDefaultToAllLifecycles(DefaultLifecycleExecutor.java:1537) > at > org.apache.maven.model.plugin.DefaultLifecycleBindingsInjector.injectLifecycleBindings(DefaultLifecycleBindingsInjector.java:61) > at > org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:245) > at > org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:224) > at > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:316) > at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:320) > at > org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:263) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:128) > at > org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:460) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:334) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:70) > 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.codehaus.plexus.component.repository.exception.ComponentLifecycleException: > Error constructing component role: > 'org.apache.maven.lifecycle.mapping.LifecycleMapping', implementation: > 'org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping', role hint: > 'bundle' > at > org.codehaus.plexus.component.builder.XBeanComponentBuilder.createComponentInstance(XBeanComponentBuilder.java:176) > at > org.codehaus.plexus.component.builder.XBeanComponentBuilder.build(XBeanComponentBuilder.java:123) > at > org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:181) > at > org.codehaus.plexus.component.manager.SingletonComponentManager.getComponent(SingletonComponentManager.java:67) > at > org.codehaus.plexus.DefaultComponentRegistry.getComponent(DefaultComponentRegistry.java:351) > ... 23 more > Caused by: org.apache.xbean.recipe.ConstructionException: Unable to convert > property value from > org.codehaus.plexus.component.builder.XBeanComponentBuilder$PlexusConfigurationRecipe > to java.util.List<org.apache.maven.lifecycle.mapping.Lifecycle> for > injection private java.util.List > org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping.lifecycles > at > org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:472) > at > org.apache.xbean.recipe.ObjectRecipe.setProperties(ObjectRecipe.java:367) > at > org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:282) > at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96) > at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61) > at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49) > at > org.codehaus.plexus.component.builder.XBeanComponentBuilder.createComponentInstance(XBeanComponentBuilder.java:159) > ... 27 more > Caused by: org.apache.xbean.recipe.ConstructionException: Unable to convert > configuration for property lifecycles to java.util.List > at > org.codehaus.plexus.component.builder.XBeanComponentBuilder$PlexusConfigurationRecipe.internalCreate(XBeanComponentBuilder.java:445) > at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96) > at org.apache.xbean.recipe.RecipeHelper.convert(RecipeHelper.java:167) > at > org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:466) > ... 33 more > [ERROR] Some problems were encountered while processing the POMs: > [ERROR] Unknown packaging: bundle @ org.example:bundle-test:1.0.0-SNAPSHOT > (/tmp/bundle-test/pom.xml) > org.apache.maven.project.ProjectBuildingException: Some problems were > encountered while processing the POMs: > [ERROR] Unknown packaging: bundle @ org.example:bundle-test:1.0.0-SNAPSHOT > (/tmp/bundle-test/pom.xml) > at > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:339) > at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:320) > at > org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:263) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:128) > at > org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:460) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:334) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:70) > 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) > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)