Add support for packaging .par and .ejb3 files in an .ear file
--------------------------------------------------------------

         Key: MNG-1264
         URL: http://jira.codehaus.org/browse/MNG-1264
     Project: Maven 2
        Type: New Feature
  Components: maven-ear-plugin  
    Versions: 2.0    
 Reporter: Adrian
    Priority: Minor


The ear plugin does not support packaging of .ejb3 and .par files into an .ear 
file.

To fix this a few lines of code need to be added to the 
org.apache.maven.plugin.ear.EarModuleFactory class in the newEarModule method.

        else if ( "ejb3".equals( artifact.getType() ) )
        {
            return new EjbModule( artifact );
        }
        else if ( "par".equals( artifact.getType() ) )
        {
            return new EjbModule( artifact );
        }

This will allow an application.xml file to be created with .ejb3 and .par 
files, for example

<application ... >
    <module>
        <ejb>entities.par</ejb>
    </module>
  
    <module>
        <ejb>business.ejb3</ejb>
    </module>
</application>

-- 
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, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to