The EAR project should have your EJB project as a dependency.
Then the EJB dependencies should be automatically ("transitively")
brought in to the EAR project when you build the EAR. Give it a try
and respond back if it doesn't work for you.
Wayne
On 10/19/06, maven_learner <[EMAIL PROTECTED]> wrote:
Hi Wayne!
Thanks for your reply. Does that mean i have to include the jars (which i
need inside my ejb-jar) in my ear project?
which means i need to do the dependencies in my ejb project and my ear
project , assuming my ear project has a dependency on the ejb project.
thank you very much.
Wayne Fay wrote:
>
> There is no "problem", this is the normal behavior for Maven Jars, you
> simply were expecting more than you got. Jar packaging projects do not
> bundle other jars into the resulting output Jar.
>
> You will need to use the maven-assembly-plugin to create the Jar you
> desire, or perhaps package your EJB into an EAR (which does package
> the dependencies).
>
> Wayne
>
> On 10/19/06, horse <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> i am using Maven to create a Standalone EJB jar. in Eclipse all the
>> required
>> libraries (*.jars) which are defined in my project.xml under the
>> <dependencies> tag are all properly included. but in the generated EJB,
>> the
>> the jars are not included in my ejb-jar file. what could be the problem?
>> --
>> View this message in context:
>> http://www.nabble.com/Dependencies-in-EJB-project-tf2473101.html#a6895853
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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]
>
>
>
--
View this message in context:
http://www.nabble.com/Dependencies-in-EJB-project-tf2473101.html#a6899106
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
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]