如何将Maven打包成JAR文件?
- 内容介绍
- 文章标签
- 相关推荐
本文共计140个文字,预计阅读时间需要1分钟。
运行以下Maven命令来构建并打包Java项目:
mvn clean package -Dmaven Shade Plugin Version=2.4.3 -Ppackage Shade -Dinclude *:* -Dexclude *:* -Dfile *:* -Dreference.conf *:* -DmainClass com.redisDemo.Main -DgroupId redisDemo -DartifactId redisDemo -Durl http://maven.apache.org -Dcharset UTF-8
package
UTF-8
本文共计140个文字,预计阅读时间需要1分钟。
运行以下Maven命令来构建并打包Java项目:
mvn clean package -Dmaven Shade Plugin Version=2.4.3 -Ppackage Shade -Dinclude *:* -Dexclude *:* -Dfile *:* -Dreference.conf *:* -DmainClass com.redisDemo.Main -DgroupId redisDemo -DartifactId redisDemo -Durl http://maven.apache.org -Dcharset UTF-8
package
UTF-8

