I have the following directory structure ROOT ---COMMON ---SUBPROJECT_1 ---SUBPROJECT_2
My common project has X dependencies, which are located in the remote repository. IE.. log4j.jar, commons-beanutils.jar, etc.. We have a custom directory structure that is zipped up and deployed for SUBPROJECT_1. It should look like the following: ROOT --LIB -- common-1.0.jar (Built from COMMON/src) -- log4j.jar (Dependency for the COMMON project) -- commons-beanutils.jar (Dependency for the COMMON project) -- subproject1-1.0.jar (Built from SUBPROJECT_1/src) -- com.ibm.mq.jar (Dependency for the SUBPROJECT_1 project) --PROPS Property files cannot be bundled into any jars. -- common_1.properties (Properties file required for common-1.0.jar) -- common_2.properties (Properties file required for common-1.0.jar) -- subproject1_1.properties (Properties file required for subproject1-1.0.jar) I have no problems building the Commmon-1.0.jar, and including it in the classpath of the SUBPROJECT_1 build. However how do I get the SUBPROJECT1 build to include all the dependencies of the COMMON project (IE. log4j.jar, commons-beanutils.jar) to the LIB directory. As well as the common_1.properties and common_2.properties to the PROPS directory. I have written my own pre-goal for deploy in the SUBPROJECT1 maven.xml that basically retrieves the POM of COMMON project and loops through the dependencies and copies them over to where I would like. Is this the correct way of doing this? Is there a best practice for this? Thanks Christopher Grasso -----Original Message----- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 28, 2004 11:05 AM To: Maven Users List Subject: Re: no deploy plugin these are all present in the artifact plugin now. http://maven.apache.org/reference/plugins/artifact/ On Tue, 28 Sep 2004 10:46:23 -0400, Eric White <[EMAIL PROTECTED]> wrote: > How is one to copy dependency jars now that the maven-deploy-plugin is no > more. > BTW, The manual still says: > > Using the deploy:copy-deps tag you can easily place your project's > dependency JARs where you wish. If you wish to exclude certain dependency > JARs you can provide a list of dependency ids and each dependency listed > will be excluded from the copy: > <project > xmlns:deploy="deploy"> > > <goal name="deploy-my-project"> > ... > <deploy:copy-deps todir="/path" excludes="servletapi,commons-util"/> > ... > </goal> > </project> > > Thanks! > > --------------------------------------------------------------------- > 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] -------------------------------------------------------- If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ -------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
