springboot一種打包方式
阿新 • • 發佈:2018-12-20
<plugin> <!-- mvn clean package -U appassembler:assemble -Dmaven.test.skip=true --> <groupId>org.codehaus.mojo</groupId> <artifactId>appassembler-maven-plugin</artifactId> <version>2.0.0</version> <configuration> <configurationDirectory>resources</configurationDirectory> <copyConfigurationDirectory>true</copyConfigurationDirectory> <configurationSourceDirectory>src/main/resources/</configurationSourceDirectory> <useWildcardClassPath>true</useWildcardClassPath> <repositoryLayout>flat</repositoryLayout> <repositoryName>lib</repositoryName> <assembleDirectory>${project.build.directory}/yuncourt-ai-register</assembleDirectory> <binFileExtensions> <unix>.sh</unix> </binFileExtensions> <platforms> <platform>windows</platform> <platform>unix</platform> </platforms> <programs> <program> <name>startup</name> <mainClass>com.ancun.yuncourt.yuncourtairegister.YuncourtAiRegisterApplication</mainClass> <commandLineArguments> </commandLineArguments> <jvmSettings> <initialMemorySize>256m</initialMemorySize> <maxMemorySize>512m</maxMemorySize> <maxStackSize>512m</maxStackSize> <extraArguments> <extraArgument>-Dtest=false</extraArgument> <extraArgument>-Dlog4j.properties=false</extraArgument> </extraArguments> </jvmSettings> </program> </programs> </configuration> </plugin>