[Update] The original question (below) is solved. I need to call
mvn package appassembler:assemble
instead of
mvn package
mvn appassembler:assemble
Question: Why is there a difference?
[Original]
I am trying to use the maven appassembler plugin to create a command line tool with all the dependencies assembled. It almost works but the artifact of the current module is missing. All dependent artifacts are copied to the repo and the classpath in the bat includes the current artifact. The configuration is as follows:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<configuration>
<platforms>
<platform>windows</platform>
<platform>unix</platform>
</platforms>
<programs>
<program>
<mainClass>${mainclass}</mainClass>
<name>huffman</name>
</program>
</programs>
</configuration>
</plugin>
Any ideas?