[ 
https://jira.codehaus.org/browse/MAPPASM-96?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291732#comment-291732
 ] 

Michael Osipov commented on MAPPASM-96:
---------------------------------------

I just ran into the same issue:

deploy 2.7, appasm 1.1.1 AND 1.2

{noformat}
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] 
------------------------------------------------------------------------
[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'
[INFO] Component descriptor cannot be found in the component repository: 
org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutflat.
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO] Trace
[INFO] 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'
[INFO]  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698)
[INFO]  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
[INFO]  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
[INFO]  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
[INFO]  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
[INFO]  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
[INFO]  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
[INFO]  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
[INFO]  at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
[INFO]  at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
[INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO]  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO]  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO]  at java.lang.reflect.Method.invoke(Method.java:597)
[INFO]  at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
[INFO]  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
[INFO]  at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
[INFO]  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 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'
[INFO]  at 
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:674)
[INFO]  at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
[INFO]  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
[INFO]  ... 17 more
[INFO] 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
[INFO]  at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339)
[INFO]  at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
[INFO]  at 
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)
[INFO]  ... 19 more
[INFO] Caused by: 
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException: 
Error starting component
[INFO]  at 
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109)
[INFO]  at 
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
[INFO]  at 
org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
[INFO]  at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
[INFO]  ... 21 more
[INFO] Caused by: 
org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException: 
Error composing component
[INFO]  at 
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33)
[INFO]  at 
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
[INFO]  at 
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
[INFO]  ... 24 more
[INFO] 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
[INFO]  at 
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154)
[INFO]  at 
org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
[INFO]  at 
org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
[INFO]  at 
org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
[INFO]  at 
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
[INFO]  ... 26 more
[INFO] 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.
[INFO]  at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
[INFO]  at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:312)
[INFO]  at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
[INFO]  at 
org.codehaus.plexus.DefaultPlexusContainer.lookupMap(DefaultPlexusContainer.java:390)
[INFO]  at 
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:103)
[INFO]  ... 30 more
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] [INFO] Total time: 18 seconds
[INFO] [INFO] Finished at: 2012-02-15 13:55:21
[INFO] [INFO] Final Memory: 32M/77M
[INFO] [INFO] 
------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Maven execution failed, exit code: '1'

{noformat}

with:

{code:xml}
<profile>
      <id>assemble-appbin</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>appassembler-maven-plugin</artifactId>
            <version>1.2</version>
            <executions>
              <execution>
                <id>assemble-app</id>
                <goals>
                  <goal>assemble</goal>
                </goals>
                <configuration>
                  <programs>
                    <program>
                      
<mainClass>com.siemens.dynamowerk.didocxhelper.app.DiDocxHelperApp</mainClass>
                      <name>${app.name}</name>
                      <platforms>
                        <platform>unix</platform>
                      </platforms>
                    </program>
                  </programs>
                  <repositoryLayout>flat</repositoryLayout>
                  <repositoryName>lib</repositoryName>
                  
<includeConfigurationDirectoryInClasspath>false</includeConfigurationDirectoryInClasspath>
                  
<configurationSourceDirectory>src/main/assembly/bin/conf</configurationSourceDirectory>
                  <copyConfigurationDirectory>true</copyConfigurationDirectory>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <configuration>
              <descriptors>
                <descriptor>src/main/assembly/bin.xml</descriptor>
              </descriptors>
            </configuration>
            <executions>
              <execution>
                <id>assemble-bin</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
{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


Reply via email to