Home | History | Annotate | Download | only in 1.3
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      4   - OW2 Consortium
      5   - Copyright (C) 2007-2011 Bull S.A.S.
      6   - Contact: technology-coucil (a] ow2.org
      7   -
      8   - This library is free software; you can redistribute it and/or
      9   - modify it under the terms of the GNU Lesser General Public
     10   - License as published by the Free Software Foundation; either
     11   - version 2.1 of the License, or any later version.
     12   -
     13   - This library is distributed in the hope that it will be useful,
     14   - but WITHOUT ANY WARRANTY; without even the implied warranty of
     15   - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     16   - Lesser General Public License for more details.
     17   -
     18   - You should have received a copy of the GNU Lesser General Public
     19   - License along with this library; if not, write to the Free Software
     20   - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
     21   - USA
     22   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     23 -->
     24 <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">
     25   <modelVersion>4.0.0</modelVersion>
     26 
     27   <groupId>org.ow2</groupId>
     28   <artifactId>ow2</artifactId>
     29   <version>1.3</version>
     30   <packaging>pom</packaging>
     31 
     32   <name>OW2 Consortium</name>
     33   <description>
     34     The OW2 Consortium is an open source community committed to making available to everyone
     35     the best and most reliable middleware technology, including generic enterprise applications
     36     and cloud computing technologies. The mission of the OW2 Consortium is to
     37       i) develop open source code for middleware, generic enterprise applications and cloud computing and
     38       ii) to foster a vibrant community and business ecosystem.
     39   </description>
     40 
     41   <!-- License of this POM -->
     42   <licenses>
     43     <license>
     44       <name>The Apache Software License, Version 2.0</name>
     45       <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
     46       <distribution>repo</distribution>
     47     </license>
     48   </licenses>
     49 
     50   <!-- Consortium description -->
     51   <organization>
     52     <name>OW2 Consortium</name>
     53     <url>http://www.ow2.org</url>
     54   </organization>
     55 
     56   <!-- TODO Needs to be changed in the future
     57        with a reference to a page explaining how to do releases -->
     58   <url>http://www.ow2.org</url>
     59 
     60   <!-- Who worked on this project ? -->
     61   <developers>
     62     <developer>
     63       <id>sauthieg</id>
     64       <name>Guillaume Sauthier</name>
     65       <email>guillaume.sauthier (a] ow2.org</email>
     66     </developer>
     67   </developers>
     68 
     69   <properties>
     70     <!-- OW2 Logo can be referred using the '${organization.logo}' property -->
     71     <organization.logo>
     72       http://www.ow2.org/xwiki/bin/download/NewsEvents/MarketingResources/ow2_logo_small_transp.png
     73     </organization.logo>
     74     <!-- Avoid the annoying warning -->
     75     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     76 
     77     <!-- Use properties so they could be overridden if needed -->
     78     <ow2DistMgmtSnapshotsUrl>http://repository.ow2.org/nexus/content/repositories/snapshots</ow2DistMgmtSnapshotsUrl>
     79     <ow2DistMgmtReleasesUrl>http://repository.ow2.org/nexus/service/local/staging/deploy/maven2</ow2DistMgmtReleasesUrl>
     80   </properties>
     81 
     82   <!-- Source Code Management -->
     83   <scm>
     84     <connection>scm:git:git (a] gitorious.ow2.org:ow2/pom.git</connection>
     85     <developerConnection>scm:git:git (a] gitorious.ow2.org:ow2/pom.git</developerConnection>
     86     <url>http://gitorious.ow2.org/ow2/pom</url>
     87   </scm>
     88 
     89   <!-- Distribution -->
     90   <distributionManagement>
     91 
     92     <!-- Site omitted - each project must provide their own -->
     93 
     94     <!-- Release Repository (with staging):
     95          Refer to this server in your settings.xml using the 'ow2.release' ID -->
     96     <repository>
     97       <id>ow2.release</id>
     98       <name>OW2 Maven Releases Repository</name>
     99       <url>http://repository.ow2.org/nexus/service/local/staging/deploy/maven2</url>
    100     </repository>
    101 
    102     <!-- Snapshots Repository:
    103          Refer to this server in your settings.xml using the 'ow2.snapshot' ID -->
    104     <snapshotRepository>
    105       <id>ow2.snapshot</id>
    106       <name>OW2 Maven Snapshots Repository</name>
    107       <url>${ow2DistMgmtSnapshotsUrl}</url>
    108     </snapshotRepository>
    109   </distributionManagement>
    110 
    111   <!-- ============================================================================================
    112      - TODO Remove the snapshots repositories from the super pom
    113      - Explanation:
    114      -  http://www.sonatype.com/people/2010/03/why-external-repos-are-being-phased-out-of-central/
    115      ============================================================================================ -->
    116 
    117   <!-- Plugin Repositories -->
    118   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    119     - Used to search plugins, plugins dependencies and build extensions
    120     - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    121   <pluginRepositories>
    122 
    123     <!-- Only list the snapshot repository here since the
    124          main repository is synchronized to central -->
    125     <pluginRepository>
    126       <id>ow2-plugin-snapshot</id>
    127       <name>OW2 Snapshot Plugin Repository</name>
    128       <url>http://repository.ow2.org/nexus/content/repositories/snapshots</url>
    129       <releases>
    130         <enabled>false</enabled>
    131       </releases>
    132     </pluginRepository>
    133 
    134   </pluginRepositories>
    135 
    136   <!-- Repositories -->
    137   <repositories>
    138 
    139     <!-- Only list the snapshot repository here since the
    140          main repository is synchronized to central -->
    141     <repository>
    142       <id>ow2-snapshot</id>
    143       <name>OW2 Snapshot Repository</name>
    144       <url>http://repository.ow2.org/nexus/content/repositories/snapshots</url>
    145       <releases>
    146         <enabled>false</enabled>
    147       </releases>
    148     </repository>
    149   </repositories>
    150 
    151   <build>
    152     <plugins>
    153 
    154       <!-- Enforce Maven version usage: excludes some that are known with defects -->
    155       <plugin>
    156         <groupId>org.apache.maven.plugins</groupId>
    157         <artifactId>maven-enforcer-plugin</artifactId>
    158         <version>1.0-beta-1</version>
    159         <executions>
    160           <execution>
    161             <id>enforce-maven</id>
    162             <goals>
    163               <goal>enforce</goal>
    164             </goals>
    165             <configuration>
    166               <rules>
    167                 <requireMavenVersion>
    168                   <version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version>
    169                   <message>Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures and checksums respectively.</message>
    170                 </requireMavenVersion>
    171               </rules>
    172             </configuration>
    173           </execution>
    174         </executions>
    175       </plugin>
    176     </plugins>
    177 
    178     <pluginManagement>
    179       <plugins>
    180         <!-- Default configuration of the maven-release-plugin:
    181              * 'release' profile not used
    182              * use 'ow2-release' profile
    183            -->
    184         <plugin>
    185           <groupId>org.apache.maven.plugins</groupId>
    186           <artifactId>maven-release-plugin</artifactId>
    187           <version>2.1</version>
    188           <configuration>
    189             <mavenExecutorId>forked-path</mavenExecutorId>
    190 
    191             <!-- Do not use the default release profile, use our own instead -->
    192             <useReleaseProfile>false</useReleaseProfile>
    193 
    194             <!-- Our own release profile -->
    195             <arguments>-Pow2-release</arguments>
    196           </configuration>
    197         </plugin>
    198       </plugins>
    199     </pluginManagement>
    200 
    201   </build>
    202 
    203   <profiles>
    204     <profile>
    205 
    206       <id>ow2-release</id>
    207       <build>
    208         <plugins>
    209           <!-- - - - - - - - - - - - - - - - - - - - - -->
    210           <!--  Attach the sources to the project      -->
    211           <!-- - - - - - - - - - - - - - - - - - - - - -->
    212           <plugin>
    213             <groupId>org.apache.maven.plugins</groupId>
    214             <artifactId>maven-source-plugin</artifactId>
    215             <version>2.1.2</version>
    216 
    217             <executions>
    218               <execution>
    219                 <id>attach-sources</id>
    220                 <goals>
    221                   <goal>jar-no-fork</goal>
    222                 </goals>
    223               </execution>
    224             </executions>
    225 
    226           </plugin>
    227 
    228           <!-- - - - - - - - - - - - - - - - - - - - - -->
    229           <!--  Attach the javadoc to the project      -->
    230           <!-- - - - - - - - - - - - - - - - - - - - - -->
    231           <plugin>
    232             <groupId>org.apache.maven.plugins</groupId>
    233             <artifactId>maven-javadoc-plugin</artifactId>
    234             <version>2.7</version>
    235             <executions>
    236               <execution>
    237 
    238                 <id>attach-javadocs</id>
    239                 <goals>
    240                   <goal>jar</goal>
    241                 </goals>
    242               </execution>
    243             </executions>
    244           </plugin>
    245           <plugin>
    246 
    247             <!-- - - - - - - - - - - - - - - - - - - - - -->
    248             <!--  Sign all the artifacts                 -->
    249             <!-- - - - - - - - - - - - - - - - - - - - - -->
    250             <groupId>org.apache.maven.plugins</groupId>
    251             <artifactId>maven-gpg-plugin</artifactId>
    252             <version>1.1</version>
    253             <executions>
    254               <execution>
    255                 <id>sign-artifacts</id>
    256                 <phase>verify</phase>
    257 
    258                 <goals>
    259                   <goal>sign</goal>
    260                 </goals>
    261               </execution>
    262             </executions>
    263           </plugin>
    264         </plugins>
    265       </build>
    266 
    267     </profile>
    268   </profiles>
    269 
    270 
    271 </project>
    272 
    273