10 向本地仓库添加JAR包,如添加Oracle:
mvn install:install-file -Dfile=ojdbc14-10.2.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2 -Dpackaging=jar
11 maven拷贝依赖包到制定目录
mvn dependency:copy-dependencies -DoutputDirectory=./target/lib
12 maven制定JDK版本
org.apache.maven.plugins maven-compiler-plugin
13 maven制定到处可执行jar
org.apache.maven.plugins maven-jar-plugin 2.4 true lib/ com.chinaums.otaserver.worker.EchoWorkerServer
14 打包文件包行mybatis的xml
src/main/java **/*.properties **/*.xml false src/main/resources