maven的超級POM

          %maven_home%/lib/maven-2.0.9-uber.jar內org.apache.maven.project包下有個pom-4.0.0.xml,這個就是默認的POM!

            1<!--
            2Licensed to the Apache Software Foundation (ASF) under one
            3or more contributor license agreements.  See the NOTICE file
            4distributed with this work for additional information
            5regarding copyright ownership.  The ASF licenses this file
            6to you under the Apache License, Version 2.0 (the
            7"License"); you may not use this file except in compliance
            8with the License.  You may obtain a copy of the License at
            9
           10    http://www.apache.org/licenses/LICENSE-2.0
           11
           12Unless required by applicable law or agreed to in writing,
           13software distributed under the License is distributed on an
           14"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
           15KIND, either express or implied.  See the License for the
           16specific language governing permissions and limitations
           17under the License.
           18-->
           19
           20<!-- START SNIPPET: superpom -->
           21<project>
           22  <modelVersion>4.0.0</modelVersion>
           23  <name>Maven Default Project</name>
           24
           25  <repositories>
           26    <repository>
           27      <id>central</id>
           28      <name>Maven Repository Switchboard</name>
           29      <layout>default</layout>
           30      <url>http://repo1.maven.org/maven2</url>
           31      <snapshots>
           32        <enabled>false</enabled>
           33      </snapshots>
           34    </repository>
           35  </repositories>
           36
           37  <pluginRepositories>
           38    <pluginRepository>
           39      <id>central</id>
           40      <name>Maven Plugin Repository</name>
           41      <url>http://repo1.maven.org/maven2</url>
           42      <layout>default</layout>
           43      <snapshots>
           44        <enabled>false</enabled>
           45      </snapshots>
           46      <releases>
           47        <updatePolicy>never</updatePolicy>
           48      </releases>
           49    </pluginRepository>
           50  </pluginRepositories>
           51
           52  <build>
           53    <directory>target</directory>
           54    <outputDirectory>target/classes</outputDirectory>
           55    <finalName>${project.artifactId}-${project.version}</finalName>
           56    <testOutputDirectory>target/test-classes</testOutputDirectory>
           57    <sourceDirectory>src/main/java</sourceDirectory>
           58    <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
           59    <testSourceDirectory>src/test/java</testSourceDirectory>
           60    <resources>
           61      <resource>
           62        <directory>src/main/resources</directory>
           63      </resource>
           64    </resources>
           65    <testResources>
           66      <testResource>
           67        <directory>src/test/resources</directory>
           68      </testResource>
           69    </testResources>
           70    <pluginManagement>
           71       <plugins>
           72         <plugin>
           73           <artifactId>maven-antrun-plugin</artifactId>
           74           <version>1.1</version>
           75         </plugin>       
           76         <plugin>
           77           <artifactId>maven-assembly-plugin</artifactId>
           78           <version>2.2-beta-2</version>
           79         </plugin>
           80         <plugin>
           81           <artifactId>maven-clean-plugin</artifactId>
           82           <version>2.2</version>
           83         </plugin>
           84         <plugin>
           85           <artifactId>maven-compiler-plugin</artifactId>
           86           <version>2.0.2</version>
           87         </plugin>
           88         <plugin>
           89           <artifactId>maven-dependency-plugin</artifactId>
           90           <version>2.0</version>
           91         </plugin>
           92         <plugin>
           93           <artifactId>maven-deploy-plugin</artifactId>
           94           <version>2.3</version>
           95         </plugin>
           96         <plugin>
           97           <artifactId>maven-ear-plugin</artifactId>
           98           <version>2.3.1</version>
           99         </plugin>
          100         <plugin>
          101           <artifactId>maven-ejb-plugin</artifactId>
          102           <version>2.1</version>
          103         </plugin>
          104         <plugin>
          105           <artifactId>maven-install-plugin</artifactId>
          106           <version>2.2</version>
          107         </plugin>
          108         <plugin>
          109           <artifactId>maven-jar-plugin</artifactId>
          110           <version>2.2</version>
          111         </plugin>
          112         <plugin>
          113           <artifactId>maven-javadoc-plugin</artifactId>
          114           <version>2.4</version>
          115         </plugin>
          116         <plugin>
          117           <artifactId>maven-plugin-plugin</artifactId>
          118           <version>2.4.1</version>
          119         </plugin>
          120         <plugin>
          121           <artifactId>maven-rar-plugin</artifactId>
          122           <version>2.2</version>
          123         </plugin>
          124         <plugin>                
          125           <artifactId>maven-release-plugin</artifactId>
          126           <version>2.0-beta-7</version>
          127         </plugin>
          128         <plugin>                
          129           <artifactId>maven-resources-plugin</artifactId>
          130           <version>2.2</version>
          131         </plugin>
          132         <plugin>
          133           <artifactId>maven-site-plugin</artifactId>
          134           <version>2.0-beta-6</version>
          135         </plugin>
          136         <plugin>
          137           <artifactId>maven-source-plugin</artifactId>
          138           <version>2.0.4</version>
          139         </plugin>         
          140         <plugin>
          141            <artifactId>maven-surefire-plugin</artifactId>
          142            <version>2.4.2</version>
          143         </plugin>
          144         <plugin>
          145           <artifactId>maven-war-plugin</artifactId>
          146           <version>2.1-alpha-1</version>
          147         </plugin>
          148       </plugins>
          149     </pluginManagement>
          150  </build>
          151
          152  <reporting>
          153    <outputDirectory>target/site</outputDirectory>
          154  </reporting>
          155  <profiles>
          156    <profile>
          157      <id>release-profile</id>
          158
          159      <activation>
          160        <property>
          161          <name>performRelease</name>
          162          <value>true</value>
          163        </property>
          164      </activation>
          165
          166      <build>
          167        <plugins>
          168          <plugin>
          169            <inherited>true</inherited>
          170            <groupId>org.apache.maven.plugins</groupId>
          171            <artifactId>maven-source-plugin</artifactId>
          172            <executions>
          173              <execution>
          174                <id>attach-sources</id>
          175                <goals>
          176                  <goal>jar</goal>
          177                </goals>
          178              </execution>
          179            </executions>
          180          </plugin>
          181          <plugin>
          182            <inherited>true</inherited>
          183            <groupId>org.apache.maven.plugins</groupId>
          184            <artifactId>maven-javadoc-plugin</artifactId>
          185            <executions>
          186              <execution>
          187                <id>attach-javadocs</id>
          188                <goals>
          189                  <goal>jar</goal>
          190                </goals>
          191              </execution>
          192            </executions>
          193          </plugin>
          194          <plugin>
          195            <inherited>true</inherited>
          196            <groupId>org.apache.maven.plugins</groupId>
          197            <artifactId>maven-deploy-plugin</artifactId>
          198            <configuration>
          199              <updateReleaseInfo>true</updateReleaseInfo>
          200            </configuration>
          201          </plugin>
          202        </plugins>
          203      </build>
          204    </profile>
          205  </profiles>
          206
          207</project>
          208    <!-- END SNIPPET: superpom -->
          209

          posted on 2009-07-10 15:39 andy.kong 閱讀(1320) 評論(0)  編輯  收藏 所屬分類: maven

          公告

          師者,所以傳道授業解惑也!

          導航

          <2009年7月>
          2829301234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          統計

          常用鏈接

          留言簿

          隨筆分類

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 台东县| 宿迁市| 蓬莱市| 莱州市| 宜春市| 康平县| 确山县| 临夏县| 任丘市| 甘南县| 贺州市| 惠东县| 靖远县| 扶余县| 鸡西市| 琼中| 革吉县| 武胜县| 远安县| 寿宁县| 广平县| 河北省| 宣汉县| 肇源县| 大理市| 广昌县| 芷江| 凭祥市| 大洼县| 枣阳市| 日喀则市| 五大连池市| 沈阳市| 四会市| 花莲县| 集贤县| 德化县| 垦利县| 从化市| 慈利县| 阳新县|