1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 ~ Copyright (c) 2007-2012 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" 15 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 16 <modelVersion>4.0.0</modelVersion> 17 18 <groupId>net.java</groupId> 19 <artifactId>jvnet-parent</artifactId> 20 <version>4</version> 21 <packaging>pom</packaging> 22 23 <name>Java.net Parent</name> 24 <url>http://java.net/</url> 25 <description>Java.net - The Source for Java Technology Collaboration</description> 26 27 <scm> 28 <connection>scm:git:git (a] github.com:sonatype/jvnet-parent.git</connection> 29 <developerConnection>scm:git:git (a] github.com:sonatype/jvnet-parent.git</developerConnection> 30 <url>https://github.com/sonatype/jvnet-parent</url> 31 </scm> 32 33 <distributionManagement> 34 <snapshotRepository> 35 <id>jvnet-nexus-snapshots</id> 36 <name>Java.net Nexus Snapshots Repository</name> 37 <url>${jvnetDistMgmtSnapshotsUrl}</url> 38 </snapshotRepository> 39 <repository> 40 <id>jvnet-nexus-staging</id> 41 <name>Java.net Nexus Staging Repository</name> 42 <url>https://maven.java.net/service/local/staging/deploy/maven2/</url> 43 </repository> 44 </distributionManagement> 45 46 <build> 47 <pluginManagement> 48 <plugins> 49 <plugin> 50 <groupId>org.apache.maven.plugins</groupId> 51 <artifactId>maven-release-plugin</artifactId> 52 <configuration> 53 <mavenExecutorId>forked-path</mavenExecutorId> 54 <useReleaseProfile>false</useReleaseProfile> 55 <arguments>-Pjvnet-release ${release.arguments}</arguments> 56 </configuration> 57 </plugin> 58 </plugins> 59 </pluginManagement> 60 </build> 61 62 <properties> 63 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 64 <jvnetDistMgmtSnapshotsUrl>https://maven.java.net/content/repositories/snapshots/</jvnetDistMgmtSnapshotsUrl> 65 </properties> 66 67 <profiles> 68 <profile> 69 <id>jvnet-release</id> 70 <build> 71 <plugins> 72 <plugin> 73 <groupId>org.apache.maven.plugins</groupId> 74 <artifactId>maven-source-plugin</artifactId> 75 <executions> 76 <execution> 77 <id>attach-sources</id> 78 <goals> 79 <goal>jar-no-fork</goal> 80 </goals> 81 </execution> 82 </executions> 83 </plugin> 84 <plugin> 85 <groupId>org.apache.maven.plugins</groupId> 86 <artifactId>maven-javadoc-plugin</artifactId> 87 <executions> 88 <execution> 89 <id>attach-javadocs</id> 90 <goals> 91 <goal>jar</goal> 92 </goals> 93 </execution> 94 </executions> 95 </plugin> 96 <plugin> 97 <groupId>org.apache.maven.plugins</groupId> 98 <artifactId>maven-enforcer-plugin</artifactId> 99 <executions> 100 <execution> 101 <id>enforce-maven</id> 102 <goals> 103 <goal>enforce</goal> 104 </goals> 105 <configuration> 106 <rules> 107 <requireMavenVersion> 108 <version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version> 109 <message>Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures 110 and checksums respectively. 111 </message> 112 </requireMavenVersion> 113 </rules> 114 </configuration> 115 </execution> 116 </executions> 117 </plugin> 118 <plugin> 119 <groupId>org.apache.maven.plugins</groupId> 120 <artifactId>maven-gpg-plugin</artifactId> 121 <executions> 122 <execution> 123 <id>sign-artifacts</id> 124 <phase>verify</phase> 125 <goals> 126 <goal>sign</goal> 127 </goals> 128 </execution> 129 </executions> 130 </plugin> 131 </plugins> 132 </build> 133 </profile> 134 <profile> 135 <id>snapshots</id> 136 <repositories> 137 <repository> 138 <id>jvnet-nexus-snapshots</id> 139 <name>Java.net Nexus Snapshots Repository</name> 140 <url>https://maven.java.net/content/repositories/snapshots</url> 141 <releases> 142 <enabled>false</enabled> 143 </releases> 144 <snapshots> 145 <enabled>true</enabled> 146 </snapshots> 147 </repository> 148 </repositories> 149 <pluginRepositories> 150 <pluginRepository> 151 <id>jvnet-nexus-snapshots</id> 152 <name>Java.net Nexus Snapshots Repository</name> 153 <url>https://maven.java.net/content/repositories/snapshots</url> 154 <releases> 155 <enabled>false</enabled> 156 </releases> 157 <snapshots> 158 <enabled>true</enabled> 159 </snapshots> 160 </pluginRepository> 161 </pluginRepositories> 162 </profile> 163 <profile> 164 <id>staging</id> 165 <activation> 166 <activeByDefault>false</activeByDefault> 167 </activation> 168 <repositories> 169 <repository> 170 <id>jvnet-nexus-staging</id> 171 <name>Java.net Staging Repositoriy</name> 172 <url>https://maven.java.net/content/repositories/staging/</url> 173 <releases> 174 <enabled>true</enabled> 175 </releases> 176 <snapshots> 177 <enabled>false</enabled> 178 </snapshots> 179 </repository> 180 </repositories> 181 <pluginRepositories> 182 <pluginRepository> 183 <id>jvnet-nexus-staging</id> 184 <name>Java.net Staging Repositoriy</name> 185 <url>https://maven.java.net/content/repositories/staging/</url> 186 <releases> 187 <enabled>true</enabled> 188 </releases> 189 <snapshots> 190 <enabled>false</enabled> 191 </snapshots> 192 </pluginRepository> 193 </pluginRepositories> 194 </profile> 195 <profile> 196 <id>promoted</id> 197 <activation> 198 <activeByDefault>false</activeByDefault> 199 </activation> 200 <repositories> 201 <repository> 202 <id>jvnet-nexus-promoted</id> 203 <name>Java.net Promoted Repositories</name> 204 <url>https://maven.java.net/content/repositories/promoted/</url> 205 <releases> 206 <enabled>true</enabled> 207 </releases> 208 <snapshots> 209 <enabled>false</enabled> 210 </snapshots> 211 </repository> 212 </repositories> 213 <pluginRepositories> 214 <pluginRepository> 215 <id>jvnet-nexus-promoted</id> 216 <name>Java.net Promoted Repositories</name> 217 <url>https://maven.java.net/content/repositories/promoted/</url> 218 <releases> 219 <enabled>true</enabled> 220 </releases> 221 <snapshots> 222 <enabled>false</enabled> 223 </snapshots> 224 </pluginRepository> 225 </pluginRepositories> 226 </profile> 227 </profiles> 228 </project> 229