Home | History | Annotate | Download | only in 5
      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>5</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-5</connection>
     69     <developerConnection>scm:svn:https://svn.apache.org/repos/asf/commons/proper/commons-parent/tags/commons-parent-5</developerConnection>
     70     <url>http://svn.apache.org/viewvc/commons/proper/commons-parent/tags/commons-parent-5</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://www.mail-archive.com/commits@commons.apache.org/</otherArchive>
     82       </otherArchives>
     83     </mailingList>
     84     <mailingList>
     85       <name>Commons Dev List</name>
     86       <subscribe>dev-subscribe (a] commons.apache.org</subscribe>
     87       <unsubscribe>dev-unsubscribe (a] commons.apache.org</unsubscribe>
     88       <post>dev (a] commons.apache.org</post>
     89       <archive>http://mail-archives.apache.org/mod_mbox/commons-dev/</archive>
     90       <otherArchives>
     91         <otherArchive>http://www.mail-archive.com/dev@commons.apache.org/</otherArchive>
     92         <otherArchive>http://www.nabble.com/Commons---Dev-f317.html</otherArchive>
     93       </otherArchives>
     94     </mailingList>
     95     <mailingList>
     96       <name>Commons Issues List</name>
     97       <subscribe>issues-subscribe (a] commons.apache.org</subscribe>
     98       <unsubscribe>issues-unsubscribe (a] commons.apache.org</unsubscribe>
     99       <post>issues (a] commons.apache.org</post>
    100       <archive>http://mail-archives.apache.org/mod_mbox/commons-issues/</archive>
    101       <otherArchives>
    102         <otherArchive>http://www.mail-archive.com/issues@commons.apache.org/</otherArchive>
    103         <otherArchive>http://www.nabble.com/Commons---Issues-f25499.html</otherArchive>
    104       </otherArchives>
    105     </mailingList>
    106     <mailingList>
    107       <name>Commons User List</name>
    108       <subscribe>user-subscribe (a] commons.apache.org</subscribe>
    109       <unsubscribe>user-unsubscribe (a] commons.apache.org</unsubscribe>
    110       <post>user (a] commons.apache.org</post>
    111       <archive>http://mail-archives.apache.org/mod_mbox/commons-user/</archive>
    112       <otherArchives>
    113         <otherArchive>http://www.mail-archive.com/user@commons.apache.org/</otherArchive>
    114         <otherArchive>http://www.nabble.com/Commons---User-f319.html</otherArchive>
    115       </otherArchives>
    116     </mailingList>
    117   </mailingLists>
    118   <build>
    119     <pluginManagement>
    120       <plugins>
    121         <plugin>
    122           <groupId>org.apache.maven.plugins</groupId>
    123           <artifactId>maven-gpg-plugin</artifactId>
    124           <version>1.0-alpha-3</version>
    125         </plugin>
    126         <plugin>
    127           <groupId>org.apache.maven.plugins</groupId>
    128           <artifactId>maven-jar-plugin</artifactId>
    129           <version>2.1</version>
    130         </plugin>
    131         <plugin>
    132           <groupId>org.apache.maven.plugins</groupId>
    133           <artifactId>maven-remote-resources-plugin</artifactId>
    134           <version>1.0-alpha-6</version>
    135         </plugin>
    136         <plugin>
    137           <groupId>org.apache.maven.plugins</groupId>
    138           <artifactId>maven-source-plugin</artifactId>
    139           <version>2.0.4</version>
    140         </plugin>
    141         <plugin>
    142           <groupId>org.apache.maven.plugins</groupId>
    143           <artifactId>maven-surefire-plugin</artifactId>
    144           <version>2.3</version>
    145         </plugin>
    146         <plugin>
    147           <groupId>org.apache.maven.plugins</groupId>
    148           <artifactId>maven-assembly-plugin</artifactId>
    149           <version>2.2-beta-1</version>
    150         </plugin>
    151       </plugins>
    152     </pluginManagement>
    153     <plugins>
    154       <!-- TODO: later use toolchain support to do compilation on an external JDK 1.3+ compiler -->
    155       <plugin>
    156         <artifactId>maven-compiler-plugin</artifactId>
    157         <configuration>
    158           <source>${maven.compile.source}</source>
    159           <target>${maven.compile.target}</target>
    160         </configuration>
    161       </plugin>
    162       <plugin>
    163         <artifactId>maven-jar-plugin</artifactId>
    164         <configuration>
    165           <archive>
    166             <manifestEntries>
    167               <Specification-Title>${project.name}</Specification-Title>
    168               <Specification-Version>${project.version}</Specification-Version>
    169               <Specification-Vendor>${project.organization.name}</Specification-Vendor>
    170               <Implementation-Title>${project.name}</Implementation-Title>
    171               <Implementation-Version>${project.version}</Implementation-Version>
    172               <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
    173               <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
    174               <X-Compile-Source-JDK>${maven.compile.source}</X-Compile-Source-JDK>
    175               <X-Compile-Target-JDK>${maven.compile.source}</X-Compile-Target-JDK>
    176             </manifestEntries>
    177           </archive>
    178         </configuration>
    179       </plugin>
    180       <plugin>
    181         <artifactId>maven-idea-plugin</artifactId>
    182         <configuration>
    183           <jdkLevel>${maven.compile.source}</jdkLevel>
    184         </configuration>
    185       </plugin>
    186     </plugins>
    187   </build>
    188 
    189   <reporting>
    190     <plugins>
    191       <plugin>
    192         <groupId>org.apache.maven.plugins</groupId>
    193         <artifactId>maven-javadoc-plugin</artifactId>
    194         <version>2.2</version>
    195         <configuration> 
    196           <aggregate>true</aggregate>
    197         </configuration> 
    198       </plugin>
    199       <plugin>
    200         <groupId>org.apache.maven.plugins</groupId>
    201         <artifactId>maven-jxr-plugin</artifactId>
    202         <version>2.1</version>
    203         <configuration> 
    204           <aggregate>true</aggregate>
    205         </configuration> 
    206       </plugin>
    207       <plugin>
    208         <groupId>org.apache.maven.plugins</groupId>
    209         <artifactId>maven-site-plugin</artifactId>
    210         <configuration>
    211           <!-- Exclude the navigation file for Maven 1 sites
    212                and the changes file used by the changes-plugin,
    213                as they interfere with the site generation. -->
    214           <moduleExcludes>
    215             <xdoc>navigation.xml,changes.xml</xdoc>
    216           </moduleExcludes>
    217         </configuration>
    218       </plugin>
    219       <plugin>
    220         <groupId>org.apache.maven.plugins</groupId>
    221         <artifactId>maven-surefire-report-plugin</artifactId>
    222         <version>2.3</version>
    223       </plugin>
    224       <plugin>
    225         <groupId>org.codehaus.mojo</groupId>
    226         <artifactId>jdepend-maven-plugin</artifactId>
    227         <version>2.0-beta-1</version>
    228       </plugin>
    229       <plugin>
    230         <groupId>org.codehaus.mojo</groupId>
    231         <artifactId>rat-maven-plugin</artifactId>
    232         <version>1.0-alpha-3</version>
    233       </plugin>
    234     </plugins>
    235   </reporting>
    236 
    237   <profiles>
    238     <profile>
    239       <id>ci</id>
    240       <distributionManagement>
    241         <repository>
    242           <id>apache.snapshots</id>
    243           <name>Apache Development Snapshot Repository</name>
    244           <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
    245         </repository>
    246         <snapshotRepository>
    247           <id>apache.snapshots</id>
    248           <name>Apache Development Snapshot Repository</name>
    249           <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
    250         </snapshotRepository>
    251       </distributionManagement>
    252     </profile>
    253 
    254     <profile>
    255       <id>release</id>
    256       <distributionManagement>
    257         <repository>
    258           <id>apache.releases</id>
    259           <name>Apache Release Distribution Repository</name>
    260           <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
    261         </repository>
    262       </distributionManagement>
    263       <build>
    264         <plugins>
    265           <!-- We want to sign the artifact, the POM, and all attached artifacts -->
    266           <plugin>
    267             <artifactId>maven-gpg-plugin</artifactId>
    268             <configuration>
    269               <passphrase>${gpg.passphrase}</passphrase>
    270             </configuration>
    271             <executions>
    272               <execution>
    273                 <id>sign-artifacts</id>
    274                 <phase>verify</phase>
    275                 <goals>
    276                   <goal>sign</goal>
    277                 </goals>
    278               </execution>
    279             </executions>
    280           </plugin>
    281           <plugin>
    282             <artifactId>maven-source-plugin</artifactId>
    283             <executions>
    284               <execution>
    285                 <id>create-source-jar</id>
    286                 <goals>
    287                   <goal>jar</goal>
    288                 </goals>
    289               </execution>
    290             </executions>
    291           </plugin>
    292           <plugin>
    293             <artifactId>maven-javadoc-plugin</artifactId>
    294             <executions>
    295               <execution>
    296                 <id>create-javadoc-jar</id>
    297                 <goals>
    298                   <goal>jar</goal>
    299                 </goals>
    300                 <configuration>
    301                   <source>${maven.compile.source}</source>
    302                 </configuration>
    303               </execution>
    304             </executions>
    305           </plugin>
    306           <!-- We want to package license resources into the JARs -->
    307           <plugin>
    308             <groupId>org.apache.maven.plugins</groupId>
    309             <artifactId>maven-remote-resources-plugin</artifactId>
    310             <executions>
    311               <execution>
    312                 <goals>
    313                   <goal>process</goal>
    314                 </goals>
    315                 <configuration>
    316                   <resourceBundles>
    317                     <resourceBundle>org.apache:apache-jar-resource-bundle:1.3</resourceBundle>
    318                   </resourceBundles>
    319                 </configuration>
    320               </execution>
    321             </executions>
    322           </plugin>
    323         </plugins>
    324       </build>
    325     </profile>
    326 
    327     <profile>
    328       <id>rc</id>
    329       <distributionManagement>
    330         <repository>
    331           <id>apache.snapshots</id>
    332           <name>Apache Development Snapshot Repository</name>
    333           <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
    334         </repository>
    335         <snapshotRepository>
    336           <id>apache.snapshots</id>
    337           <name>Apache Development Snapshot Repository</name>
    338           <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
    339         </snapshotRepository>
    340       </distributionManagement>
    341       <build>
    342         <plugins>
    343           <!-- We want to sign the artifact, the POM, and all attached artifacts -->
    344           <plugin>
    345             <artifactId>maven-gpg-plugin</artifactId>
    346             <configuration>
    347               <passphrase>${gpg.passphrase}</passphrase>
    348             </configuration>
    349             <executions>
    350               <execution>
    351                 <id>sign-artifacts</id>
    352                 <phase>verify</phase>
    353                 <goals>
    354                   <goal>sign</goal>
    355                 </goals>
    356               </execution>
    357             </executions>
    358           </plugin>
    359           <plugin>
    360             <artifactId>maven-source-plugin</artifactId>
    361             <executions>
    362               <execution>
    363                 <id>create-source-jar</id>
    364                 <goals>
    365                   <goal>jar</goal>
    366                 </goals>
    367               </execution>
    368             </executions>
    369           </plugin>
    370           <plugin>
    371             <artifactId>maven-javadoc-plugin</artifactId>
    372             <executions>
    373               <execution>
    374                 <id>create-javadoc-jar</id>
    375                 <goals>
    376                   <goal>jar</goal>
    377                 </goals>
    378                 <configuration>
    379                   <source>${maven.compile.source}</source>
    380                 </configuration>
    381               </execution>
    382             </executions>
    383           </plugin>
    384           <!-- We want to package license resources into the JARs -->
    385           <plugin>
    386             <groupId>org.apache.maven.plugins</groupId>
    387             <artifactId>maven-remote-resources-plugin</artifactId>
    388             <executions>
    389               <execution>
    390                 <goals>
    391                   <goal>process</goal>
    392                 </goals>
    393                 <configuration>
    394                   <resourceBundles>
    395                     <resourceBundle>org.apache:apache-jar-resource-bundle:1.3</resourceBundle>
    396                   </resourceBundles>
    397                 </configuration>
    398               </execution>
    399             </executions>
    400           </plugin>
    401         </plugins>
    402       </build>
    403     </profile>
    404   </profiles>
    405 
    406   <properties>
    407 
    408     <!-- Default configuration for compiler source and target JVM -->
    409     <maven.compile.source>1.3</maven.compile.source>
    410     <maven.compile.target>1.3</maven.compile.target>
    411 
    412     <!--
    413       Make the deployment protocol pluggable. This allows to switch to
    414       other protocols like scpexe, which some users prefer over scp.
    415     -->
    416     <commons.deployment.protocol>scp</commons.deployment.protocol>
    417 
    418   </properties>
    419 
    420 </project>
    421