On Sun, Apr 3, 2011 at 2:34 PM, Ansgar Konermann <
[email protected]> wrote:

>
> Interestingly, if I change all occurrences of "drools-knowledge-module" in
> the components.xml into "dkm" and use <packaging>dkm</packaging> in my poms,
> the plugin works okay. Do I have to use the string specified as <role-hint>
> when I specify my packaging type in the POM?
>

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

Reply via email to