You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Joerg Schaible (JIRA)" <ji...@codehaus.org> on 2012/01/24 09:52:02 UTC

[jira] (MWAR-267) Maven WAR plugin does not copy dependencies of type "bundle" into WEB-INF/lib

    [ https://jira.codehaus.org/browse/MWAR-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=289244#comment-289244 ] 

Joerg Schaible commented on MWAR-267:
-------------------------------------

Actually this complete list of types is nonsense! Every Maven plugin has an extension flag that enables custom artifact types to be respected (defined in a META-INF/plexus/components.xml). The WAR plugin should simply respect any artifact on the classpath required for runtime. I cannot see any reason for the WAR plugin to behave different.
                
> Maven WAR plugin does not copy dependencies of type "bundle" into WEB-INF/lib
> -----------------------------------------------------------------------------
>
>                 Key: MWAR-267
>                 URL: https://jira.codehaus.org/browse/MWAR-267
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1.1
>         Environment: Any
>            Reporter: Thomas Vandahl
>
> A WAR project has transitive dependencies of type "bundle" (mina-core, ...). These dependencies do not end up in the WAR file structure under WEB-INF/lib as they are supposed to.
> My guess would be the method ArtifactsPackagingTask.performPackaging(), where only known types of dependencies are handled, AFAICS. Could the type "bundle" be added there? Like:
> {code}
> else if ( "jar".equals( type ) || "ejb".equals( type ) || "ejb-client".equals( type )
>     || "test-jar".equals( type ) || "bundle".equals( type ))
> {
>     copyFile( id, context, artifact.getFile(), LIB_PATH + targetFileName );
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira