I just understood I have to configure the plugin in the build/plugins
element with <extensions>true</extensions>

What's the meaning of the build/extensions element ?

2007/10/1, nicolas de loof <[EMAIL PROTECTED]>:
> Hello,
>
> I'd like to add support in maven for a custom packaging.
> I've created a META-INF/plexus/components.xml to define a new
ArtifactHandler :
>
>     <component>
>       <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
>       <role-hint>javascript</role-hint>
>       <implementation>
org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
>       <configuration>
>         <type>javascript</type>
>         <extension>jsar</extension>
>         <language>javascript</language>
>         <addedToClasspath>false</addedToClasspath>
>       </configuration>
>     </component>
>
> I the run "mvn install" from a test project that has a dependency of
> type "javascript" and defines my custom plugin as a build extension.
> The requested URL in my repo uses the unexpected ".javascript"
> extension.
>
> Runing maven in a debug session, in DefaultWagonManager.getArtifact()
> the requested artifact doens't have my custom handler attached, but
> what seems to be the default one for unresolved types.
>
> Is this the good way to extend maven ? What's wrong ?
>
> Nico.
>

Reply via email to