maven-script-ant and the maven.test.classpath

When 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.

Comments

  1. 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

    ReplyDelete
  2. Thanks for the heads up! I was trying to do the same thing. Going to download trunk and build it. Cheers

    ReplyDelete

Post a Comment

Popular posts from this blog

Home Assistant in Docker on MacOs BigSur

The little yellow book of vaccinations

ReadyNas NV+ and rsync