Re: Packaging external jars used within the ejb...
Bump! n000b wrote: > > Hi all, > > I have ejb that uses some external libraries, I have configured my pom.xml > for that and the jars are found during compile time and the ejb jar is > generated. What I want to do is to package the libs used by the ejb with > the ejb itself i.e. placing those lib under > > > |_ _ _ META-INF > + > |_ _ _ lib >+ >|_ _ _ (the needed jars) > > I am using scope as "compile" for those jar (in the dependency tag). But > those jars are not packaged into the ejb. Don't know if it's on any > important, I have a ear project in maven, that contains various ejb(s). I > dont want to put all the libs in the ear directory. > > I'd highly appreciate, if anyone could comment on what I am doing wrong in > this case? > > Thanks in Advance, > Usman. > -- View this message in context: http://www.nabble.com/Packaging-external-jars-used-within-the-ejb...-tp24629335p24642044.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Packaging external jars used within the ejb...
Hi all, I have ejb that uses some external libraries, I have configured my pom.xml for that and the jars are found during compile time and the ejb jar is generated. What I want to do is to package the libs used by the ejb with the ejb itself i.e. placing those lib under |_ _ _ META-INF + |_ _ _ lib + |_ _ _ (the needed jars) I am using scope as "compile" for those jar (in the dependency tag). But those jars are not packaged into the ejb. Don't know if it's on any important, I have a ear project in maven, that contains various ejb(s). I dont want to put all the libs in the ear directory. I'd highly appreciate, if anyone could comment on what I am doing wrong in this case? Thanks in Advance, Usman. -- View this message in context: http://www.nabble.com/Packaging-external-jars-used-within-the-ejb...-tp24629335p24629335.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Adding Dependency of other Child Project
Thanks for your reply Wendy. I did try the same, but maven cannot resolve the artifact. Do I need to install the artifact somewhere (we are using an archiva online repository, but I would prefer to have the artifact installed to some local directory), so that it can be used for the Child Project B from the local dir. Any way to achieve this? Thanks! Wendy Smoak-3 wrote: > > On Thu, Jun 25, 2009 at 7:51 AM, n000b wrote: > >> How can I >> let the Child B to know that the Child A has been build & the jar is >> added >> to the class path while building the Child B project. > > I think you answered it in your subject line. :) Add a dependency in B's > pom: > > > my.group > A > ${project.version} > > > -- > Wendy > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Adding-Dependency-of-other-Child-Project-tp24204718p24216869.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Adding Dependency of other Child Project
Hi*! I am moving my project from ant to maven2. My project consists of multiple modules (ejbs/wars). I have created a base/parent project and added modules to it, so far so good. Now, some of my projects depend upon some other child projects of the same parent to be built i.e. Child B depend upon Child A. I can build the Child A project (going to Child A dir and executing the "mvn package" command. This generates a jar file (which is needed for the Child B project). How can I let the Child B to know that the Child A has been build & the jar is added to the class path while building the Child B project. Thanks in advance for your time! -- View this message in context: http://www.nabble.com/Adding-Dependency-of-other-Child-Project-tp24204718p24204718.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org