Hi!
I want to create an assembly with a directory 'lib', which should contain
* each runtime dependency
* the produced JAR (produced by mvn package)
Within my assembly descriptor I use a simple dependencySet for the
dependencies
<dependencySet>
<outputDirectory>lib</outputDirectory>
</dependencySet>
Now, because the produced JAR is not declared as a dependency within my
POM, I use a fileSet for it. I thought I could do it the following way
by using variables:
<fileSet>
<directory>target</directory>
<outputDirectory>lib</outputDirectory>
<includes>
<include>${artifactId}-${version}.${extension}</include>
</includes>
</fileSet>
But this does not seem to work (why not?). So I now do it in the
following way:
<fileSet>
<directory>target</directory>
<outputDirectory>lib</outputDirectory>
<includes>
<include>myproject-*.jar</include>
</includes>
<excludes>
<exclude>myproject-*-javadoc.jar</exclude>
<exclude>myproject-*-sources.jar</exclude>
</excludes>
</fileSet>
I have to add the 'excludes' section, because there are other JARs in
the 'target' directory which name start with prefix 'myproject'; they
shouldn't go into the 'lib' directory.
But I do not like this solution (a lot of hardcoded strings) and so I
would like to know if there is a better one?
Regards,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]