Home | History | Annotate | Download | only in 3
      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>net.java</groupId>
     18 	<artifactId>jvnet-parent</artifactId>
     19 	<version>3</version>
     20 	<packaging>pom</packaging>
     21 
     22 	<name>Java.net Parent</name>
     23 	<url>http://java.net/</url>
     24 	<description>Java.net - The Source for Java Technology Collaboration</description>
     25 
     26 	<scm>
     27 		<connection>scm:git:git (a] github.com:sonatype/jvnet-parent.git</connection>
     28 		<developerConnection>scm:git:git (a] github.com:sonatype/jvnet-parent.git</developerConnection>
     29 		<url>https://github.com/sonatype/jvnet-parent</url>
     30 	</scm>
     31 
     32 	<repositories>
     33 		<repository>
     34 			<id>jvnet-nexus-snapshots</id>
     35 			<name>Java.net Nexus Snapshots Repository</name>
     36 			<url>https://maven.java.net/content/repositories/snapshots</url>
     37 			<releases>
     38 				<enabled>false</enabled>
     39 				<updatePolicy>never</updatePolicy>
     40 			</releases>
     41 			<snapshots>
     42 				<enabled>true</enabled>
     43 				<updatePolicy>never</updatePolicy>
     44 			</snapshots>
     45 		</repository>
     46 	</repositories>
     47 
     48 
     49 	<distributionManagement>
     50 		<snapshotRepository>
     51 			<id>jvnet-nexus-snapshots</id>
     52 			<name>Java.net Nexus Snapshots Repository</name>
     53 			<url>${jvnetDistMgmtSnapshotsUrl}</url>
     54 		</snapshotRepository>
     55 		<repository>
     56 			<id>jvnet-nexus-staging</id>
     57 			<name>Java.net Nexus Staging Repository</name>
     58 			<url>https://maven.java.net/service/local/staging/deploy/maven2/</url>
     59 		</repository>
     60 	</distributionManagement>
     61 
     62 	<build>
     63 		<plugins>
     64 			<plugin>
     65 				<groupId>org.apache.maven.plugins</groupId>
     66 				<artifactId>maven-enforcer-plugin</artifactId>
     67 				<version>1.0</version>
     68 				<executions>
     69 					<execution>
     70 						<id>enforce-maven</id>
     71 						<goals>
     72 							<goal>enforce</goal>
     73 						</goals>
     74 						<configuration>
     75 							<rules>
     76 								<requireMavenVersion>
     77 									<version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version>
     78 									<message>Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures
     79 										and checksums respectively.</message>
     80 								</requireMavenVersion>
     81 							</rules>
     82 						</configuration>
     83 					</execution>
     84 				</executions>
     85 			</plugin>
     86 		</plugins>
     87 		<pluginManagement>
     88 			<plugins>
     89 				<plugin>
     90 					<groupId>org.apache.maven.plugins</groupId>
     91 					<artifactId>maven-release-plugin</artifactId>
     92 					<version>2.1</version>
     93 					<configuration>
     94 						<mavenExecutorId>forked-path</mavenExecutorId>
     95 						<useReleaseProfile>false</useReleaseProfile>
     96 						<arguments>-Pjvnet-release</arguments>
     97 					</configuration>
     98 				</plugin>
     99 			</plugins>
    100 		</pluginManagement>
    101 	</build>
    102 
    103 	<properties>
    104 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    105 		<jvnetDistMgmtSnapshotsUrl>https://maven.java.net/content/repositories/snapshots/</jvnetDistMgmtSnapshotsUrl>
    106 	</properties>
    107 
    108 	<profiles>
    109 		<profile>
    110 			<id>jvnet-release</id>
    111 			<build>
    112 				<plugins>
    113 					<plugin>
    114 						<groupId>org.apache.maven.plugins</groupId>
    115 						<artifactId>maven-source-plugin</artifactId>
    116 						<version>2.1.2</version>
    117 						<executions>
    118 							<execution>
    119 								<id>attach-sources</id>
    120 								<goals>
    121 									<goal>jar-no-fork</goal>
    122 								</goals>
    123 							</execution>
    124 						</executions>
    125 					</plugin>
    126 					<plugin>
    127 						<groupId>org.apache.maven.plugins</groupId>
    128 						<artifactId>maven-javadoc-plugin</artifactId>
    129 						<version>2.7</version>
    130 						<executions>
    131 							<execution>
    132 								<id>attach-javadocs</id>
    133 								<goals>
    134 									<goal>jar</goal>
    135 								</goals>
    136 							</execution>
    137 						</executions>
    138 					</plugin>
    139 					<plugin>
    140 						<groupId>org.apache.maven.plugins</groupId>
    141 						<artifactId>maven-gpg-plugin</artifactId>
    142 						<version>1.1</version>
    143 						<executions>
    144 							<execution>
    145 								<id>sign-artifacts</id>
    146 								<phase>verify</phase>
    147 								<goals>
    148 									<goal>sign</goal>
    149 								</goals>
    150 							</execution>
    151 						</executions>
    152 					</plugin>
    153 				</plugins>
    154 			</build>
    155 		</profile>
    156 	</profiles>
    157 
    158 </project>
    159 
    160