jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-729

Ability to additional ArtifactHandlers using external components.xml

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0-beta-1
  • Fix Version/s: 2.0-beta-1
  • Component/s: Artifacts and Repositories
  • Labels:
    None
  • Environment:
    xp
  • Complexity:
    Intermediate

Description

I have a need to add a new ArtifactHandler using my own components.xml. It turns out the the setting is ignored unless I
merge my xml to maven-artifact/src/main/resources/META-INF/plexus/components.xml and bootstrap m2 to take affect.

Here is an example of my components declaration

<component>
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
<role-hint>native</role-hint>
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
<configuration>
<type>dll</type>
<extension>dll</extension>
<packaging>native</packaging>
</configuration>
</component>

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. MNG-4654 Maven erroneously selects artifact handler contributed by extension plugin for use with project main artifact based on the handler's packaging rather than type

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Kenney Westerhof added a comment - 12/Aug/05 6:51 PM

This component isn't added to the HandlerManager's list of available Handlers,
because it uses a List to store the Handlers. The component should already be discovered before
the HandlerManager is configured (looked-up), to be added to that list.

A modification of the HandlerManager to look up components for unknown role-hints etc.
could be made. It was done for the CompilerManager too.

Comments?

Show
Kenney Westerhof added a comment - 12/Aug/05 6:51 PM This component isn't added to the HandlerManager's list of available Handlers, because it uses a List to store the Handlers. The component should already be discovered before the HandlerManager is configured (looked-up), to be added to that list. A modification of the HandlerManager to look up components for unknown role-hints etc. could be made. It was done for the CompilerManager too. Comments?
Hide
Permalink
Brett Porter added a comment - 12/Aug/05 7:03 PM

Kenney - this alrready works when <extensions> is added to the pom using the plugin, but according to dan this isn't working.

Show
Brett Porter added a comment - 12/Aug/05 7:03 PM Kenney - this alrready works when <extensions> is added to the pom using the plugin, but according to dan this isn't working.
Hide
Permalink
Dan Tran added a comment - 21/Aug/05 8:07 AM

based on comments, not sure if this issue is fixed

Show
Dan Tran added a comment - 21/Aug/05 8:07 AM based on comments, not sure if this issue is fixed
Hide
Permalink
Brett Porter added a comment - 21/Aug/05 8:46 AM

it wasn't, but I fixed it and closed it. it works now (continuum is our working example)

Show
Brett Porter added a comment - 21/Aug/05 8:46 AM it wasn't, but I fixed it and closed it. it works now (continuum is our working example)

People

  • Assignee:
    Brett Porter
    Reporter:
    Dan Tran
Vote (0)
Watch (0)

Dates

  • Created:
    12/Aug/05 6:45 PM
    Updated:
    01/May/10 12:44 PM
    Resolved:
    21/Aug/05 8:46 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.