I’m using Maven in the context of another build-tool (leiningen for Clojure, but this should not matter), and I would like to know how I would call a plugin like dependency:build-classpath programmatically (i.e. via the Maven-API, not via the mvn-command).
I’m using Maven in the context of another build-tool (leiningen for Clojure, but this
Share
See how org.apache.maven.plugin.testing.AbstractMojoTestCase from maven-plugin-testing-harness is implemented. Here’s a code snippet from some of my tests which may be helpful.