Home | History | Annotate | Download | only in 7
      1 <?xml version="1.0" encoding="ISO-8859-1"?>
      2 <!--
      3 
      4    Licensed to the Apache Software Foundation (ASF) under one or more
      5    contributor license agreements.  See the NOTICE file distributed with
      6    this work for additional information regarding copyright ownership.
      7    The ASF licenses this file to You under the Apache License, Version 2.0
      8    (the "License"); you may not use this file except in compliance with
      9    the License.  You may obtain a copy of the License at
     10 
     11        http://www.apache.org/licenses/LICENSE-2.0
     12 
     13    Unless required by applicable law or agreed to in writing, software
     14    distributed under the License is distributed on an "AS IS" BASIS,
     15    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16    See the License for the specific language governing permissions and
     17    limitations under the License.
     18 
     19 -->
     20 <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/maven-v4_0_0.xsd">
     21   <modelVersion>4.0.0</modelVersion>
     22   <parent>
     23     <groupId>org.apache</groupId>
     24     <artifactId>apache</artifactId>
     25     <version>4</version>
     26   </parent>
     27   <groupId>org.apache.commons</groupId>
     28   <artifactId>commons-parent</artifactId>
     29   <packaging>pom</packaging>
     30   <!-- TODO: dummy version. In Maven 2.1, this will be auto-versioned being a generic parent -->
     31   <version>7</version>
     32   <name>Commons Parent</name>
     33   <url>http://commons.apache.org/</url>
     34   <inceptionYear>2001</inceptionYear>
     35 
     36   <ciManagement>
     37     <system>continuum</system>
     38     <url>http://vmbuild.apache.org/continuum/</url>
     39     <notifiers>
     40       <notifier>
     41         <type>mail</type>
     42         <configuration>
     43           <address>dev (a] commons.apache.org</address>
     44         </configuration>
     45       </notifier>
     46     </notifiers>
     47   </ciManagement>
     48 
     49   <distributionManagement>
     50     <!--
     51       This POM's parent POM (the Apache root POM) provides repositories. Unfortunately,
     52       this allows for accidental deployments. So we disable them here by providing
     53       a dummy repository. Use "mvn -Prc deploy" (Apache snapshot repository) or
     54       "mvn -Prelease deploy" (Apache release repository), if you really want to deploy.
     55     -->
     56     <repository>
     57       <id>dummy</id>
     58       <name>Dummy to avoid accidental deploys</name>
     59       <url />
     60     </repository>
     61   </distributionManagement>
     62 
     63   <!--
     64     This section *must* be overwritten by subprojects. It is only to allow
     65     a release of the commons-parent POM.
     66   -->
     67   <scm>
     68     <connection>scm:svn:http://svn.apache.org/repos/asf/commons/proper/commons-parent/tags/commons-parent-7</connection>
     69     <developerConnection>scm:svn:https://svn.apache.org/repos/asf/commons/proper/commons-parent/tags/commons-parent-7</developerConnection>
     70     <url>http://svn.apache.org/viewvc/commons/proper/commons-parent/tags/commons-parent-7</url>
     71   </scm>
     72 
     73   <mailingLists>
     74     <mailingList>
     75       <name>Commons Commits List</name>
     76       <subscribe>commits-subscribe (a] commons.apache.org</subscribe>
     77       <unsubscribe>commits-unsubscribe (a] commons.apache.org</unsubscribe>
     78       <post>commits (a] commons.apache.org</post>
     79       <archive>http://mail-archives.apache.org/mod_mbox/commons-commits/</archive>
     80       <otherArchives>
     81         <otherArchive>http://commons.markmail.org/search/list:org.apache.commons.commits</otherArchive>
     82         <otherArchive>http://www.mail-archive.com/commits@commons.apache.org/</otherArchive>
     83       </otherArchives>
     84     </mailingList>
     85     <mailingList>
     86       <name>Commons Dev List</name>
     87       <subscribe>dev-subscribe (a] commons.apache.org</subscribe>
     88       <unsubscribe>dev-unsubscribe (a] commons.apache.org</unsubscribe>
     89       <post>dev (a] commons.apache.org</post>
     90       <archive>http://mail-archives.apache.org/mod_mbox/commons-dev/</archive>
     91       <otherArchives>
     92         <otherArchive>http://commons.markmail.org/search/list:org.apache.commons.dev</otherArchive>
     93         <otherArchive>http://www.nabble.com/Commons---Dev-f317.html</otherArchive>
     94         <otherArchive>http://www.mail-archive.com/dev@commons.apache.org/</otherArchive>
     95         <otherArchive>http://news.gmane.org/gmane.comp.jakarta.commons.devel</otherArchive>
     96       </otherArchives>
     97     </mailingList>
     98     <mailingList>
     99       <name>Commons Issues List</name>
    100       <subscribe>issues-subscribe (a] commons.apache.org</subscribe>
    101       <unsubscribe>issues-unsubscribe (a] commons.apache.org</unsubscribe>
    102       <post>issues (a] commons.apache.org</post>
    103       <archive>http://mail-archives.apache.org/mod_mbox/commons-issues/</archive>
    104       <otherArchives>
    105         <otherArchive>http://commons.markmail.org/search/list:org.apache.commons.issues</otherArchive>
    106         <otherArchive>http://www.nabble.com/Commons---Issues-f25499.html</otherArchive>
    107         <otherArchive>http://www.mail-archive.com/issues@commons.apache.org/</otherArchive>
    108       </otherArchives>
    109     </mailingList>
    110     <mailingList>
    111       <name>Commons User List</name>
    112       <subscribe>user-subscribe (a] commons.apache.org</subscribe>
    113       <unsubscribe>user-unsubscribe (a] commons.apache.org</unsubscribe>
    114       <post>user (a] commons.apache.org</post>
    115       <archive>http://mail-archives.apache.org/mod_mbox/commons-user/</archive>
    116       <otherArchives>
    117         <otherArchive>http://commons.markmail.org/search/list:org.apache.commons.user</otherArchive>
    118         <otherArchive>http://www.nabble.com/Commons---User-f319.html</otherArchive>
    119         <otherArchive>http://www.mail-archive.com/user@commons.apache.org/</otherArchive>
    120         <otherArchive>http://news.gmane.org/gmane.comp.jakarta.commons.user</otherArchive>
    121       </otherArchives>
    122     </mailingList>
    123   </mailingLists>
    124   <build>
    125     <resources>
    126       <resource>
    127         <directory>${basedir}</directory>
    128         <targetPath>META-INF</targetPath>
    129         <includes>
    130           <include>NOTICE.txt</include>
    131           <include>LICENSE.txt</include>
    132         </includes>
    133       </resource>
    134     </resources>
    135     <pluginManagement>
    136       <plugins>
    137         <plugin>
    138           <groupId>org.apache.maven.plugins</groupId>
    139           <artifactId>maven-gpg-plugin</artifactId>
    140           <version>1.0-alpha-3</version>
    141         </plugin>
    142         <plugin>
    143           <groupId>org.apache.maven.plugins</groupId>
    144           <artifactId>maven-jar-plugin</artifactId>
    145           <version>2.1</version>
    146         </plugin>
    147         <plugin>
    148           <groupId>org.apache.maven.plugins</groupId>
    149           <artifactId>maven-source-plugin</artifactId>
    150           <version>2.0.4</version>
    151         </plugin>
    152         <plugin>
    153           <groupId>org.apache.maven.plugins</groupId>
    154           <artifactId>maven-surefire-plugin</artifactId>
    155           <version>2.3</version>
    156         </plugin>
    157         <plugin>
    158           <groupId>org.apache.maven.plugins</groupId>
    159           <artifactId>maven-assembly-plugin</artifactId>
    160           <version>2.2-beta-1</version>
    161         </plugin>
    162         <plugin>
    163           <groupId>org.apache.maven.plugins</groupId>
    164           <artifactId>maven-release-plugin</artifactId>
    165           <version>2.0-beta-7</version>
    166         </plugin>
    167         <plugin>
    168           <groupId>org.apache.maven.plugins</groupId>
    169           <artifactId>maven-javadoc-plugin</artifactId>
    170           <version>2.3</version>
    171         </plugin>
    172         <plugin>
    173           <groupId>org.apache.maven.plugins</groupId>
    174           <artifactId>maven-antrun-plugin</artifactId>
    175           <version>1.1</version>
    176         </plugin>
    177       </plugins>
    178     </pluginManagement>
    179     <plugins>
    180       <!-- TODO: later use toolchain support to do compilation on an external JDK 1.3+ compiler -->
    181       <plugin>
    182         <artifactId>maven-compiler-plugin</artifactId>
    183         <configuration>
    184           <source>${maven.compile.source}</source>
    185           <target>${maven.compile.target}</target>
    186         </configuration>
    187       </plugin>
    188       <plugin>
    189         <artifactId>maven-jar-plugin</artifactId>
    190         <configuration>
    191           <archive>
    192             <manifestEntries>
    193               <Specification-Title>${project.name}</Specification-Title>
    194               <Specification-Version>${project.version}</Specification-Version>
    195               <Specification-Vendor>${project.organization.name}</Specification-Vendor>
    196               <Implementation-Title>${project.name}</Implementation-Title>
    197               <Implementation-Version>${project.version}</Implementation-Version>
    198               <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
    199               <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
    200               <X-Compile-Source-JDK>${maven.compile.source}</X-Compile-Source-JDK>
    201               <X-Compile-Target-JDK>${maven.compile.target}</X-Compile-Target-JDK>
    202             </manifestEntries>
    203           </archive>
    204         </configuration>
    205       </plugin>
    206       <plugin>
    207         <artifactId>maven-idea-plugin</artifactId>
    208         <configuration>
    209           <jdkLevel>${maven.compile.source}</jdkLevel>
    210         </configuration>
    211       </plugin>
    212       <plugin>
    213         <!--
    214           - Copy LICENSE.txt and NOTICE.txt so that they are included
    215           - in the -javadoc jar file for the component.
    216           -->
    217         <groupId>org.apache.maven.plugins</groupId>
    218         <artifactId>maven-antrun-plugin</artifactId>
    219         <executions>
    220           <execution>
    221             <id>javadoc.resources</id>
    222             <phase>generate-sources</phase>
    223             <goals>
    224               <goal>run</goal>
    225             </goals>
    226             <configuration>
    227               <tasks>
    228                 <copy todir="${project.build.directory}/apidocs/META-INF">
    229                   <fileset dir="${basedir}">
    230                     <include name="LICENSE.txt" />
    231                     <include name="NOTICE.txt" />
    232                   </fileset>
    233                 </copy>
    234               </tasks>
    235             </configuration>
    236           </execution>
    237         </executions>
    238       </plugin>
    239     </plugins>
    240   </build>
    241 
    242   <reporting>
    243     <plugins>
    244       <plugin>
    245         <groupId>org.apache.maven.plugins</groupId>
    246         <artifactId>maven-javadoc-plugin</artifactId>
    247         <version>2.3</version>
    248         <configuration> 
    249           <aggregate>true</aggregate>
    250           <source>${maven.compile.source}</source>
    251         </configuration> 
    252       </plugin>
    253       <plugin>
    254         <groupId>org.apache.maven.plugins</groupId>
    255         <artifactId>maven-jxr-plugin</artifactId>
    256         <version>2.1</version>
    257         <configuration> 
    258           <aggregate>true</aggregate>
    259         </configuration> 
    260       </plugin>
    261       <plugin>
    262         <groupId>org.apache.maven.plugins</groupId>
    263         <artifactId>maven-site-plugin</artifactId>
    264         <version>2.0-beta-6</version>
    265         <configuration>
    266           <!-- Exclude the navigation file for Maven 1 sites
    267                and the changes file used by the changes-plugin,
    268                as they interfere with the site generation. -->
    269           <moduleExcludes>
    270             <xdoc>navigation.xml,changes.xml</xdoc>
    271           </moduleExcludes>
    272         </configuration>
    273       </plugin>
    274       <plugin>
    275         <groupId>org.apache.maven.plugins</groupId>
    276         <artifactId>maven-surefire-report-plugin</artifactId>
    277         <version>2.3</version>
    278       </plugin>
    279       <plugin>
    280         <groupId>org.codehaus.mojo</groupId>
    281         <artifactId>jdepend-maven-plugin</artifactId>
    282         <version>2.0-beta-1</version>
    283       </plugin>
    284       <plugin>
    285         <groupId>org.codehaus.mojo</groupId>
    286         <artifactId>rat-maven-plugin</artifactId>
    287         <version>1.0-alpha-3</version>
    288       </plugin>
    289     </plugins>
    290   </reporting>
    291 
    292   <profiles>
    293     <profile>
    294       <id>ci</id>
    295       <distributionManagement>
    296         <repository>
    297           <id>apache.snapshots</id>
    298           <name>Apache Development Snapshot Repository</name>
    299           <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
    300         </repository>
    301         <snapshotRepository>
    302           <id>apache.snapshots</id>
    303           <name>Apache Development Snapshot Repository</name>
    304           <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
    305         </snapshotRepository>
    306       </distributionManagement>
    307     </profile>
    308 
    309     <profile>
    310       <id>release</id>
    311       <distributionManagement>
    312         <repository>
    313           <id>apache.releases</id>
    314           <name>Apache Release Distribution Repository</name>
    315           <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
    316         </repository>
    317       </distributionManagement>
    318       <build>
    319         <plugins>
    320           <!-- We want to sign the artifact, the POM, and all attached artifacts -->
    321           <plugin>
    322             <artifactId>maven-gpg-plugin</artifactId>
    323             <configuration>
    324               <passphrase>${gpg.passphrase}</passphrase>
    325             </configuration>
    326             <executions>
    327               <execution>
    328                 <id>sign-artifacts</id>
    329                 <phase>verify</phase>
    330                 <goals>
    331                   <goal>sign</goal>
    332                 </goals>
    333               </execution>
    334             </executions>
    335           </plugin>
    336           <plugin>
    337             <artifactId>maven-source-plugin</artifactId>
    338             <executions>
    339               <execution>
    340                 <id>create-source-jar</id>
    341                 <goals>
    342                   <goal>jar</goal>
    343                 </goals>
    344               </execution>
    345             </executions>
    346           </plugin>
    347           <plugin>
    348             <artifactId>maven-release-plugin</artifactId>
    349             <configuration>
    350               <!-- Pass these arguments to the deploy plugin. -->
    351               <arguments>-Prelease</arguments>
    352             </configuration>
    353           </plugin>
    354           <plugin>
    355             <artifactId>maven-javadoc-plugin</artifactId>
    356             <executions>
    357               <execution>
    358                 <id>create-javadoc-jar</id>
    359                 <goals>
    360                   <goal>jar</goal>
    361                 </goals>
    362                 <configuration>
    363                   <source>${maven.compile.source}</source>
    364                 </configuration>
    365               </execution>
    366             </executions>
    367           </plugin>
    368         </plugins>
    369       </build>
    370     </profile>
    371 
    372     <profile>
    373       <id>rc</id>
    374       <distributionManagement>
    375         <repository>
    376           <id>apache.snapshots</id>
    377           <name>Apache Development Snapshot Repository</name>
    378           <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
    379         </repository>
    380         <snapshotRepository>
    381           <id>apache.snapshots</id>
    382           <name>Apache Development Snapshot Repository</name>
    383           <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
    384         </snapshotRepository>
    385       </distributionManagement>
    386       <build>
    387         <plugins>
    388           <!-- We want to sign the artifact, the POM, and all attached artifacts -->
    389           <plugin>
    390             <artifactId>maven-gpg-plugin</artifactId>
    391             <configuration>
    392               <passphrase>${gpg.passphrase}</passphrase>
    393             </configuration>
    394             <executions>
    395               <execution>
    396                 <id>sign-artifacts</id>
    397                 <phase>verify</phase>
    398                 <goals>
    399                   <goal>sign</goal>
    400                 </goals>
    401               </execution>
    402             </executions>
    403           </plugin>
    404           <plugin>
    405             <artifactId>maven-source-plugin</artifactId>
    406             <executions>
    407               <execution>
    408                 <id>create-source-jar</id>
    409                 <goals>
    410                   <goal>jar</goal>
    411                 </goals>
    412               </execution>
    413             </executions>
    414           </plugin>
    415           <plugin>
    416             <artifactId>maven-release-plugin</artifactId>
    417             <configuration>
    418               <!-- Pass these arguments to the deploy plugin. -->
    419               <arguments>-Prc</arguments>
    420             </configuration>
    421           </plugin>
    422           <plugin>
    423             <artifactId>maven-javadoc-plugin</artifactId>
    424             <executions>
    425               <execution>
    426                 <id>create-javadoc-jar</id>
    427                 <goals>
    428                   <goal>jar</goal>
    429                 </goals>
    430                 <configuration>
    431                   <source>${maven.compile.source}</source>
    432                 </configuration>
    433               </execution>
    434             </executions>
    435           </plugin>
    436         </plugins>
    437       </build>
    438     </profile>
    439   </profiles>
    440 
    441   <properties>
    442 
    443     <!-- Default configuration for compiler source and target JVM -->
    444     <maven.compile.source>1.3</maven.compile.source>
    445     <maven.compile.target>1.3</maven.compile.target>
    446 
    447     <!--
    448       Make the deployment protocol pluggable. This allows to switch to
    449       other protocols like scpexe, which some users prefer over scp.
    450     -->
    451     <commons.deployment.protocol>scp</commons.deployment.protocol>
    452 
    453   </properties>
    454 
    455 </project>
    456