So, if I understand correctly, I want to put a components.xml file in my
plugin's src/main/resources/META-INF/plexus directory?  And that should
look like the components.xml file in that place in the maven-artifact
project (except that it defines only the artifact handler for my new
artifact type)?  That didn't seem to work.

Where would the docs for this go?  Into the Guide for Developing
Plugins?
When I get it all to work for me, I'll add my knowledge to the docs for
future generations.

..David..
 

-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 08, 2005 6:44 PM
To: Maven Users List
Subject: Re: [m2] Custom artifact types (and the handlers who love them)

Yes, while the docs are lacking in this area it is very similar to the
build lifecycle which is documented.

- add components.xml with handler reference (see maven-artifact for
examples)
- when using the plugin, set <extensions>true</extensions> to make the
type available.

On 11/9/05, David Jackman <[EMAIL PROTECTED]> wrote:
> I've created a Mojo that generates a Javadoc-like documentation set, 
> and my plugin does things similar to the javadoc plugin in that it 
> archives all of the docs into a jar file and attaches the artifact to
the list.
> In looking at the artifact code, however, it looks like it's trying to

> find an artifact handler for my custom artifact type so it knows how 
> to work with it (specifically, I'm trying to dictate what the file 
> extension should be).  How do I create and register an artifact 
> handler for my artifact type?  I assuem that my plugin would take care

> of this sort of thing?
>
> ..David..
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to