maven install与maven package 的区别 mvn install 是将你打好的jar包安装到你的本地库中,一般没有设置过是在 用户目录下的 .m2下面。mvn package 只是将你的代码打包到输出目录,一般的是 target下面。