I need import my project's dependencies with maven.
But, I also need to compile the project with an ant script.
Before using maven, I had a lib folder with the jars. But now the jars are in a folder of maven which can be in multiple locations.
This is my target and path:
<path id="classpath.compilar">
<pathelement path="${java.class.path}" />
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="compilar" depends="limpiar">
<mkdir dir="${classes.dir}" />
<javac destdir="${classes.dir}" srcdir="${src.dir}"
classpathref="classpath.compilar" includeantruntime="false" />
</target>
I need to add these jars in the path, but I don't know how get it from maven.
Does anyone know how to do this? Any task to get a fileset with this jar files?