1:打包编译 compile
先把命令行切换到Maven项目的根目录
mvn clean compile
流程:
清理插件 maven-clean-plugin:3.1.0:clean
使用资源插件 maven-resources-plugin:3.2.0:resources
使用编译插件 maven-compiler-plugin:3.8.1:compile
完成
2:直接安装
mvn install
mvn clean test
mvn clean package
mvn clean install