Im very sure that could be a bug while load multiple custom-type "extensive
packaging type",I can post my workspace and and others can know see it
themself.
2008/10/17 sean.chen(陈思淼) <[EMAIL PROTECTED]>
> I create a new packaging type call tb-war and I define
> DefaultArtifactHandler related to it.
>
>> <component>
>>
> <role>
>>
> org.apache.maven.artifact.handler.ArtifactHandler
>>
> </role>
>>
> <role-hint>tb-war</role-hint>
>>
> <implementation>
>>
> org.apache.maven.artifact.handler.DefaultArtifactHandler
>>
> </implementation>
>>
> <configuration>
>>
> <language>java</language>
>>
> <extension>war</extension>
>>
> <addedToClasspath>false</addedToClasspath>
>>
> <includesDependencies>ture</includesDependencies>
>>
> <type>tb-war</type>
>>
> </configuration>
>>
> </component>
>
> my own packaging type works, can I can use tb-war in my new pom.xml, but
> the DefaultArtifactHandler dont work, and I debug into the source code, and
> found:my configuration dont works. maven create new DefaultArtifactHandler
> every time himself, and my own extension cant works.
> Is this a maven bug or my configuration error?,some one can help me ?
>
> public ArtifactHandler getArtifactHandler( String type )
>>
> {
>>
> ArtifactHandler handler = (ArtifactHandler) artifactHandlers.get(
>> type );
>>
>
>> if ( handler == null )
>>
> {
>>
> handler = new DefaultArtifactHandler( type );
>>
> }
>>
>
>> return handler;
>>
> }
>>
>