I have something like this in my ant file and the maven ant tasks 2.0.9 and
ant 1.7 that loads a pom.xml file and creates a bunch of filesets:
<target name="wtf">
<!-- declare pom.xml -->
<artifact:pom id="maven.project" file="pom.xml" />
<!-- provided.fileset -->
<artifact:dependencies pomRefId="maven.project"
pathId="provided.classpath" filesetId="provided.fileset"
verbose="${maven.verbosity}" useScope="provided" />
<!-- make a copy of it -->
<mkdir dir="provided-scope"/>
<copy todir="provided-scope" flatten="true">
<fileset refid="provided.fileset"/>
</copy>
</target>
And my pom file does have several dependencies with the provided scope:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>9.0.2.0.0</version>
<scope>provided</scope>
</dependency>
So when I execute "ant wtf", none of the dependencies in the provided scope
gets copied into that directory. The provided scope is supported by the
maven ant tasks, right? Or am I doing something wrong?
Thanks.