[ http://jira.codehaus.org/browse/MEJB-13?page=comments#action_79254 ] 
            
Jayson Raymond commented on MEJB-13:
------------------------------------

I disagree with Trygve here.

Build resources are assigned to the entire build process - and made available 
to all defined plugins.

This particular plugin will generate multiple artifacts (ejb.jar and 
client.jar). It will need to narrow the set of resources in different ways for 
each of those artifacts.

Because of this, defining the resource subset must occur within the plugin 
definition, as has already been done with the client resources. The same needs 
to occur for the ejb.jar itself.

I am currently faced with this exact problem and will be using (and am grateful 
for) Fredriks contribution. I hope it will be in the next release, so I won't 
need to maintain a seperate copy.

> Add support for configuring exclusion filter for main ejb jar
> -------------------------------------------------------------
>
>                 Key: MEJB-13
>                 URL: http://jira.codehaus.org/browse/MEJB-13
>             Project: Maven 2.x Ejb Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0, 2.1
>         Environment: Maven 2.0.4, maven-ejb-plugin 2.1-SNAPSHOT, JBoss 
> 4.0.3sp1
>            Reporter: Fredrik Vraalsen
>         Attachments: maven-ejb-plugin-configure-main-jar-excludes-2.patch, 
> maven-ejb-plugin-configure-main-jar-excludes.patch, 
> MEJB-configure-excludes.patch
>
>
> In my ejb project I have certain files that must only be included in the 
> ejb-client jar and not the main ejb jar (jboss-client.xml, 
> application-client.xml and jndi.properties).  When these files are present in 
> the main ejb jar, JBoss refuses to deploy my ejbs.
> Thus, I need a way to configure the exclusion filter for the main ejb jar.  
> This is currently hardcoded in EjbMojo.java.  I am attaching a patch to make 
> this configurable in the same way as clientExcludes.  
> Below is an example of the kind of configuration I am using:
>                       <plugin>
>                               <groupId>org.apache.maven.plugins</groupId>
>                               <artifactId>maven-ejb-plugin</artifactId>
>                               <version>2.1-SNAPSHOT</version>
>                               <configuration>
>                                       <excludes>
>                                               
> <exclude>jndi.properties</exclude>
>                                               
> <exclude>META-INF/*-client.xml</exclude>
>                                               
> <exclude>**/interfaces/</exclude>
>                                               
> <exclude>**/assetrepository/Asset.class</exclude>
>                                       </excludes>
>                                       <generateClient>true</generateClient>
>                                       <clientExcludes>
>                                               
> <clientExclude>META-INF/ejb-jar.xml</clientExclude>
>                                               
> <clientExclude>META-INF/jboss.xml</clientExclude>
>                                               
> <clientExclude>**/dao/</clientExclude>
>                                               
> <clientExclude>**/entity/</clientExclude>
>                                               
> <clientExclude>**/jaxb/</clientExclude>
>                                               
> <clientExclude>**/session/</clientExclude>
>                                               
> <clientExclude>**/xmldb/</clientExclude>
>                                       </clientExcludes>
>                               </configuration>
>                       </plugin>

-- 
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

        

Reply via email to