Home | History | Annotate | Download | only in lib
      1 <?xml version="1.0" encoding="ISO-8859-1"?>
      2 <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">
      3   <modelVersion>4.0.0</modelVersion>
      4   <groupId>org.objenesis</groupId>
      5   <artifactId>objenesis-parent</artifactId>
      6   <version>2.1</version>
      7   <packaging>pom</packaging>
      8 
      9   <name>Objenesis parent project</name>
     10   <description>A library for instantiating Java objects</description>
     11   <url>http://objenesis.org</url>
     12   <inceptionYear>2006</inceptionYear>
     13 
     14   <modules>
     15     <module>main</module>
     16     <module>tck</module>
     17   </modules>
     18 
     19   <licenses>
     20     <license>
     21       <name>Apache 2</name>
     22       <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
     23       <distribution>repo</distribution>
     24     </license>
     25   </licenses>
     26 
     27   <!-- Used for the copyright -->
     28   <organization>
     29     <name>Joe Walnes, Henri Tremblay, Leonardo Mesquita</name>
     30   </organization>
     31 
     32   <scm>
     33     <url>https://github.com/easymock/easymock</url>
     34     <developerConnection>scm:git:git (a] github.com:easymock/objenesis.git</developerConnection>
     35     <connection>scm:git:git://github.com/easymock/objenesis.git</connection>
     36     <tag>2.1</tag>
     37   </scm>
     38 
     39   <developers>
     40     <developer>
     41       <id>joe</id>
     42       <name>Joe Walnes</name>
     43       <timezone>0</timezone>
     44     </developer>
     45     <developer>
     46       <id>henri</id>
     47       <name>Henri Tremblay</name>
     48       <timezone>+1</timezone>
     49     </developer>
     50     <developer>
     51       <id>leonardo</id>
     52       <name>Leonardo Mesquita</name>
     53       <timezone>-5</timezone>
     54     </developer>
     55   </developers>
     56 
     57   <properties>
     58     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     59   </properties>
     60 
     61   <dependencies>
     62     <dependency>
     63       <groupId>junit</groupId>
     64       <artifactId>junit</artifactId>
     65       <version>4.11</version>
     66       <scope>test</scope>
     67     </dependency>
     68   </dependencies>
     69 
     70   <build>
     71     <sourceDirectory>${basedir}/src</sourceDirectory>
     72     <resources>
     73       <resource>
     74         <!-- Test resources are in the test source directory -->
     75         <directory>${basedir}/src</directory>
     76         <excludes>
     77           <!-- Everything except java files is considered to be a resource -->
     78           <exclude>**/*.java</exclude>
     79         </excludes>
     80       </resource>
     81     </resources>
     82     <testSourceDirectory>${basedir}/test</testSourceDirectory>
     83     <testResources>
     84       <testResource>
     85         <!-- Test resources are in the test source directory -->
     86         <directory>${basedir}/test</directory>
     87         <excludes>
     88           <!-- Everything except java files is considered to be a resource -->
     89           <exclude>**/*.java</exclude>
     90         </excludes>
     91       </testResource>
     92     </testResources>
     93     <plugins>
     94       <plugin>
     95         <artifactId>maven-compiler-plugin</artifactId>
     96         <version>3.1</version>
     97         <configuration>
     98           <source>1.5</source>
     99           <target>1.5</target>
    100         </configuration>
    101       </plugin>
    102       <plugin>
    103         <artifactId>maven-jar-plugin</artifactId>
    104         <configuration>
    105           <useDefaultManifestFile>true</useDefaultManifestFile>
    106           <archive>
    107             <index>true</index>
    108             <addMavenDescriptor>false</addMavenDescriptor>
    109             <manifest>
    110               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
    111               <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
    112             </manifest>
    113           </archive>
    114         </configuration>
    115       </plugin>
    116       <plugin>
    117         <artifactId>maven-release-plugin</artifactId>
    118         <configuration>
    119           <!-- Required to let release with the benchmark project using snapshots. I can't put it directly in the benchmark project. It doesn't work -->
    120           <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
    121           <!-- Renamed because the default would be objenesis-parent-x.y -->
    122           <tagNameFormat>@{project.version}</tagNameFormat>
    123           <!-- Quite annoying in case of error that the changes were pushed -->
    124           <pushChanges>false</pushChanges>
    125         </configuration>
    126       </plugin>
    127       <plugin>
    128         <artifactId>maven-site-plugin</artifactId>
    129         <inherited>false</inherited>
    130         <configuration>
    131           <siteDirectory>${project.basedir}/website</siteDirectory>
    132         </configuration>
    133       </plugin>
    134       <plugin>
    135         <groupId>com.mycila.maven-license-plugin</groupId>
    136         <artifactId>maven-license-plugin</artifactId>
    137         <inherited>false</inherited>
    138         <configuration>
    139           <skip>true</skip>
    140         </configuration>
    141       </plugin>
    142     </plugins>
    143     <extensions>
    144       <extension>
    145         <groupId>org.apache.maven.wagon</groupId>
    146         <artifactId>wagon-ssh-external</artifactId>
    147         <version>1.0-beta-5</version>
    148       </extension>
    149     </extensions>
    150     <pluginManagement>
    151       <plugins>
    152         <plugin>
    153           <artifactId>maven-jar-plugin</artifactId>
    154           <version>2.4</version>
    155         </plugin>
    156         <plugin>
    157           <artifactId>maven-surefire-plugin</artifactId>
    158           <version>2.13</version>
    159         </plugin>
    160         <plugin>
    161           <artifactId>maven-clean-plugin</artifactId>
    162           <version>2.4.1</version>
    163         </plugin>
    164         <plugin>
    165           <artifactId>maven-deploy-plugin</artifactId>
    166           <version>2.7</version>
    167         </plugin>
    168         <plugin>
    169           <artifactId>maven-gpg-plugin</artifactId>
    170           <version>1.4</version>
    171           <executions>
    172             <execution>
    173               <id>sign-artifacts</id>
    174               <phase>verify</phase>
    175               <goals>
    176                 <goal>sign</goal>
    177               </goals>
    178             </execution>
    179           </executions>
    180         </plugin>
    181         <plugin>
    182           <artifactId>maven-install-plugin</artifactId>
    183           <version>2.4</version>
    184         </plugin>
    185         <plugin>
    186           <artifactId>maven-release-plugin</artifactId>
    187           <version>2.4.1</version>
    188         </plugin>
    189         <plugin>
    190           <artifactId>maven-resources-plugin</artifactId>
    191           <version>2.6</version>
    192         </plugin>
    193         <plugin>
    194           <artifactId>maven-site-plugin</artifactId>
    195           <version>3.0</version>
    196         </plugin>
    197         <plugin>
    198           <artifactId>maven-source-plugin</artifactId>
    199           <version>2.1.2</version>
    200         </plugin>
    201         <plugin>
    202           <artifactId>maven-javadoc-plugin</artifactId>
    203           <version>2.8</version>
    204         </plugin>
    205         <plugin>
    206           <groupId>org.apache.felix</groupId>
    207           <artifactId>maven-bundle-plugin</artifactId>
    208           <version>2.3.5</version>
    209           <executions>
    210             <execution>
    211               <id>bundle-manifest</id>
    212               <phase>prepare-package</phase>
    213               <goals>
    214                 <goal>manifest</goal>
    215               </goals>
    216             </execution>
    217           </executions>
    218         </plugin>
    219         <plugin>
    220           <groupId>com.keyboardsamurais.maven</groupId>
    221           <artifactId>maven-timestamp-plugin</artifactId>
    222           <version>1.0</version>
    223           <executions>
    224             <execution>
    225               <id>year</id>
    226               <goals>
    227                 <goal>create</goal>
    228               </goals>
    229               <configuration>
    230                 <propertyName>year</propertyName>
    231                 <timestampPattern>yyyy</timestampPattern>
    232               </configuration>
    233             </execution>
    234           </executions>
    235         </plugin>
    236         <plugin>
    237           <groupId>com.mycila.maven-license-plugin</groupId>
    238           <artifactId>maven-license-plugin</artifactId>
    239           <version>1.10.b1</version>
    240           <configuration>
    241             <header>${project.basedir}/../header.txt</header>
    242             <strictCheck>true</strictCheck>
    243             <excludes>
    244               <!-- Not being ignore by default -->
    245               <exclude>.gitignore</exclude>
    246               <!-- Nothing is copyrighted in target -->
    247               <exclude>target/**</exclude>
    248               <!-- copyrights to BEA -->
    249               <exclude>src/org/objenesis/instantiator/jrockit/*.java</exclude>
    250               <!-- generated pom by maven-shade-plugin -->
    251               <exclude>dependency-reduced-pom.xml</exclude>
    252               <!-- generated by Equinox during OSGi test -->
    253               <exclude>eclipse_config/**</exclude>
    254               <!-- no header wanted on the website -->
    255               <exclude>website/**</exclude>
    256               <!-- no header on batch files wanted -->
    257               <exclude>**/*.bat</exclude>
    258               <!-- generated Android files -->
    259               <exclude>project.properties</exclude>
    260               <exclude>lint.xml</exclude>
    261               <exclude>gen/**</exclude>
    262               <exclude>bin/**</exclude>
    263             </excludes>
    264             <properties>
    265               <inceptionYear>${project.inceptionYear}</inceptionYear>
    266               <year>${year}</year>
    267             </properties>
    268           </configuration>
    269           <executions>
    270             <execution>
    271               <id>check</id>
    272               <goals>
    273                 <goal>check</goal>
    274               </goals>
    275             </execution>
    276           </executions>
    277         </plugin>
    278         <plugin>
    279           <groupId>org.apache.maven.plugins</groupId>
    280           <artifactId>maven-remote-resources-plugin</artifactId>
    281           <version>1.2.1</version>
    282           <executions>
    283             <execution>
    284               <goals>
    285                 <goal>process</goal>
    286               </goals>
    287               <configuration>
    288                 <resourceBundles>
    289                   <resourceBundle>org.apache:apache-jar-resource-bundle:1.3</resourceBundle>
    290                 </resourceBundles>
    291               </configuration>
    292             </execution>
    293           </executions>
    294         </plugin>
    295         <plugin>
    296           <groupId>org.codehaus.mojo</groupId>
    297           <artifactId>findbugs-maven-plugin</artifactId>
    298           <version>2.5.2</version>
    299           <configuration>
    300             <xmlOutput>true</xmlOutput>
    301             <omitVisitors>Naming</omitVisitors>
    302           </configuration>
    303         </plugin>
    304         <!--This plugin configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
    305         <plugin>
    306           <groupId>org.eclipse.m2e</groupId>
    307           <artifactId>lifecycle-mapping</artifactId>
    308           <version>1.0.0</version>
    309           <configuration>
    310             <lifecycleMappingMetadata>
    311               <pluginExecutions>
    312                 <pluginExecution>
    313                   <pluginExecutionFilter>
    314                     <groupId>com.keyboardsamurais.maven</groupId>
    315                     <artifactId>maven-timestamp-plugin</artifactId>
    316                     <versionRange>[1.0,)</versionRange>
    317                     <goals>
    318                       <goal>create</goal>
    319                     </goals>
    320                   </pluginExecutionFilter>
    321                   <action>
    322                     <execute />
    323                   </action>
    324                 </pluginExecution>
    325                 <pluginExecution>
    326                   <pluginExecutionFilter>
    327                     <groupId>org.apache.maven.plugins</groupId>
    328                     <artifactId>maven-remote-resources-plugin</artifactId>
    329                     <versionRange>[1.0,)</versionRange>
    330                     <goals>
    331                       <goal>process</goal>
    332                     </goals>
    333                   </pluginExecutionFilter>
    334                   <action>
    335                     <execute />
    336                   </action>
    337                 </pluginExecution>
    338                 <pluginExecution>
    339                   <pluginExecutionFilter>
    340                     <groupId>org.codehaus.mojo</groupId>
    341                     <artifactId>findbugs-maven-plugin</artifactId>
    342                     <versionRange>[2.5.2,)</versionRange>
    343                     <goals>
    344                       <goal>findbugs</goal>
    345                     </goals>
    346                   </pluginExecutionFilter>
    347                   <action>
    348                     <ignore />
    349                   </action>
    350                 </pluginExecution>
    351               </pluginExecutions>
    352             </lifecycleMappingMetadata>
    353           </configuration>
    354         </plugin>
    355       </plugins>
    356     </pluginManagement>
    357   </build>
    358   <reporting>
    359     <plugins>
    360       <plugin>
    361         <groupId>org.apache.maven.plugins</groupId>
    362         <artifactId>maven-project-info-reports-plugin</artifactId>
    363         <version>2.6</version>
    364       </plugin>
    365       <plugin>
    366         <groupId>org.codehaus.mojo</groupId>
    367         <artifactId>findbugs-maven-plugin</artifactId>
    368         <version>2.5.2</version>
    369       </plugin>
    370       <plugin>
    371         <groupId>org.apache.maven.plugins</groupId>
    372         <artifactId>maven-pmd-plugin</artifactId>
    373         <version>3.0.1</version>
    374         <configuration>
    375           <targetJdk>1.5</targetJdk>
    376         </configuration>
    377       </plugin>
    378     </plugins>
    379   </reporting>
    380 
    381   <distributionManagement>
    382     <repository>
    383       <id>sonatype-nexus-staging</id>
    384       <name>Nexus Release Repository</name>
    385       <url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    386     </repository>
    387     <snapshotRepository>
    388       <id>sonatype-nexus-snapshots</id>
    389       <name>Sonatype Nexus Snapshots</name>
    390       <url>http://oss.sonatype.org/content/repositories/snapshots</url>
    391     </snapshotRepository>
    392   </distributionManagement>
    393 
    394   <profiles>
    395     <profile>
    396       <!-- Activate to generate javadoc, sources jars and run findbugs -->
    397       <id>full</id>
    398       <build>
    399         <plugins>
    400           <plugin>
    401             <groupId>org.apache.maven.plugins</groupId>
    402             <artifactId>maven-source-plugin</artifactId>
    403             <executions>
    404               <execution>
    405                 <id>attach-sources</id>
    406                 <goals>
    407                   <goal>jar</goal>
    408                 </goals>
    409               </execution>
    410             </executions>
    411           </plugin>
    412           <plugin>
    413             <groupId>org.apache.maven.plugins</groupId>
    414             <artifactId>maven-javadoc-plugin</artifactId>
    415             <executions>
    416               <execution>
    417                 <id>attach-javadocs</id>
    418                 <goals>
    419                   <goal>jar</goal>
    420                 </goals>
    421               </execution>
    422             </executions>
    423           </plugin>
    424           <plugin>
    425             <groupId>org.codehaus.mojo</groupId>
    426             <artifactId>findbugs-maven-plugin</artifactId>
    427             <executions>
    428               <execution>
    429                 <id>findbugs</id>
    430                 <goals>
    431                   <goal>findbugs</goal>
    432                 </goals>
    433               </execution>
    434             </executions>
    435           </plugin>
    436         </plugins>
    437       </build>
    438     </profile>
    439     <profile>
    440       <!-- Activate to update the license -->
    441       <id>license</id>
    442       <build>
    443         <pluginManagement>
    444           <plugins>
    445             <plugin>
    446               <groupId>com.mycila.maven-license-plugin</groupId>
    447               <artifactId>maven-license-plugin</artifactId>
    448               <executions>
    449                 <execution>
    450                   <id>format</id>
    451                   <phase>generate-sources</phase>
    452                   <goals>
    453                     <goal>format</goal>
    454                   </goals>
    455                 </execution>
    456               </executions>
    457             </plugin>
    458           </plugins>
    459         </pluginManagement>
    460       </build>
    461     </profile>
    462     <profile>
    463       <!-- Activate to generate the website -->
    464       <id>website</id>
    465       <modules>
    466         <module>website</module>
    467       </modules>
    468     </profile>
    469     <profile>
    470       <!-- Activate to execute the tck on Android -->
    471       <id>android</id>
    472       <modules>
    473         <module>tck-android</module>
    474       </modules>
    475     </profile>
    476     <profile>
    477       <!-- Activate to run the benchmark -->
    478       <id>benchmark</id>
    479       <modules>
    480         <module>benchmark</module>
    481       </modules>
    482     </profile>
    483     <profile>
    484       <!-- Activate to create a complete release -->
    485       <id>release</id>
    486       <build>
    487         <plugins>
    488           <plugin>
    489             <artifactId>maven-gpg-plugin</artifactId>
    490           </plugin>
    491         </plugins>
    492       </build>
    493     </profile>
    494   </profiles>
    495 </project>
    496