Deployment fails when used in combination with version 2.5 of the 
maven-deploy-plugin
-------------------------------------------------------------------------------------

                 Key: MAPPASM-96
                 URL: http://jira.codehaus.org/browse/MAPPASM-96
             Project: Mojo AppAssembler Plugin
          Issue Type: Bug
    Affects Versions: 1.0, 1.x
         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
            Priority: Blocker


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 contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.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