1 用eclipse的Maven打包后在target目录,如下图
2 POM文件的build依赖
src/main/java
src/main/resources
**/*.properties
**/*.xml
false
${project.build.directory}/config
org.apache.maven.plugins
maven-compiler-plugin
1.8
UTF-8
org.apache.maven.plugins
maven-jar-plugin
com.dodoca.common.TaskMain
true
lib/
config/
org.apache.maven.plugins
maven-dependency-plugin
copy
package
copy-dependencies
${project.build.directory}/lib
org.apache.maven.plugins
maven-resources-plugin
2.5
UTF-8