[
https://jira.codehaus.org/browse/MAPPASM-96?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=290726#comment-290726
]
Karl Heinz Marbaise edited comment on MAPPASM-96 at 2/3/12 12:35 PM:
---------------------------------------------------------------------
I have rechecked the problem (with Maven 2.2.1 and maven-deploy-plugin 2.7 and
appassembler-plugin 1.1.1) and found out that the root cause of the problem
based on the output of -X option seemed to be the maven-deploy-plugin...based
on the output the execution of the appassembler plugin is already
done...Created test project on github: https://github.com/khmarbaise/mappasm-96
{code}
[DEBUG] (f) repositoryName = lib
[DEBUG] (f) showConsoleWindow = true
[DEBUG] -- end configuration --
[INFO] [appassembler:assemble {execution: create-scripts}]
[DEBUG] Writing shell file for platform 'windows' to
'/home/kama/ws-git/mappasm-158/target/appassembler/bin/startClient.bat'.
[DEBUG] Writing shell file for platform 'unix' to
'/home/kama/ws-git/mappasm-158/target/appassembler/bin/startClient.sh'.
[DEBUG] Plugin dependencies for:
org.apache.maven.plugins:maven-install-plugin:2.2
are:
org.apache.maven:maven-plugin-api:jar:2.0.6:runtime
org.apache.maven:maven-project:jar:2.0.6:runtime
org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime
org.apache.maven:maven-artifact:jar:2.0.6:runtime
org.codehaus.plexus:plexus-digest:jar:1.0:runtime
org.codehaus.plexus:plexus-utils:jar:1.1:runtime
[DEBUG] org.apache.maven.plugins:maven-install-plugin:maven-plugin:2.2:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-project:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-settings:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime
(selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-profile:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime (selected
for runtime)
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime
(selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:runtime (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime
(selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime (selected
for runtime)
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:runtime
(selected for runtime)
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime
(selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-components:pom:1.1.7
for project: null:plexus-digest:jar:1.0 from the repository.
[DEBUG] org.codehaus.plexus:plexus-digest:jar:1.0:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (removed -
nearer found: 1.0-alpha-9-stable-1)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (removed - nearer
found: 1.1)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for
runtime)
[DEBUG] The following artifacts were filtered out for plugin:
org.apache.maven.plugins:maven-install-plugin:2.2 because they're already in
the core of Maven:
org.apache.maven:maven-plugin-api:jar:2.0.6:runtime
org.apache.maven:maven-project:jar:2.0.6:runtime
org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime
org.apache.maven:maven-artifact:jar:2.0.6:runtime
These will use the artifact files already in the core ClassRealm instead, to
allow them to be included in PluginDescriptor.getArtifacts().
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-install-plugin:2.2:install' -->
[DEBUG] (f) artifact = com.soebes.maven.test:mappasm-158:pom:0.1-SNAPSHOT
[DEBUG] (f) attachedArtifacts = []
[DEBUG] (f) createChecksum = false
[DEBUG] (f) localRepository =
Repository[local|file:///home/kama/.m2/repository]
[DEBUG] (f) packaging = pom
[DEBUG] (f) pomFile = /home/kama/ws-git/mappasm-158/pom.xml
[DEBUG] (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[INFO] [install:install {execution: default-install}]
[INFO] Installing /home/kama/ws-git/mappasm-158/pom.xml to
/home/kama/.m2/repository/com/soebes/maven/test/mappasm-158/0.1-SNAPSHOT/mappasm-158-0.1-SNAPSHOT.pom
[DEBUG] Plugin dependencies for:
org.apache.maven.plugins:maven-deploy-plugin:2.7
are:
org.apache.maven:maven-plugin-api:jar:2.0.6:runtime
org.apache.maven:maven-project:jar:2.0.6:runtime
org.apache.maven:maven-model:jar:2.0.6:runtime
org.apache.maven:maven-artifact:jar:2.0.6:runtime
org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime
[DEBUG] org.apache.maven.plugins:maven-deploy-plugin:maven-plugin:2.7:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-project:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-settings:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime
(selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-profile:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime (selected
for runtime)
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime
(selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:runtime (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime
(selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (removed - nearer
found: 1.5.6)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime (selected for
runtime)
[DEBUG] The following artifacts were filtered out for plugin:
org.apache.maven.plugins:maven-deploy-plugin:2.7 because they're already in the
core of Maven:
org.apache.maven:maven-plugin-api:jar:2.0.6:runtime
org.apache.maven:maven-project:jar:2.0.6:runtime
org.apache.maven:maven-model:jar:2.0.6:runtime
org.apache.maven:maven-artifact:jar:2.0.6:runtime
These will use the artifact files already in the core ClassRealm instead, to
allow them to be included in PluginDescriptor.getArtifacts().
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy': Unable to find the
mojo 'deploy' (or one of its required components) in the plugin
'org.apache.maven.plugins:maven-deploy-plugin'
Component descriptor cannot be found in the component repository:
org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutflat.
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the
plugin manager executing goal
'org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy': Unable to find the
mojo 'deploy' (or one of its required components) in the plugin
'org.apache.maven.plugins:maven-deploy-plugin'
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find the
mojo 'deploy' (or one of its required components) in the plugin
'org.apache.maven.plugins:maven-deploy-plugin'
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:674)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component
'org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-deploy-plugin:2.7:deploy',
it could not be started
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)
... 19 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException:
Error starting component
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
... 21 more
Caused by:
org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException:
Error composing component
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33)
at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
... 24 more
Caused by: org.codehaus.plexus.component.composition.CompositionException:
Composition failed of field repositoryLayouts in object of type
org.apache.maven.plugin.deploy.DeployMojo because the requirement
ComponentRequirement{role='org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout',
roleHint='null', fieldName='repositoryLayouts'} was missing
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
at
org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
at
org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
... 26 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Component descriptor cannot be found in the component repository:
org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutflat.
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:312)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
at
org.codehaus.plexus.DefaultPlexusContainer.lookupMap(DefaultPlexusContainer.java:390)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:103)
... 30 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Feb 03 19:24:58 CET 2012
[INFO] Final Memory: 12M/142M
[INFO] ------------------------------------------------------------------------
{code}
was (Author: khmarbaise):
I have rechecked the problem (with Maven 2.2.1 and maven-deploy-plugin 2.7
and appassembler-plugin 1.1.1) and found out that the root cause of the problem
based on the output of -X option seemed to be the maven-deploy-plugin...based
on the output the execution of the appassembler plugin is already
done...Created test project on github: https://github.com/khmarbaise/mappasm-158
{code}
[DEBUG] (f) repositoryName = lib
[DEBUG] (f) showConsoleWindow = true
[DEBUG] -- end configuration --
[INFO] [appassembler:assemble {execution: create-scripts}]
[DEBUG] Writing shell file for platform 'windows' to
'/home/kama/ws-git/mappasm-158/target/appassembler/bin/startClient.bat'.
[DEBUG] Writing shell file for platform 'unix' to
'/home/kama/ws-git/mappasm-158/target/appassembler/bin/startClient.sh'.
[DEBUG] Plugin dependencies for:
org.apache.maven.plugins:maven-install-plugin:2.2
are:
org.apache.maven:maven-plugin-api:jar:2.0.6:runtime
org.apache.maven:maven-project:jar:2.0.6:runtime
org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime
org.apache.maven:maven-artifact:jar:2.0.6:runtime
org.codehaus.plexus:plexus-digest:jar:1.0:runtime
org.codehaus.plexus:plexus-utils:jar:1.1:runtime
[DEBUG] org.apache.maven.plugins:maven-install-plugin:maven-plugin:2.2:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-project:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-settings:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime
(selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-profile:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime (selected
for runtime)
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime
(selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:runtime (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime
(selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime (selected
for runtime)
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:runtime
(selected for runtime)
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime
(selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-components:pom:1.1.7
for project: null:plexus-digest:jar:1.0 from the repository.
[DEBUG] org.codehaus.plexus:plexus-digest:jar:1.0:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (removed -
nearer found: 1.0-alpha-9-stable-1)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (removed - nearer
found: 1.1)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for
runtime)
[DEBUG] The following artifacts were filtered out for plugin:
org.apache.maven.plugins:maven-install-plugin:2.2 because they're already in
the core of Maven:
org.apache.maven:maven-plugin-api:jar:2.0.6:runtime
org.apache.maven:maven-project:jar:2.0.6:runtime
org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime
org.apache.maven:maven-artifact:jar:2.0.6:runtime
These will use the artifact files already in the core ClassRealm instead, to
allow them to be included in PluginDescriptor.getArtifacts().
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-install-plugin:2.2:install' -->
[DEBUG] (f) artifact = com.soebes.maven.test:mappasm-158:pom:0.1-SNAPSHOT
[DEBUG] (f) attachedArtifacts = []
[DEBUG] (f) createChecksum = false
[DEBUG] (f) localRepository =
Repository[local|file:///home/kama/.m2/repository]
[DEBUG] (f) packaging = pom
[DEBUG] (f) pomFile = /home/kama/ws-git/mappasm-158/pom.xml
[DEBUG] (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[INFO] [install:install {execution: default-install}]
[INFO] Installing /home/kama/ws-git/mappasm-158/pom.xml to
/home/kama/.m2/repository/com/soebes/maven/test/mappasm-158/0.1-SNAPSHOT/mappasm-158-0.1-SNAPSHOT.pom
[DEBUG] Plugin dependencies for:
org.apache.maven.plugins:maven-deploy-plugin:2.7
are:
org.apache.maven:maven-plugin-api:jar:2.0.6:runtime
org.apache.maven:maven-project:jar:2.0.6:runtime
org.apache.maven:maven-model:jar:2.0.6:runtime
org.apache.maven:maven-artifact:jar:2.0.6:runtime
org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime
[DEBUG] org.apache.maven.plugins:maven-deploy-plugin:maven-plugin:2.7:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-project:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-settings:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime
(selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-profile:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:runtime (selected
for runtime)
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:runtime
(selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:runtime (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime
(selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.4.1)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:runtime (selected for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:runtime (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (removed - nearer
found: 1.5.6)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime (selected for
runtime)
[DEBUG] The following artifacts were filtered out for plugin:
org.apache.maven.plugins:maven-deploy-plugin:2.7 because they're already in the
core of Maven:
org.apache.maven:maven-plugin-api:jar:2.0.6:runtime
org.apache.maven:maven-project:jar:2.0.6:runtime
org.apache.maven:maven-model:jar:2.0.6:runtime
org.apache.maven:maven-artifact:jar:2.0.6:runtime
These will use the artifact files already in the core ClassRealm instead, to
allow them to be included in PluginDescriptor.getArtifacts().
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy': Unable to find the
mojo 'deploy' (or one of its required components) in the plugin
'org.apache.maven.plugins:maven-deploy-plugin'
Component descriptor cannot be found in the component repository:
org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutflat.
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the
plugin manager executing goal
'org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy': Unable to find the
mojo 'deploy' (or one of its required components) in the plugin
'org.apache.maven.plugins:maven-deploy-plugin'
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find the
mojo 'deploy' (or one of its required components) in the plugin
'org.apache.maven.plugins:maven-deploy-plugin'
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:674)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component
'org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-deploy-plugin:2.7:deploy',
it could not be started
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)
... 19 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException:
Error starting component
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
... 21 more
Caused by:
org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException:
Error composing component
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33)
at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
... 24 more
Caused by: org.codehaus.plexus.component.composition.CompositionException:
Composition failed of field repositoryLayouts in object of type
org.apache.maven.plugin.deploy.DeployMojo because the requirement
ComponentRequirement{role='org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout',
roleHint='null', fieldName='repositoryLayouts'} was missing
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
at
org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
at
org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
... 26 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Component descriptor cannot be found in the component repository:
org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutflat.
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:312)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
at
org.codehaus.plexus.DefaultPlexusContainer.lookupMap(DefaultPlexusContainer.java:390)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:103)
... 30 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Feb 03 19:24:58 CET 2012
[INFO] Final Memory: 12M/142M
[INFO] ------------------------------------------------------------------------
{code}
> Deployment fails when used in combination with version 2.5 of the
> maven-deploy-plugin
> -------------------------------------------------------------------------------------
>
> Key: MAPPASM-96
> URL: https://jira.codehaus.org/browse/MAPPASM-96
> Project: Mojo AppAssembler Plugin
> Issue Type: Bug
> Affects Versions: 1.0, 1.2
> Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
> Java version: 1.5.0_17
> Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux" version: "2.6.33-rc6-686" arch: "i386" Family: "unix"
> Reporter: Christian Schulte
> Assignee: Karl Heinz Marbaise
> Priority: Critical
> Fix For: 1.1.1
>
>
> Adding the appassembler plugin to a pom like
> {code}
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>appassembler-maven-plugin</artifactId>
> <version>1.0</version>
> <executions>
> <execution>
> <id>testsuite</id>
> <phase>package</phase>
> <goals>
> <goal>assemble</goal>
> </goals>
> <configuration>
> <programs>
> <program>
> <mainClass>some.MainClass</mainClass>
> <name>testrunner</name>
> </program>
> </programs>
> <platforms>
> <platform>windows</platform>
> <platform>unix</platform>
> </platforms>
> <repositoryLayout>flat</repositoryLayout>
> <repositoryName>lib</repositoryName>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> makes deployment fail with an exception when using version 2.5 of the
> 'maven-deploy-plugin'.
> {code}
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Internal error in the plugin manager executing goal
> 'org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy': Unable to find the
> mojo 'deploy' (or one of its required components) in the plugin
> 'org.apache.maven.plugins:maven-deploy-plugin'
> Component descriptor cannot be found in the component repository:
> org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutflat.
> {code}
> {code}
> [...]
> Caused by: org.codehaus.plexus.component.composition.CompositionException:
> Composition failed of field repositoryLayouts in object of type
> org.apache.maven.plugin.deploy.DeployMojo because the requirement
> ComponentRequirement{role='org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout',
> roleHint='null', fieldName='repositoryLayouts'} was missing
> [...]
> Caused by:
> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
> Component descriptor cannot be found in the component repository:
> org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutflat.
> at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
> at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:312)
> at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
> at
> org.codehaus.plexus.DefaultPlexusContainer.lookupMap(DefaultPlexusContainer.java:390)
> at
> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:103)
> ... 30 more
> {code}
> To reproduce, configure the 'appassembler-maven-plugin' version 1.0 and the
> 'maven-deploy-plugin' version 2.5 in a pom and execute 'mvn deploy'. The
> 'assemble' goal succeeds - deployment fails. Without the appassembler plugin
> deployment works. This does not happen with version 2.4 of the deploy plugin.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email