Hi there,

I'm playing around with the "Better builds with maven" book..
I'm following chapter 4..

I have defined a parent POM that contains 2 modules: mtracker-ejb and
mtracker-web..
The web module should depend on the ejb-client jar of the ejb module.

** But I can't seem to get the EJB module to produce the ejb-client jar
artifact..

I have this in my EJB module's POM:

<build>
       <plugins>
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-ejb-plugin</artifactId>
               <configuration>
                   <generateClient>true</generateClient>
                   <clientExcludes>
                       <clientExclude>**/mtracker-ejb/*Bean.class
</clientExclude>
                   </clientExcludes>
               </configuration>
           </plugin>
[...]


This snippet is in the web module's POM:

<dependencies>
       <dependency>
           <groupId>mtracker</groupId>
           <artifactId>mtracker-ejb</artifactId>
           <version>${pom.version}</version>
           <type>ejb-client</type>
       </dependency>
[...]


When I do a "mvn install" on the EJB module, it does not generate an
ejb-client module

** Also, IntelliJ doesn't seem to recognize this module as an EJB module,
although the EJB module's POM has packaging set to "ejb"..


Any help on this would be appreciated..


Regards,
Jo

Reply via email to