Hi Mike,

I'm experiencing the exact same troubles. I actually just posted a
similar email to the list earlier today, though it doesn't seem to
have gotten through yet -- my first post so perhaps its moderated? Its
called "[m2] include dependent jars in Ejb-jar".

I am able to successfully deploy my EJBs after adding the following to
my EJB pom.xml:

(this assumes you are using <packaging>ejb</packaging> in the
<project> element of this pom.xml...)

<build>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
</build>

It still does not package the shared lib jar from my project into the
ejb jar in a lib folder, but my container (oc4j) is able to figure out
what I want and deploys things successfully. Perhaps this helps?

If you figure out how to force the EJB plugin to include your
dependent jars in a lib folder, definitely respond back to the list
with details!

Wayne


On 2/17/06, Mike Darretta <[EMAIL PROTECTED]> wrote:
> When I build my EJB module, the dependent jars are not included with the
> EJB jar. The research I've done seems to indicate that this is the
> behaviour of maven-ejb-plugin.
>
> Is there a way to include my dependency jars with my EJB jar, which in
> turn will be included in my ear file?
>
> Thanks for your help.
> Mike
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to