[
https://jira.codehaus.org/browse/MAPPASM-96?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=290495#comment-290495
]
Lukasz Szelag commented on MAPPASM-96:
--------------------------------------
I'm able to reproduce this issue using Maven 2.2.1, appassembler-maven-plugin
1.1.1 and mavendeploy-plugin 2.7. The POM snippet below comes from a much
larger POM but I think it shouldn't matter.
Thanks,
Lukasz
{code:xml|title=pom.xml}
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>1.1.1</version>
<configuration>
<binFileExtensions>
<unix>.sh</unix>
</binFileExtensions>
<generateRepository>false</generateRepository>
<repositoryLayout>flat</repositoryLayout>
<repositoryName>lib</repositoryName>
<configurationDirectory>conf</configurationDirectory>
<includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath>
<platforms>
<platform>windows</platform>
<platform>unix</platform>
</platforms>
</configuration>
<executions>
<execution>
<id>create-scripts</id>
<phase>package</phase>
<goals>
<goal>assemble</goal>
</goals>
<configuration>
<extraJvmArguments>some args</extraJvmArguments>
<programs>
<program>
<name>startClient</name>
<mainClass>xxx.yyy.ZZZ</mainClass>
</program>
</programs>
</configuration>
</execution>
</executions>
</plugin>
{code}
{code:xml|title=mvn -X clean deploy}
[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 'dep
loy' (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-plu
gin'
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:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
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.Mojoor
g.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.apa
che.maven.plugin.deploy.DeployMojo because the requirement
ComponentRequirement{role='org.apache.maven.artifact.repository.layout.ArtifactReposito
ryLayout', 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 repo
sitory:
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}
{code:xml|title=mvn -version}
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.7.0_01
Java home: C:\programs\jse-1.7.0_01\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
{code}
{code:xml|title=mvn -Dplugin=appassembler help:describe}
Name: Appassembler :: Maven Plug-In
Description: A Mojo for generating bin scripts for Java applications.
Group Id: org.codehaus.mojo
Artifact Id: appassembler-maven-plugin
Version: 1.1.1
Goal Prefix: appassembler
{code}
{code:xml|title=mvn -Dplugin=deploy help:describe}
Name: Maven Deploy Plugin
Description: Uploads the project artifacts to the internal remote repository.
Group Id: org.apache.maven.plugins
Artifact Id: maven-deploy-plugin
Version: 2.7
Goal Prefix: deploy
{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