maven-script-ant and the maven.test.classpath
Friday, September 19th, 2008When using the ant-run plugin you can get references to the maven classpaths in the ant fragment
Those are the ones available:
- maven.compile.classpath
- maven.runtime.classpath
- maven.test.classpath
- maven.plugin.classpat
I tried to build an ant plugin for maven as explained in http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html to refactor out the ant fragment and all went smooth until I needed a reference to the maven classpath.
I just assumed I could use the classpath references in the maven-script-ant plugin.
I took me a while to realize that the 2.0.9 version of the maven-script-ant has no support for it and that support is currently available on trunk.
I had to download the source code and build 2.1-SNAPSHOT.jar by my self.
October 15th, 2008 at 2:09 pm
Hi Roberto,
Thanks so much for this. I’m fairly new to Maven, and although I’ve downloaded multiple versions of the code (trunk, braches etc) I can’t get it to build succesfully. Would you be able to
May 1st, 2010 at 4:40 pm
Thanks for the heads up! I was trying to do the same thing. Going to download trunk and build it. Cheers