maven父子工程更新版本号
命令:
mvn versions:set -DnewVersion=3.0.0-SNAPSHOT
mvn versions:update-child-modules
maven 构建一个项目命令:
mvn archetype:generate -D groupId=com.mycompany.app -D artifactId=my-app -D archetypeArtifactId=maven-archetype-quickstart -D archetypeVersion=1.4 -D interactiveMode=false
archetype:generate
pom.xml是项目对象模型
打包配置
<properties>
<!-- java 版本 -->
<maven.compiler.release>11</maven.compiler.release>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
</plugin>
</plugins>
</pluginManagement>
</build>
配置pom.xml中的build:
build描述了如何来编译打包项目,具体打包工作通过build中的plugin来完成。