title: How to programmatically call a Maven-task
body: <p>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 <a href="http://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html" rel="noreferrer">dependency:build-classpath</a> programmatically (i.e. via the Maven-API, not via the <code>mvn</code>-command).</p>