You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2009/12/29 02:27:55 UTC

[jira] Commented: (MNG-2110) ArtifactRepositoryLayout isn't extensible

    [ http://jira.codehaus.org/browse/MNG-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204348#action_204348 ] 

Jason van Zyl commented on MNG-2110:
------------------------------------

The system is now full extensible. We use this support in M2Eclipse to override core components using plugins.

> ArtifactRepositoryLayout isn't extensible
> -----------------------------------------
>
>                 Key: MNG-2110
>                 URL: http://jira.codehaus.org/browse/MNG-2110
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.2
>            Reporter: Matthew Beermann
>             Fix For: 3.0-alpha-6
>
>
> I'm writing a plugin that (among other tasks) provides a new ArtifactRepositoryLayout suitable for Eclipse repositories. In my META-INF/plexus/components.xml, I have:
>     <component>
>       <role>org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout</role>
>       <role-hint>eclipse</role-hint>
>       <implementation>org.apache.maven.artifact.repository.layout.EclipseArtifactRepositoryLayout</implementation>
>     </component>
> This plugin is listed in the POM with <extensions>true</extensions>. I would expect that a <repository/> with <layout>eclipse</eclipse> would discover and load this layout provider. Instead, it simply results in an exception. Note that this same components.xml file also defines some lifecycle mappings, which work perfectly.
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find layout implementation corresponding to: 'eclipse' for remote repository with id: 'Eclipse Update Site'.
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
> ...
> Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the component repository: org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayouteclipse.
>         at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)

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