I'm using maven-dependency-plugin:build-classpath
to build a classpath file. To support a legacy deployment, I need this file to include the artifact I'm building, in addition to the usual set of dependency JARs.
Current classpath file:
dep1.jar:dep2.jar
Classpath file I want:
project-I'm-building.jar:dep1.jar:dep2.jar
I'm contemplating using maven-antrun-plugin to generate a file containing a classpath to the artifact JAR, then using the option of build-classpath to add the dependency JARs. This seems inelegant though. Is there a better way?