I am trying to copy all the dependent jars mentioned in my pom.xml using an ant script. I am able to copy all the dependencies except for dependency with scope 'system' in my pom.xml
My pom.xml looks like this
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>javafx</groupId>
<artifactId>jfxrt</artifactId>
<version>${java.version}</version>
<scope>system</scope>
<systemPath>${java.home}/lib/jfxrt.jar</systemPath>
</dependency>
My build.xml looks like this
<target name="resolve" description="retrieve dependencies with maven">
<artifact:pom id="pomfile" file="pom.xml" />
<echo message="Resolving...........${container}"></echo>
<artifact:dependencies filesetId="dependency.fileset">
<pom refid="pomfile" />
</artifact:dependencies>
<!-- Copy all dependencies to the correct location. -->
<copy todir="${ant.project.name}/lib">
<fileset refid="dependency.fileset" />
<mapper type="flatten" />
</copy>
</target>
The JUnit jar gets copied to the specfied lib directory, but jfxrt.jar is not getting copied.