We are doing this with both WSAD and RAD with minimal problems using Maven 1.0.2. I wrote a maven.xml script that we run to copy all jar files into the EAR project for development, and declare dependencies in the EAR project's project.xml that get them included in the build for runtime. The biggest pain is when you want to change the dependencies of the EJB/WAR project - end up having to change in two places (the project and the EAR project). But we are working steadily toward an optimal solution.

jeff

Sanjay Choudhary wrote:

I am able to build my projects and EAR in both WSAD and RAD6.  Now problem I
face is in third party jars.

in RAD6/WSAD project structure is like this

EAR Project
    contains application.xml for EAR
    contains all third party JAR required by application

JAR project

EJB Project

WAR Project
     contains JSPs
     contains third party JARs like struts etc in the LIB folder

Now when I used Maven in my development environment, I moved all the third
party JARS to maven repository and changed the dependencies accordingly.  My
java project, ejb projects and war project compiled fine. I am able to
create EAR too.

Now when I want to run/debug my application on built in Websphere
application server, server complains about the third party JARs.  Initially,
I thought of adding all the third party jars in server classpath - but this
is not a good idea.  Shall I explode my EAR into EAR project, so that I will
have all the third party jars there. Is there someother best practice that I
can follow?   I am sure someone may have resolved this issue, (maven is
around for long).

Please advice.

Thanks,
Sanjay



--
jeff bonevich
mailto: [EMAIL PROTECTED]

"Any sufficiently advanced technology is indistinguishable from magic."
Arthur C. Clarke

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
Rich Cook

"All programmers are playwrights and all computers are lousy actors."
Unknown


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

Reply via email to