Home | History | Annotate | Download | only in 3
      1 <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">
      2   <modelVersion>4.0.0</modelVersion>
      3   <parent>
      4     <groupId>org.apache</groupId>
      5      <artifactId>apache</artifactId>
      6      <version>4</version>
      7   </parent>
      8   <groupId>org.apache.commons</groupId>
      9   <artifactId>commons-parent</artifactId>
     10   <packaging>pom</packaging>
     11   <!-- TODO: dummy version. In Maven 2.1, this will be auto-versioned being a generic parent -->
     12   <version>3</version>
     13   <name>Jakarta Commons</name>
     14   <url>http://jakarta.apache.org/commons/</url>
     15   <inceptionYear>2001</inceptionYear>
     16 
     17   <!-- We don't use Continuum yet -->
     18   <!--
     19   <ciManagement>
     20     <system>continuum</system>
     21     <notifiers>
     22       <notifier>
     23         <configuration>
     24           <address>commons-dev (a] jakarta.apache.org</address>
     25         </configuration>
     26       </notifier>
     27     </notifiers>
     28   </ciManagement>
     29   -->
     30 
     31   <distributionManagement>
     32 
     33    <!--
     34      This POM's parent POM (the Apache root POM) provides repositories. Unfortunately,
     35      this allows for accidental deployments. So we disable them here by providing
     36      a dummy repository. Use "mvn -Prc deploy" (Apache snapshot repository) or
     37      "mvn -Prelease deploy" (Apache release repository), if you really want to deploy.
     38    -->
     39    <repository>
     40      <id>dummy</id>
     41      <name>Dummy to avoid accidental deploys</name>
     42      <url />
     43    </repository>
     44   </distributionManagement>
     45 
     46   <!--
     47     This section *must* be overwritten by subprojects. It is only to allow
     48     a release of the commons-parent POM.
     49   -->
     50   <scm>
     51     <connection>scm:svn:http://svn.apache.org/repos/asf/jakarta/commons/proper/commons-parent/tags/commons-parent-3</connection>
     52     <developerConnection>scm:svn:https://svn.apache.org/repos/asf/jakarta/commons/proper/commons-parent/tags/commons-parent-3</developerConnection>
     53     <url>http://svn.apache.org/viewvc/jakarta/commons/proper/commons-parent/tags/commons-parent-3</url>
     54   </scm>
     55 
     56   <mailingLists>
     57     <mailingList>
     58       <name>Commons Dev List</name>
     59       <subscribe>commons-dev-subscribe (a] jakarta.apache.org</subscribe>
     60       <unsubscribe>commons-dev-unsubscribe (a] jakarta.apache.org</unsubscribe>
     61       <post>commons-dev (a] jakarta.apache.org</post>
     62       <archive>http://mail-archives.apache.org/mod_mbox/jakarta-commons-dev</archive>
     63       <otherArchives>
     64         <otherArchive>http://www.mail-archive.com/commons-dev@jakarta.apache.org/</otherArchive>
     65         <otherArchive>http://www.nabble.com/Commons---Dev-f317.html</otherArchive>
     66       </otherArchives>
     67     </mailingList>
     68     <mailingList>
     69       <name>Commons User List</name>
     70       <subscribe>commons-user-subscribe (a] jakarta.apache.org</subscribe>
     71       <unsubscribe>commons-user-unsubscribe (a] jakarta.apache.org</unsubscribe>
     72       <post>commons-user (a] jakarta.apache.org</post>
     73       <archive>http://mail-archives.apache.org/mod_mbox/jakarta-commons-user</archive>
     74       <otherArchives>
     75         <otherArchive>http://www.mail-archive.com/commons-user@jakarta.apache.org/</otherArchive>
     76         <otherArchive>http://www.nabble.com/Commons---User-f319.html</otherArchive>
     77       </otherArchives>
     78     </mailingList>
     79   </mailingLists>
     80   <build>
     81     <resources>
     82       <resource>
     83         <directory>${basedir}</directory>
     84         <targetPath>META-INF</targetPath>
     85         <includes>
     86           <include>NOTICE.txt</include>
     87           <include>LICENSE.txt</include>
     88         </includes>
     89       </resource>
     90     </resources>
     91     <pluginManagement>
     92       <plugins>
     93         <plugin>
     94           <groupId>org.apache.maven.plugins</groupId>
     95           <artifactId>maven-gpg-plugin</artifactId>
     96           <version>1.0-alpha-3</version>
     97         </plugin>
     98         <plugin>
     99           <groupId>org.apache.maven.plugins</groupId>
    100           <artifactId>maven-jar-plugin</artifactId>
    101           <version>2.1</version>
    102         </plugin>
    103         <plugin>
    104           <groupId>org.apache.maven.plugins</groupId>
    105           <artifactId>maven-source-plugin</artifactId>
    106           <version>2.0.3</version>
    107         </plugin>
    108       </plugins>
    109     </pluginManagement>
    110     <plugins>
    111       <!-- TODO: later use toolchain support to do compilation on an external JDK 1.3+ compiler -->
    112       <plugin>
    113         <artifactId>maven-compiler-plugin</artifactId>
    114         <configuration>
    115           <source>${maven.compile.source}</source>
    116           <target>${maven.compile.target}</target>
    117         </configuration>
    118       </plugin>
    119       <plugin>
    120         <artifactId>maven-jar-plugin</artifactId>
    121         <configuration>
    122           <archive>
    123             <manifestEntries>
    124               <Specification-Title>${project.name}</Specification-Title>
    125               <Specification-Version>${project.version}</Specification-Version>
    126               <Specification-Vendor>${project.organization.name}</Specification-Vendor>
    127               <Implementation-Title>${project.name}</Implementation-Title>
    128               <Implementation-Version>${project.version}</Implementation-Version>
    129               <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
    130               <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
    131               <X-Compile-Source-JDK>${maven.compile.source}</X-Compile-Source-JDK>
    132               <X-Compile-Target-JDK>${maven.compile.source}</X-Compile-Target-JDK>
    133             </manifestEntries>
    134           </archive>
    135         </configuration>
    136       </plugin>
    137       <plugin>
    138         <artifactId>maven-idea-plugin</artifactId>
    139         <configuration>
    140           <jdkLevel>${maven.compile.source}</jdkLevel>
    141         </configuration>
    142       </plugin>
    143     </plugins>
    144   </build>
    145 
    146   <reporting>
    147     <plugins>
    148       <plugin>
    149         <groupId>org.apache.maven.plugins</groupId>
    150         <artifactId>maven-javadoc-plugin</artifactId>
    151         <version>2.2</version>
    152         <configuration> 
    153           <aggregate>true</aggregate>
    154         </configuration> 
    155       </plugin>
    156       <plugin>
    157         <groupId>org.apache.maven.plugins</groupId>
    158         <artifactId>maven-jxr-plugin</artifactId>
    159         <version>2.1</version>
    160         <configuration> 
    161           <aggregate>true</aggregate>
    162         </configuration> 
    163       </plugin>
    164       <plugin>
    165         <groupId>org.apache.maven.plugins</groupId>
    166         <artifactId>maven-site-plugin</artifactId>
    167         <configuration>
    168           <!-- Exclude the navigation file for Maven 1 sites
    169                and the changes file used by the changes-plugin,
    170                as they interfere with the site generation. -->
    171           <moduleExcludes>
    172             <xdoc>navigation.xml,changes.xml</xdoc>
    173           </moduleExcludes>
    174         </configuration>
    175       </plugin>
    176       <plugin>
    177         <groupId>org.apache.maven.plugins</groupId>
    178         <artifactId>maven-surefire-report-plugin</artifactId>
    179       </plugin>
    180       <plugin>
    181         <groupId>org.codehaus.mojo</groupId>
    182         <artifactId>jdepend-maven-plugin</artifactId>
    183         <version>2.0-beta-1</version>
    184       </plugin>
    185       <plugin>
    186         <groupId>org.codehaus.mojo</groupId>
    187         <artifactId>rat-maven-plugin</artifactId>
    188       </plugin>
    189     </plugins>
    190   </reporting>
    191 
    192   <profiles>
    193     <profile>
    194       <id>release</id>
    195 
    196       <distributionManagement>
    197         <repository>
    198           <id>apache.releases</id>
    199           <name>Apache Release Distribution Repository</name>
    200           <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
    201         </repository>
    202       </distributionManagement>
    203       <build>
    204         <plugins>
    205           <!-- We want to sign the artifact, the POM, and all attached artifacts -->
    206           <plugin>
    207             <artifactId>maven-gpg-plugin</artifactId>
    208             <configuration>
    209               <passphrase>${gpg.passphrase}</passphrase>
    210             </configuration>
    211             <executions>
    212               <execution>
    213                 <id>sign-artifacts</id>
    214                 <phase>verify</phase>
    215                 <goals>
    216                   <goal>sign</goal>
    217                 </goals>
    218               </execution>
    219             </executions>
    220           </plugin>
    221           <plugin>
    222             <artifactId>maven-source-plugin</artifactId>
    223             <executions>
    224               <execution>
    225                 <id>create-source-jar</id>
    226                 <goals>
    227                   <goal>jar</goal>
    228                 </goals>
    229               </execution>
    230             </executions>
    231           </plugin>
    232           <plugin>
    233             <artifactId>maven-javadoc-plugin</artifactId>
    234             <executions>
    235               <execution>
    236                 <id>create-javadoc-jar</id>
    237                 <goals>
    238                   <goal>jar</goal>
    239                 </goals>
    240                 <configuration>
    241                   <source>${maven.compile.source}</source>
    242                 </configuration>
    243               </execution>
    244             </executions>
    245           </plugin>
    246         </plugins>
    247       </build>
    248     </profile>
    249     <profile>
    250       <id>rc</id>
    251       <distributionManagement>
    252         <repository>
    253           <id>apache.snapshots</id>
    254           <name>Apache Development Snapshot Repository</name>
    255           <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
    256         </repository>
    257         <snapshotRepository>
    258           <id>apache.snapshots</id>
    259           <name>Apache Development Snapshot Repository</name>
    260           <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
    261         </snapshotRepository>
    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         </plugins>
    307       </build>
    308     </profile>
    309   </profiles>
    310 
    311   <properties>
    312 
    313     <!-- Default configuration for compiler source and target JVM -->
    314     <maven.compile.source>1.3</maven.compile.source>
    315     <maven.compile.target>1.3</maven.compile.target>
    316 
    317     <!--
    318       Make the deployment protocol pluggable. This allows to switch to
    319       other protocols like scpexe, which some users prefer over scp.
    320     -->
    321     <commons.deployment.protocol>scp</commons.deployment.protocol>
    322 
    323   </properties>
    324 
    325 </project>