[ 
http://jira.codehaus.org/browse/MAPPASM-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=260773#action_260773
 ] 

Karl Heinz Marbaise commented on MAPPASM-114:
---------------------------------------------

I have downloaded the example project and tried to do mvn clean package on a 
Mac (Maven 2.2.1) and i got the following:

{code}
[INFO] Configured Artifact: 
org.jomc.logging:jomc-logging-it:1.1-MAPPASM-114-SNAPSHOT:jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to find artifact.

Embedded error: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command: 
    mvn install:install-file -DgroupId=org.jomc.logging 
-DartifactId=jomc-logging-it -Dversion=1.1-MAPPASM-114-SNAPSHOT -Dpackaging=jar 
-Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there: 
    mvn deploy:deploy-file -DgroupId=org.jomc.logging 
-DartifactId=jomc-logging-it -Dversion=1.1-MAPPASM-114-SNAPSHOT -Dpackaging=jar 
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  org.jomc.logging:jomc-logging-it:jar:1.1-MAPPASM-114-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 2 seconds
[INFO] Finished at: Sat Mar 19 15:57:25 CET 2011
[INFO] Final Memory: 112M/528M
[INFO] ------------------------------------------------------------------------
mac:MAPPASM-114 km$
{code}

Environment:
{code}
mac:MAPPASM-114 km$ mvn --version
Using Java version: 1.6.0
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_22
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
{code}

The next thing i tried is remove the enforcer rule for Maven 2.2.1 and tried to 
do the build with Maven 3...and it worked perfectly...No fail nothing. (Maven 
3.0.3)

{code}
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.jomc.logging.it.LoggerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.275 sec

Results :

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ 
jomc-logging-slf4j-logging ---
[INFO] Building jar: 
/Users/km/ws-git/t/MAPPASM-114/jomc-logging-slf4j-logging/target/jomc-logging-slf4j-logging-1.1-MAPPASM-114-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] JOMC Logging ...................................... SUCCESS [10.196s]
[INFO] JOMC Logging API .................................. SUCCESS [6.647s]
[INFO] JOMC Logging Test Suite ........................... SUCCESS [35.669s]
[INFO] JOMC Logging Commons Logging ...................... SUCCESS [7.254s]
[INFO] JOMC Logging JDK Logging .......................... SUCCESS [7.196s]
[INFO] JOMC Logging Log4J Logging ........................ SUCCESS [6.176s]
[INFO] JOMC Logging Slf4J Logging ........................ SUCCESS [8.405s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:22.423s
[INFO] Finished at: Sat Mar 19 16:19:43 CET 2011
[INFO] Final Memory: 34M/528M
{code}

Environment:
mac:MAPPASM-114 km$ mvn --version
Using Java version: 1.6.0
Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
Java version: 1.6.0_22, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.5.8", arch: "x86_64", family: "mac"

I have never installed all artifacts i only run via mvn clean package ...An mvn 
install works also perfect.


> Copying dependencies fails when used in combination with version 2.2 of the 
> maven-dependency-plugin
> ---------------------------------------------------------------------------------------------------
>
>                 Key: MAPPASM-114
>                 URL: http://jira.codehaus.org/browse/MAPPASM-114
>             Project: Mojo AppAssembler Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1.1
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.5.0_16-p9
> Java home: /usr/local/jdk-1.5.0/jre
> Default locale: de_DE, platform encoding: UTF-8
>            Reporter: Christian Schulte
>            Priority: Critical
>         Attachments: MAPPASM-114.tar.gz
>
>
> Adding the appassembler plugin to a pom like
> {code:xml}
> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>appassembler-maven-plugin</artifactId>
>   <executions>
>     <execution>
>       <id>testsuite</id>
>       <phase>package</phase>
>       <goals>
>         <goal>assemble</goal>
>       </goals>
>       <configuration>
>         <programs>
>           <program>
>             <mainClass>main.Class</mainClass>
>             <name>name</name>
>           </program>
>         </programs>
>         <platforms>
>           <platform>windows</platform>
>           <platform>unix</platform>
>         </platforms>
>         <repositoryLayout>flat</repositoryLayout>
>         <repositoryName>lib</repositoryName>
>       </configuration>
>     </execution>
>   </executions>
> </plugin>
> {code}
> makes copying dependencies fail with an exception when using version 2.2 of 
> the 'maven-dependency-plugin'.
> {code}
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Internal error in the plugin manager executing goal 
> 'org.apache.maven.plugins:maven-dependency-plugin:2.2:copy-dependencies': 
> Unable to find the mojo 'copy-dependencies' (or one of its required 
> components) in the plugin 'org.apache.maven.plugins:maven-dependency-plugin'
> Component descriptor cannot be found in the component repository: 
> org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutflat.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the 
> plugin manager executing goal 
> 'org.apache.maven.plugins:maven-dependency-plugin:2.2:copy-dependencies': 
> Unable to find the mojo 'copy-dependencies' (or one of its required 
> components) in the plugin 'org.apache.maven.plugins:maven-dependency-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:585)
>       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 'copy-dependencies' (or one of its required components) in the plugin 
> 'org.apache.maven.plugins:maven-dependency-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-dependency-plugin:2.2:copy-dependencies',
>  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.dependency.CopyDependenciesMojo 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
> {code}

-- 
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