Maven配置文件全解析

 

<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">

        

         

         <parent>

                   

                   <groupId>COM-AH-SSHgroupId>

                   

                   <artifactId>artifactId>

                   

                   <version>version>

                   

                   <relativePath>relativePath>

         parent>  

        

         

         <modelVersion>4.0.0modelVersion>

         

         <groupId>groupId>

         

         <artifactId>artifactId>

         

         <version>version>

         

         <packaging>packaging>

         

         <name>name>

         

         <description>description>

         

         <url>url>

         

         <inceptionYear>inceptionYear>

         

         <organization>

                   

                   <name>name>

                   

                   <url>url>

         organization>

         

         <licenses>

                   

                   <license>

                            

                            <name>name>

                            

                            <url>url>

                            

                            <distribution>distribution>

                            

                            <comments>comments>

                   license>

         licenses>

         

         <developers>

                   <developer>

                            

                            <id>id>

                            

                            <name>name>

                            

                            <email>email>

                            

                            <url>url>

                            

                            <organization>organization>

                            

                            <organizationUrl>organizationUrl>

                            

                            <roles>

                                     

                                     <role>role>

                            roles>

                            

                            <timezone>timezone>

                            <properties>

                                     <key>valuekey>

                            properties>

                   developer>

         developers>

         

         <contributors>

                   <contributor>

                            

                            <name>name>

                            

                            <email>email>

                            

                            <url>url>

                            

                            <organization>organization>

                            

                            <organizationUrl>organizationUrl>

                            

                            <roles>

                                     

                                     <role>role>

                            roles>

                            

                            <timezone>timezone>

                            <properties>

                                     <key>valuekey>

                            <properties/>

                   contributor>

         contributors>

         

         <mailingLists>

                   

                   <mailingList>

                            

                            <name>name>

                            

                            <subscribe>subscribe>

                            

                            <unsubscribe>unsubscribe>

                            

                            <post>post>

                            

                            <archive>archive>

                            

                            <otherArchives>otherArchives>

                   mailingList>

         mailingLists>

         

         <prerequisites>

                   

                   <maven>2.0maven>

         prerequisites>

         

         <modules>

                   

                   <module>Commonmodule>

         modules>

         

         <scm>

                   

                   <connection>scm:svn:http://connection>

                   

                   <developerConnection>scm:svn:https://developerConnection>

                   

                   <tag>tag>

                   

                   <url>http://url>

         scm>

         

         <issueManagement>

                   

                   <system>system>

                   

                   <url>url>

         issueManagement>

         

         <ciManagement>

                   

                   <system>system>

                   

                   <url>url>

                   

                   <notifiers>

                            

                            <notifier>

                                     

                                     <type>type>

                                     

                                     <sendOnError>sendOnError>

                                     

                                     <sendOnFailure>sendOnFailure>

                                     

                                     <sendOnSuccess>sendOnSuccess>

                                     

                                     <sendOnWarning>sendOnWarning>

                                     

                                     <address>address>

                                     

                                     <configuration>

                                               

                                               <key>valuekey>

                                     <configuration/>

                            notifier>

                   notifiers>

         ciManagement>

         

         <distributionManagement>

                   

                   <repository>

                            

                            <uniqueVersion>uniqueVersion>

                            

                            <id>id>

                            

                            <name>name>

                            

                            <url>url>

                            

                            <layout>layout>

                   repository>

                   

                   <snapshotRepository>

                            

                            <uniqueVersion>uniqueVersion>

                            

                            <id>id>

                            

                            <name>name>

                            

                            <url>url>

                            

                            <layout>layout>

                   snapshotRepository>

                   

                   <site>

                            

                            <id>id>

                            

                            <name>name>

                            

                            <url>url>

                   site>

                   

                   <downloadUrl>downloadUrl>

                   

                   <relocation>

                            

                            <groupId>groupId>

                            

                            <artifactId>artifactId>

                            

                            <version>version>

                            

                            <message>message>

                   relocation>

                   

                   <status>status>

         distributionManagement>

         

         

         

         

         <dependencyManagement>

                   

                   <dependencies>

                            

                            <dependency>

                                     

                                     <groupId>groupId>

                                     

                                     <artifactId>artifactId>

                                     

                                     <version>version>

                                     

                                     <type>type>

                                     

                                     <classifier>classifier>

                                     

                                     <scope>scope>

                                     

                                     <systemPath>systemPath>

                                     

                                     <exclusions>

                                               

                                               <exclusion>

                                                        

                                                        <artifactId/>

                                                        

                                                        <groupId/>

                                               exclusion>

                                     exclusions>

                                     

                                     <optional>optional>

                            dependency>

                   dependencies>

         dependencyManagement>

         

         <dependencies>

                   <dependency>

                            

                            <groupId>groupId>

                            

                            <artifactId>artifactId>

                            

                            <version>version>

                            

                            <type>type>

                            

                            <classifier>classifier>

                            

                            <scope>scope>

                            

                            <systemPath>systemPath>

                            

                            <exclusions>

                                     

                                     <exclusion>

                                               

                                               <artifactId>artifactId>

                                               

                                               <groupId>groupId>

                                     exclusion>

                            exclusions>

                            

                            <optional>optional>

                   dependency>

         dependencies>

         

         <repositories>

                   <repository>

                            

                            <releases>

                                     

                                     <enabled>enabled>

                                     

                                     <updatePolicy>updatePolicy>

                                     

                                     <checksumPolicy>checksumPolicy>

                            releases>

                            

                            <snapshots>

                                     

                                     <enabled>enabled>

                                     

                                     <updatePolicy>updatePolicy>

                                     

                                     <checksumPolicy>checksumPolicy>

                            snapshots>

                            

                            <id>id>

                             -->

                            <name>name>

                            

                            <url>url>

                            

                            <layout>layout>

                   repository>

         repositories>

         

         <pluginRepositories>

                   <pluginRepository>

                            

                            <releases>

                                     

                                     <enabled>enabled>

                                     

                                     <updatePolicy>updatePolicy>

                                     

                                     <checksumPolicy>checksumPolicy>

                            releases>

                            

                            <snapshots>

                                     

                                     <enabled>enabled>

                                     

                                     <updatePolicy>updatePolicy>

                                     

                                     <checksumPolicy>checksumPolicy>

                            snapshots>

                            

                            <id>id>

                             -->

                            <name>name>

                            

                            <url>url>

                            

                            <layout>layout>

                   pluginRepository>

         pluginRepositories>

         

         

         

         <build>

                   

                   <sourceDirectory>srcsourceDirectory>

                   

                   <scriptSourceDirectory>scriptSourceDirectory>

                   

                   <testSourceDirectory>testSourceDirectory>

                   

                   <outputDirectory>outputDirectory>

                   

                   <testOutputDirectory/>

                   

                   <extensions>

                            <extension>

                                     

                                     <groupId/>

                                     

                                     <artifactId/>

                                     

                                     <version/>

                            extension>

                   extensions>

                   

                   <defaultGoal>defaultGoal>

                   

                   <resources>

                            <resource>

                                     

                                     <targetPath>targetPath>

                                     

                                     <filtering>filtering>

                                     

                                     <directory>directory>

                                     

                                     <includes>includes>

                                     

                                     <excludes>excludes>

                            resource>

                   resources>

                   

                   <testResources>

                            <testResource>

                                     

                                     <targetPath>targetPath>

                                     

                                     <filtering>filtering>

                                      

                                     <directory>directory>

                                     

                                     <includes>includes>

                                     

                                     <excludes>excludes>

                            testResource>

                   testResources>

                   

                   <directory>directory>

                   

                   <finalName>finalName>

                   

                   <filters>filters>

                   

                   

                   

                   <pluginManagement>

                            

                            <plugins>

                                     

                                     <plugin>

                                               

                                               <groupId>groupId>

                                               

                                               <artifactId>artifactId>

                                               

                                               <version>version>

                                               

                                               <executions>

                                                        <execution>

                                                                 

                                                                 <id>id>

                                                                 

                                                                 <phase>phase>

                                                                 

                                                                 <goals>goals>

                                                                 

                                                                 <inherited>inherited>

                                                                 

                                                                 <configuration>configuration>

                                                        execution>

                                               executions>

                                               

                                               <dependencies>

                                                        <dependency>

                                                                 

                                                                 <groupId>groupId>

                                                                 

                                                                 <artifactId>artifactId>

                                                                 

                                                                 <version>version>

                                                                 

                                                                 <type>type>

                                                                 

                                                                

                                                                 <classifier>classifier>

                                                                 

                                                                 <scope>scope>

                                                                 

                                                                 <systemPath>systemPath>

                                                                 

                                                                 <exclusions>

                                                                           

                                                                           <exclusion>

                                                                                    

                                                                                    <artifactId/>

                                                                                    

                                                                                    <groupId/>

                                                                          exclusion>

                                                                 exclusions>

                                                                 

                                                                 <optional>optional>

                                                        dependency>

                                               dependencies>

                                               

                                               <inherited>inherited>

                                               

                                               <configuration>configuration>

                                     plugin>

                            plugins>

                   pluginManagement>

                  

                   

                   <plugins>

                            

                            <plugin>

                                     

                                     <groupId>groupId>

                                     

                                     <artifactId>artifactId>

                                     

                                     <version>version>

                                     

                                     <executions>

                                               <execution>

                                                        

                                                        <id>id>

                                                        

                                                        <phase>phase>

                                                        

                                                        <goals>goals>

                                                        

                                                        <inherited>inherited>

                                                        

                                                        <configuration>configuration>

                                               execution>

                                     executions>

                                     

                                     <dependencies>

                                               <dependency>

                                                        

                                                        <groupId>groupId>

                                                        

                                                        <artifactId>artifactId>

                                                        

                                                        <version>version>

                                                        

                                                        <type>type>

                                                        

                                                        <classifier>classifier>

                                                        

                                                        <scope>scope>

                                                        

                                                        <systemPath>systemPath>

                                                        

                                                        <exclusions>

                                                                 

                                                                 <exclusion>

                                                                           

                                                                           <artifactId/>

                                                                           

                                                                           <groupId/>

                                                                 exclusion>

                                                        exclusions>

                                                        

                                                        <optional>optional>

                                               dependency>

                                     dependencies>

                                     

                                     <inherited>inherited>

                                     

                                     <configuration>configuration>

                            plugin>

                   plugins>

         build>

         

         <reporting>

                   

                   <excludeDefaults>excludeDefaults>

                   

                   <outputDirectory>outputDirectory>

                   <plugins>

                            <plugin>

                                     

                                     <groupId>groupId>

                                     

                                     <artifactId>artifactId>

                                     

                                     <version>version>

                                     

                                     

                                     <reportSets>

                                               <reportSet>

                                                        

                                                        <id>id>

                                                        

                                                        <reports>

                                                                 <report>javadocreport>

                                                        reports>

                                                        

                                                        <inherited>inherited>

                                                        

                                                        <configuration>configuration>

                                               reportSet>

                                     reportSets>

                                     

                                     <inherited/>

                                     

                                     <configuration>configuration>

                            plugin>

                   plugins>

         reporting>

                  

         

         

         

         

         

         

         

         

         <profiles>

                   <profile>

                            

                            <id>id>

                            

                            <activation>

                                     

                                     <activeByDefault>activeByDefault>

                                     

                                     <jdk>jdk>

                                     

                                     <os>

                                               

                                               <name>name>

                                               

                                               <family>family>

                                               

                                               <arch>arch>

                                               

                                               <version>version>

                                     os>

                                     

                                     <property>

                                               

                                               <name>name>

                                              

                                               <value>value>

                                     property>

                                     

                                     <file>

                                               

                                               <missing>missing>

                                               

                                               <exists>exists>

                                     file>

                            activation>

                           

                            

                            

                            

                            <build>

                            <defaultGoal/>

                            <resources>

                            <resource>

                            <targetPath/>

                            <filtering/>

                            <directory/>

                            <includes/>

                            <excludes/>

                            resource>

                            resources>

                            <testResources>

                            <testResource>

                            <targetPath/>

                            <filtering/>

                            <directory/>

                            <includes/>

                            <excludes/>

                            testResource>

                            testResources>

                            <directory/>

                            <finalName/>

                            <filters/>

                            <pluginManagement>

                            <plugins>

                            <plugin>

                            <groupId/>

                            <artifactId/>

                            <version/>

                            <extensions/>

                            <executions>

                            <execution>

                            <id/>

                            <phase/>

                            <goals/>

                            <inherited/>

                            <configuration/>

                            execution>

                            executions>

                            <dependencies>

                            <dependency>

                            <groupId/>

                            <artifactId/>

                            <version/>

                            <type/>

                            <classifier/>

                            <scope/>

                            <systemPath/>

                            <exclusions>

                            <exclusion>

                            <artifactId/>

                            <groupId/>

                            exclusion>

                            exclusions>

                            <optional/>

                            dependency>

                            dependencies>

                            <goals/>

                            <inherited/>

                            <configuration/>

                            plugin>

                            plugins>

                            pluginManagement>

                            <plugins>

                            <plugin>

                            <groupId/>

                            <artifactId/>

                            <version/>

                            <extensions/>

                            <executions>

                            <execution>

                            <id/>

                            <phase/>

                            <goals/>

                            <inherited/>

                            <configuration/>

                            execution>

                            executions>

                            <dependencies>

                            <dependency>

                            <groupId/>

                            <artifactId/>

                            <version/>

                            <type/>

                            <classifier/>

                            <scope/>

                            <systemPath/>

                            <exclusions>

                            <exclusion>

                            <artifactId/>

                            <groupId/>

                            exclusion>

                            exclusions>

                            <optional/>

                            dependency>

                            dependencies>

                            <goals/>

                            <inherited/>

                            <configuration/>

                            plugin>

                            plugins>

                            build>

                           

                            <modules/>

                           

                            <distributionManagement>

                            <repository>

                            <uniqueVersion/>

                            <releases>

                            <enabled/>

                            <updatePolicy/>

                            <checksumPolicy/>

                            releases>

                            <snapshots>

                            <enabled/>

                            <updatePolicy/>

                            <checksumPolicy/>

                            snapshots>

                            <id/>

                            <name/>

                            <url/>

                            <layout/>

                            repository>

                            <snapshotRepository>

                            <uniqueVersion/>

                            <releases>

                            <enabled/>

                            <updatePolicy/>

                            <checksumPolicy/>

                            releases>

                            <snapshots>

                            <enabled/>

                            <updatePolicy/>

                            <checksumPolicy/>

                            snapshots>

                            <id/>

                            <name/>

                            <url/>

                            <layout/>

                            snapshotRepository>

                            <site>

                            <id/>

                            <name/>

                            <url/>

                            site>

                            <downloadUrl/>

                            <relocation>

                            <groupId/>

                            <artifactId/>

                            <version/>

                            <message/>

                            relocation>

                            <status/>

                            distributionManagement>

                           

                            <properties>

                            <key>valuekey>

                            <properties/>

                           

                            <dependencyManagement>

                            <dependencies>

                            <dependency>

                            <groupId/>

                            <artifactId/>

                            <version/>

                            <type/>

                            <classifier/>

                            <scope/>

                            <systemPath/>

                            <exclusions>

                            <exclusion>

                            <artifactId/>

                            <groupId/>

                            exclusion>

                            exclusions>

                            <optional/>

                            dependency>

                            dependencies>

                            dependencyManagement>

                            <dependencies>

                            <dependency>

                            <groupId/>

                            <artifactId/>

                            <version/>

                            <type/>

                            <classifier/>

                            <scope/>

                            <systemPath/>

                            <exclusions>

                            <exclusion>

                            <artifactId/>

                            <groupId/>

                            exclusion>

                            exclusions>

                            <optional/>

                            dependency>

                            dependencies>

                           

                            <repositories>

                            <repository>

                            <releases>

                            <enabled/>

                            <updatePolicy/>

                            <checksumPolicy/>

                            releases>

                            <snapshots>

                            <enabled/>

                            <updatePolicy/>

                            <checksumPolicy/>

                            snapshots>

                            <id/>

                            <name/>

                            <url/>

                            <layout/>

                            repository>

                            repositories>

                            <pluginRepositories>

                            <pluginRepository>

                            <releases>

                            <enabled/>

                            <updatePolicy/>

                            <checksumPolicy/>

                            releases>

                            <snapshots>

                            <enabled/>

                            <updatePolicy/>

                            <checksumPolicy/>

                            snapshots>

                            <id/>

                            <name/>

                            <url/>

                            <layout/>

                            pluginRepository>

                            pluginRepositories>

                           

                            <reports/>

                            <reporting>

                            <excludeDefaults/>

                            <outputDirectory/>

                            <plugins>

                            <plugin>

                            <groupId/>

                            <artifactId/>

                            <version/>

                            <reportSets>

                            <reportSet>

                            <id/>

                            <reports/>

                            <inherited/>

                            <configuration/>

                            reportSet>

                            reportSets>

                            <inherited/>

                            <configuration/>

                            plugin>

                            plugins>

                            reporting>

                   profile>

         profiles>

project>

 

你可能感兴趣的:(Maven配置文件全解析)