springboot maven-assembly-plugin打包配置

编辑maven pom.xml





org.apache.maven.plugins

maven-compiler-plugin



1.8

1.8

UTF-8









org.apache.maven.plugins

maven-jar-plugin







true

lib/

com.App







. 







**/*.properties

**/*.xml

**/*.yml

static/**

templates/**











maven-assembly-plugin





false



src/main/resources/package.xml









make-assembly

package



single









编辑package.xml





package



zip



true





src/main/resources/static

static





src/main/resources/templates

/templates





src/main/resources/config

config











${project.build.directory}

/



*.jar







lib

lib









lib

runtime







${groupId}:${artifactId}







你可能感兴趣的:(springboot,maven)