[ 
http://jira.codehaus.org/browse/MOJO-625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Owen Jacobson updated MOJO-625:
-------------------------------

    Attachment: MOJO-625.patch

I've gone a little further and made it possible to include artifacts of other 
types if so desired using

  <libArtifactTypes>
    <type>some-type-name</type>
    <type>jar</type>
    <!-- ... -->
  </libArtifactTypes>

in the configuration.  The default types are "jar" and "ejb-client".

> jboss-packaging plugin does not include ejb-client jars
> -------------------------------------------------------
>
>                 Key: MOJO-625
>                 URL: http://jira.codehaus.org/browse/MOJO-625
>             Project: Mojo
>          Issue Type: Bug
>          Components: jboss-packaging-maven-plugin
>         Environment: jboss-packaging-maven-plugin (rev. 2227)
>            Reporter: René Link
>         Attachments: MOJO-625-testcase.zip, MOJO-625.patch
>
>
> It should be able to include ejb-client jars into a sar.
> If i specify a dependency to an ejb-client jar it will not be included in the 
> sar.
> <dependency>
>      <groupId>some.group</groupId>
>      <artifactId>some.artifact</artifactId>
>      <type>ejb-client</type>
> </dependency>
> I have checked out the jboss-packaging-maven-plugin at revision 2227.
> The buildExplodedPackaging method of the AbstractPackagingMojo class defines 
> which
> dependencies are included.
> Here is a patch that will  solve the dependency inclusion problem with 
> ejb-client jars.
> @@ -270,7 +270,7 @@
>                      String type = artifact.getType();
>                      String descriptor = artifact.getGroupId() + ":" + 
> artifact.getArtifactId();
>                           FileUtils.copyFileToDirectory( artifact.getFile(), 
> lib
> -                    if ( "jar".equals( type ) && ! excludes.contains( 
> descriptor ) )
> +                    if ( ("jar".equals( type ) || "ejb-client".equals(type)) 
>  && ! excludes.contains( descriptor ) )
>                      {String type = artifact.getType();
>                          getLog().info( "        o " + descriptor );" + 
> artifact
>                          FileUtils.copyFileToDirectory( artifact.getFile(), 
> libDirectory );
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to