I'm using the maven-antrun-plugin to do several things to a single deployable artifact after packaging. However, the package I'm using makes several assumptions about the class path of its own plugins which are not in any repository. I've tried adding the plugin files to the jar, with no success. My next step is to let the plugins reside in a folder next to the jar file with the following structure:
.
nutch2handler.jar
plugins/
plugin1/plugin1.jar
plugin2/plugin2.jar
plugin3/plugin3.jar
etcetcetc
After antrun is done packaging the various artifacts(jar, plugins, www, shell scripts etc), it adds some configuration to the root of the jar for the same reason as above, and this works in this case. I know I can create a property hold a string containing a path I want to add to the classpath, but I don't want to type in all of these 20+ plugins into that property, as the plugin content may vary. How do I recursively add these jar files to that class-path?
I currently have
<property name="jar.class.path" value="" />
In my target configuration, and want to insert something like this with
<attribute name="Class-Path" value="${jar.class.path}"/>
Inside the jar tag.