Hi, I'm calling my old ant tasks via the antrun plugin from maven 2. By calling the Ant Task javac I want to use the depencenies from my pom file as a classpath/classpathrefid. How can I do that? ... <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>compile</phase> <configuration> <artifacts>${maven.dependency.classpath}</artifacts> <tasks> <tstamp><format property="timestamp" pattern="yyyy-MM-dd_HHmmss"/></tstamp> <property file="${user.home}/oms.build.properties"/> <property file="build.properties"/> <property file="release.properties"/> <javac fork="yes" destdir="${o.builddir}" debug="${debug}" debuglevel="${debuglevel}" optimize="${optimize}" deprecation="${deprecation}"> <classpath refid="maven.dependency.classpath"/> <src path="${o.srcdir}"/> <include name="**/*.java"/> </javac> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> ...
One way is to use the Antlib, but I don't want to run ant, instead I want to use maven2. any ideas or help? markus