The following are commonly used pom configurable elements and their meanings
<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"> <modelVersion>4.0.0</modelVersion> <!-- parent module --> <parent> <groupId>com.jiangnan.shop</groupId> <artifactId>shop-parent</artifactId> <version>0.0.1-SNAPSHOT</version> <relativePath>../shop-parent/pom.xml</relativePath> </parent> <!-- GAV --> <groupId>com.xxx.helloworld</groupId> <artifactId>helloworld-parent</artifactId> <version>1.0.0</version> <!-- Packaging method--> <packaging>pom</packaging> <!-- Project friendly name --> <name>mediator-parent</name> <!-- project address--> <url>http://www.chinacloud.net/index.html</url> <!-- Module aggregation --> <modules> <module>../mediator-dataobjects</module> </modules> <!-- short description--> <description>hello world test project</description> <!-- Prerequisites in the project build environment--> <prerequisites> <maven>No prerequisites for now</maven> </prerequisites> <!-- warehouse--> <repositories> <repository> <id>nexus</id> <name>Team Nexus Repository</name> <url>http://10.80.6.34:8081/nexus/content/groups/public</url> </repository> </repositories> <!-- Plugin repository --> <pluginRepositories> <pluginRepository> <id>nexus</id> <name>Team Nexus Repository</name> <url>http://10.80.6.34:8081/nexus/content/groups/public</url> </pluginRepository> </pluginRepositories> <!-- Problem Management System--> <issueManagement> <system></system> <url></url> </issueManagement> <!-- mailing list --> <mailingLists> <mailingList> <name>zhangsan</name> <post>[email protected]</post> </mailingList> </mailingLists> <!-- Project developer list --> <developers> <developer> <id>zhangsan</id> <name>zhangsan</name> <email>[email protected]</email> <roles> <role>senior software engineer</role> </roles> <timezone>8</timezone> </developer> </developers> <!-- scm information--> <scm> <connection>scm:svn://10.176.120.50/helloworld</connection> <developerConnection>scm:svn://10.176.120.50/helloworld</developerConnection> <tag>scm:svn://10.176.120.50/helloworld</tag> <url></url> </scm> <!-- Custom Properties--> <properties> <junit.version>4.7</junit.version> </properties> <!-- Dependency Management--> <dependencyManagement> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> </dependencies> </dependencyManagement> <!-- custom build --> <build> <!-- plugins--> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <source>${jdk.version}</source> <target>${jdk.version}</target> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> </plugins> </build> <!-- Distribution management, indicating the location to be published after executing mvn deploy--> <distributionManagement> <!-- Release repository --> <repository> <id>xxx-release</id> <url>http://192.168.1.210:8080/nexus-2.0/content/repositories/xxx-release</url> </repository> <!-- Snapshot version repository --> <snapshotRepository> <id>xxx-snapshots</id> <url>http://192.168.1.210:8080/nexus-2.0/content/repositories/xxx-snapshots</url> </snapshotRepository> </distributionManagement> </project>