maven pom.xml文件介绍

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!-- pom版本号 -->

<modelVersion>4.0.0</modelVersion>

<groupId>反写公司网址+项目名</groupId>
<artifactId>项目名+模块名</artifactId>

 <!-- 第一个0表示大版本号,第二个0表示分支版本号,第三个0表示小版本号 -->

  <!--snapshot快照,alpha内部测试,beta公测,Release稳定,GA正式发布 -->
<version>0.0.1-SNAPSHOT</version>
  <!-- 打包方式,默认jar -->
<packaging>war</packaging>

  <!-- 项目描述名-->

<name>Medical</name> 

  <!-- 项目项目地址-->

<url>http://maven.apache.org</url>

<!-- 项目描述-->

<description></description>

<!-- 开发人员列表-->

<developers></developers> 

<licenses></licenses> 

<organization></organization> 

<dependencies>

<dependency> 

<groupId>junit</groupId>

<artifactId>junit</artifactId>

<version>3.8.1</version>

<scope>test</scope>

 <!-- 设置依赖是否可选,默认false-->

<optional></optional>

<!-- 排除依赖传递列表-->

<exclusions>

 <exclusion></exclusion>

</exclusions>

</dependency>

</dependencies> 

 <!-- 排除以来传递列表-->

  <dependencyManagement>

<dependencies> 
  <dependency>
</dependency>

 </dependencies> 

</dependencyManagement>

<build> 

 <!-- 插件列表-->

<plugins>  

<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2</version>
<configuration>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
<executions>
<execution>
<id>Generate MyBatis Artifacts</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>

</pluagins>

</build>

<!-- --> 

<parent></parent> 

<modules>

 <module></module> 

</modules> 

原文地址:https://www.cnblogs.com/vincent4code/p/5749193.html