标签:
看见网上有好几种打包的方式,但是我目前只使用了下面这种方式。
修改pom.xml文件,添加插件
<!-- 打包 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> <classpathPrefix>lib/</classpathPrefix> <mainClass>com.mohoo.WxfpApplication</mainClass> </manifest> </archive> </configuration> </plugin>
2. 执行mvn clean package 命令
参考资料
http://blog.csdn.net/johnnywww/article/details/7964326
标签:
原文地址:http://my.oschina.net/u/263874/blog/529613