You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jacob Beard <jb...@cs.mcgill.ca> on 2010/09/07 04:58:28 UTC

access plugin dependencies and trigger downloading of dependencies with maven ant tasks

Hi,

I was wondering if there is a way to access plugin dependencies using
maven ant tasks. So, if you have something like the following in
pom.xml:

      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.4</version>
	<dependencies>
		<dependency>
			<groupId>bsf</groupId>
			<artifactId>bsf</artifactId>
			<version>2.4.0</version>
		</dependency>
                ...
        </dependencies>
     </plugin>

To read these plugin dependencies into a path in ant, like you can
with regular regular dependencies (those that are direct children of
the pom root element).

I was also wondering if it's possible to trigger downloading of
dependencies in a maven pom. It seems from the documentation that
maven ant tasks allows one to read dependencies in a pom into an ant
path or fileset, but it's not clear to me how to download them and
install them into the local repository from ant.

I'd appreciate any guidance anyone can offer. Thanks,

Jake

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


AW: access plugin dependencies and trigger downloading of dependencies with maven ant tasks

Posted by Ja...@rzf.fin-nrw.de.
I dont know the Maven tasks, but with Ivy you'll get the path with all required libraries with
<ivy:cachepath pathid="bsf.path" organisation="bsf" module="bsf" revision="2.4.0" inline="true"/> 

I havent found a quick way to read an existing POM ...


Jan

>-----Ursprüngliche Nachricht-----
>Von: Jacob Beard [mailto:jbeard4@cs.mcgill.ca] 
>Gesendet: Dienstag, 7. September 2010 04:58
>An: user@ant.apache.org
>Betreff: access plugin dependencies and trigger downloading of 
>dependencies with maven ant tasks
>
>Hi,
>
>I was wondering if there is a way to access plugin dependencies using
>maven ant tasks. So, if you have something like the following in
>pom.xml:
>
>      <plugin>
>        <artifactId>maven-antrun-plugin</artifactId>
>        <version>1.4</version>
>	<dependencies>
>		<dependency>
>			<groupId>bsf</groupId>
>			<artifactId>bsf</artifactId>
>			<version>2.4.0</version>
>		</dependency>
>                ...
>        </dependencies>
>     </plugin>
>
>To read these plugin dependencies into a path in ant, like you can
>with regular regular dependencies (those that are direct children of
>the pom root element).
>
>I was also wondering if it's possible to trigger downloading of
>dependencies in a maven pom. It seems from the documentation that
>maven ant tasks allows one to read dependencies in a pom into an ant
>path or fileset, but it's not clear to me how to download them and
>install them into the local repository from ant.
>
>I'd appreciate any guidance anyone can offer. Thanks,
>
>Jake
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org