maven compile
把*.java编译成*.class,并存放到target目录。
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ xxx ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 140 source files to D:\IdeaProjects\xxx\target\classes
maven package
把class文件打包成*.jar
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ xxx ---
[INFO] Building jar: D:\IdeaProjects\xxx\target\xxx-1.0.jar
maven install
把编译完的jar拷贝到本地仓库。
--- maven-install-plugin:2.5.2:install (default-install) @ xxx ---
[INFO] Installing D:\IdeaProjects\xxx-1.0.jar to D:\maven\localRepository\com\xxx-1.0.jar
maven deploy
打包到远程仓库