You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jens Zastrow <je...@dai-labor.de> on 2004/02/27 17:52:00 UTC

copy all jars/deps of sub-projects with

I have a project with 4sub-modules and use the reactor to build them.
My "project maven.xml" should now copy all module-jars and all dependencies of the modules into a single dir.
I tried the <deploy:copy-deps> but this works only when it used in a "module-maven.xml". 
After that I tried this:

            <maven:reactor
		      basedir="${basedir}/../"
		      postProcessing="true"
		      includes="*/project.xml"
		      excludes="build/*"		      
		      banner="Generating Site"
		      ignoreFailures="false"/>

		<j:forEach var="x" items="${reactorProjects}">

      		<ant:echo message="${x}"/>
						
			<deploy:copy-deps todir="${maven.build.dir}" projectDescriptor="${x}"/>

    		</j:forEach>

How can I specifiy the projectDescriptor of deploy:copy-deps ?!

Thanks

Jens Zastrow
DAI-Labor - Technische Universität Berlin
Sekretariat GOR 1-1, Franklinstraße 28/29, 10587 Berlin
Fon: +49 30 314 77777
Fax: +49 30 314 21799
jens.zastrow@dai-labor.de
http://www.dai-labor.de


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: copy all jars/deps of sub-projects with

Posted by Gilles Dodinet <rh...@free.fr>.
Jens Zastrow wrote:

>I have a project with 4sub-modules and use the reactor to build them.
>My "project maven.xml" should now copy all module-jars and all dependencies of the modules into a single dir.
>I tried the <deploy:copy-deps> but this works only when it used in a "module-maven.xml". 
>After that I tried this:
>
>            <maven:reactor
>		      basedir="${basedir}/../"
>		      postProcessing="true"
>		      includes="*/project.xml"
>		      excludes="build/*"		      
>		      banner="Generating Site"
>		      ignoreFailures="false"/>
>
>		<j:forEach var="x" items="${reactorProjects}">
>
>      		<ant:echo message="${x}"/>
>						
>			<deploy:copy-deps todir="${maven.build.dir}" projectDescriptor="${x}"/>
>
>    		</j:forEach>
>
>How can I specifiy the projectDescriptor of deploy:copy-deps ?!
>
Jens,

does something like below not work ?

<deploy:copy-deps todir="${maven.build.dir}" 
projectDescriptor="${x.getFile()}"/>

-- gd




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org