I have a appassembler-maven-plugin in my pom file and it used to work just fine - I can create a deployable package foe both windows and unix by running mvn assembly:assembly.
However it stop working for the new Spring boot project, complaining:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.6:single (default) on project rest: Failed to create assembly: Error creating assembly archive bin: You must set at least one file. -> [Help 1]
what went wrong? and what's difference b/w appassembler-maven-plugin and maven-assembly-plugin? I tried the latter, it seems throwing the same error (I don't recall the error details for that).
the plugin in my pom looks like:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>assemble</goal>
</goals>
</execution>
</executions>
<configuration>
<configurationSourceDirectory>src/main/resources</configurationSourceDirectory>
<configurationDirectory>config</configurationDirectory>
<copyConfigurationDirectory>true</copyConfigurationDirectory>
<includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath>
<assembleDirectory>${project.build.directory}/${project.name}</assembleDirectory>
<extraJvmArguments>
-Xms128m -Xmx128m
</extraJvmArguments>
<platforms>
<platform>unix</platform>
</platforms>
<programs>
<program>
<mainClass>com.mycompany.Application</mainClass>
<name>gs_rest.sh</name>
</program>
</programs>
</configuration>
</plugin>