Home | History | Annotate | Download | only in lib
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3   ~ Copyright (c) 2007-2011 Sonatype, Inc. All rights reserved.
      4   ~
      5   ~ This program is licensed to you under the Apache License Version 2.0,
      6   ~ and you may not use this file except in compliance with the Apache License Version 2.0.
      7   ~ You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
      8   ~
      9   ~ Unless required by applicable law or agreed to in writing,
     10   ~ software distributed under the Apache License Version 2.0 is distributed on an
     11   ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12   ~ See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
     13   -->
     14 <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/xsd/maven-4.0.0.xsd">
     15 	<modelVersion>4.0.0</modelVersion>
     16 
     17 	<groupId>org.sonatype.oss</groupId>
     18 	<artifactId>oss-parent</artifactId>
     19 	<version>7</version>
     20 	<packaging>pom</packaging>
     21 
     22 	<name>Sonatype OSS Parent</name>
     23 	<url>http://nexus.sonatype.org/oss-repository-hosting.html</url>
     24 	<description>Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/ </description>
     25 
     26 	<scm>
     27 		<connection>scm:svn:http://svn.sonatype.org/spice/tags/oss-parent-7</connection>
     28 		<developerConnection>scm:svn:https://svn.sonatype.org/spice/tags/oss-parent-7</developerConnection>
     29 		<url>http://svn.sonatype.org/spice/tags/oss-parent-7</url>
     30 	</scm>
     31 
     32 	<repositories>
     33 		<repository>
     34 			<id>sonatype-nexus-snapshots</id>
     35 			<name>Sonatype Nexus Snapshots</name>
     36 			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
     37 			<releases>
     38 				<enabled>false</enabled>
     39 			</releases>
     40 			<snapshots>
     41 				<enabled>true</enabled>
     42 			</snapshots>
     43 		</repository>
     44 	</repositories>
     45 
     46 
     47 	<distributionManagement>
     48 		<snapshotRepository>
     49 			<id>sonatype-nexus-snapshots</id>
     50 			<name>Sonatype Nexus Snapshots</name>
     51 			<url>${sonatypeOssDistMgmtSnapshotsUrl}</url>
     52 		</snapshotRepository>
     53 		<repository>
     54 			<id>sonatype-nexus-staging</id>
     55 			<name>Nexus Release Repository</name>
     56 			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
     57 		</repository>
     58 	</distributionManagement>
     59 
     60 	<build>
     61 		<plugins>
     62 			<plugin>
     63 				<groupId>org.apache.maven.plugins</groupId>
     64 				<artifactId>maven-enforcer-plugin</artifactId>
     65 				<version>1.0</version>
     66 				<executions>
     67 					<execution>
     68 						<id>enforce-maven</id>
     69 						<goals>
     70 							<goal>enforce</goal>
     71 						</goals>
     72 						<configuration>
     73 							<rules>
     74 								<requireMavenVersion>
     75 									<version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version>
     76 									<message>Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures and checksums respectively.</message>
     77 								</requireMavenVersion>
     78 							</rules>
     79 						</configuration>
     80 					</execution>
     81 				</executions>
     82 			</plugin>
     83 		</plugins>
     84 		<pluginManagement>
     85 			<plugins>
     86 				<plugin>
     87 					<groupId>org.apache.maven.plugins</groupId>
     88 					<artifactId>maven-release-plugin</artifactId>
     89 					<version>2.1</version>
     90 					<configuration>
     91 						<mavenExecutorId>forked-path</mavenExecutorId>
     92 						<useReleaseProfile>false</useReleaseProfile>
     93 						<arguments>-Psonatype-oss-release</arguments>
     94 					</configuration>
     95 				</plugin>
     96 			</plugins>
     97 		</pluginManagement>
     98 	</build>
     99 
    100 	<properties>
    101 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    102 		<sonatypeOssDistMgmtSnapshotsUrl>https://oss.sonatype.org/content/repositories/snapshots/</sonatypeOssDistMgmtSnapshotsUrl>
    103 	</properties>
    104 
    105 	<profiles>
    106 		<profile>
    107 			<id>sonatype-oss-release</id>
    108 			<build>
    109 				<plugins>
    110 					<plugin>
    111 						<groupId>org.apache.maven.plugins</groupId>
    112 						<artifactId>maven-source-plugin</artifactId>
    113 						<version>2.1.2</version>
    114 						<executions>
    115 							<execution>
    116 								<id>attach-sources</id>
    117 								<goals>
    118 									<goal>jar-no-fork</goal>
    119 								</goals>
    120 							</execution>
    121 						</executions>
    122 					</plugin>
    123 					<plugin>
    124 						<groupId>org.apache.maven.plugins</groupId>
    125 						<artifactId>maven-javadoc-plugin</artifactId>
    126 						<version>2.7</version>
    127 						<executions>
    128 							<execution>
    129 								<id>attach-javadocs</id>
    130 								<goals>
    131 									<goal>jar</goal>
    132 								</goals>
    133 							</execution>
    134 						</executions>
    135 					</plugin>
    136 					<plugin>
    137 						<groupId>org.apache.maven.plugins</groupId>
    138 						<artifactId>maven-gpg-plugin</artifactId>
    139 						<version>1.1</version>
    140 						<executions>
    141 							<execution>
    142 								<id>sign-artifacts</id>
    143 								<phase>verify</phase>
    144 								<goals>
    145 									<goal>sign</goal>
    146 								</goals>
    147 							</execution>
    148 						</executions>
    149 					</plugin>
    150 				</plugins>
    151 			</build>
    152 		</profile>
    153 	</profiles>
    154 
    155 </project>
    156