On 04.04.2011 09:58, Peter Schmidt wrote:

That is the key, the "role-hint" is  your packaging type. See also section
11.6.3 [1]. I'm not a maven expert, but i would assume that helps maven to
find the ArtifactHandler and LifecycleMapping for a custom packaging type.

The javascript-maven-tools plugin also defines a custom packaging type, You
should take a look at it, here is a fork on github [2].

[1]
http://www.sonatype.com/books/mvnref-book/reference/writing-plugins-sect-plugins-lifecycle.html
[2]
https://github.com/harlanji/javascript-maven-tools/blob/master/javascript-maven-plugin/src/main/resources/META-INF/plexus/components.xml


Hi Peter,

thanks a lot for this clear reference. I found a few components.xml files from various other plugins which also define a DefaultArtifactHandler in addition to a LifecycleMapping. These DefaultArtifactHandlers commonly have properties like <type>, <extension> and <packaging>. Do you or someone else know what an ArtifactHandler is supposed to do, and what all the properties are supposed to mean?

Thanks in advance

Ansgar


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to