First... many thanks for the response! It's so tough to find good examples
with this product since it's so new.
I tried your example... here's my pom.xml entry:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<goals>
<goal>
<configuration>
<generateClient>true</generateClient>
</configuration>
</goal>
</goals>
</plugin>
</plugins>
Of course, nothing different happens when I generate the jar, so I'm
guessing that this functionality isn't implemented yet. I'm not entirely
sure this will suit my needs anyway... our team uses course-grained EJBs and
I need the server-side EJB jar to include some libraries in it (and add the
necessary "Classpath" entries in the Manifest.mf).
This completely baffles me that no one has had a need to include a jar
inside of a jar. I know of the "uberjar" in Maven 1.0, but that's not
really what I need either (don't need the bootstrap-code/runnable-jar
features). The best technique I've come up with is to painstakingly use the
required jars as <resources> in the pom.xml... which is an embarrassing hack
to which I'm trying to find a better technique.
M2 users of the world! Come to my rescue!
Joel
-----Original Message-----
From: Edwin Punzalan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 21, 2005 11:09 PM
To: Maven Users List
Subject: Re: M2 - Dependent Jars for EJB
sorry, the artifact ID should be:
<artifactId>maven-ejb-plugin</artifactId>
Edwin Punzalan wrote:
>
> I maybe wrong but I think for the client jars to be included in the
> ejb jar, you should configure your ejb plugin to do so like:
>
> ....
> <plugins>
> ....
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-plugin-parent</artifactId>
> <configuration>
> <generateClient>true</generateClient>
> </configuration>
> </plugin>
> ....
> </plugins>
>
> By default, <generateClient> is false.
>
>
> [EMAIL PROTECTED] wrote:
>
>> For some reason my dependent jars aren't being included in my EJB jar
>> when I
>> issue an "m2 package" command. Here are the pertinent entries in my
>> pom.xml:
>>
>> <packaging>ejb</packaging>
>>
>> EXAMPLE dependent jar entry (on local repository only, not remote):
>> <dependency>
>> <groupId>lis</groupId>
>> <artifactId>lis-model</artifactId>
>> <version>SNAPSHOT</version>
>> <scope>compile</scope>
>> </dependency>
>>
>> Everything compiles fine, but all of the dependent jars under "compile"
>> scope don't get included in the EJB jar.
>> Does anyone happen to know why this is?
>>
>> Thanks!
>>
>> Joel
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]