Maven配置Spring Boot项目打包,依赖包到lib目录、配置文件到conf目录
Stella981
• 阅读
725
org.apache.maven.plugins
maven-jar-plugin
\*.properties
\*.yml
com.xxx.xxx.StartupApplication
true
lib/
false
conf/
maven-resources-plugin
copy-xmls
process-sources
copy-resources
${basedir}/target/conf
${basedir}/src/main/resources
\*.properties
\*.yml
org.apache.maven.plugins
maven-dependency-plugin
copy
package
copy-dependencies
target/lib/