|
5 | 5 | <artifactId>java-parent</artifactId> |
6 | 6 | <packaging>pom</packaging> |
7 | 7 | <version>1.0.2</version> |
8 | | - |
| 8 | + |
9 | 9 | <properties> |
10 | 10 | <!-- source & target java version for MQTT Client --> |
11 | 11 | <mqttclient.java.version>1.4</mqttclient.java.version> |
|
18 | 18 | <test.exclude>**/*ConformantTest.java</test.exclude> |
19 | 19 | <download.location>/home/data/httpd/download.eclipse.org/paho/releases/${project.version}/Java</download.location> |
20 | 20 | </properties> |
21 | | - |
| 21 | + |
22 | 22 | <name>Eclipse Paho</name> |
23 | 23 | <url>http://www.eclipse.org/paho</url> |
24 | 24 | <description> |
|
36 | 36 | <url>http://www.eclipse.org/org/documents/epl-v10.php</url> |
37 | 37 | </license> |
38 | 38 | </licenses> |
39 | | - |
| 39 | + |
40 | 40 | <scm> |
41 | 41 | <url>http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.java.git</url> |
42 | 42 | <connection>scm:git://git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.java.git</connection> |
43 | 43 | </scm> |
44 | | - |
| 44 | + |
45 | 45 | <distributionManagement> |
46 | 46 | <repository> |
47 | 47 | <id>repo.eclipse.org</id> |
|
54 | 54 | <url>https://repo.eclipse.org/content/repositories/paho-snapshots/</url> |
55 | 55 | </snapshotRepository> |
56 | 56 | </distributionManagement> |
57 | | - |
| 57 | + |
58 | 58 | <repositories> |
59 | 59 | <repository> |
60 | 60 | <id>eclipse-kepler</id> |
|
69 | 69 | <url>https://repo.eclipse.org/content/repositories/cbi-releases/</url> |
70 | 70 | </pluginRepository> |
71 | 71 | </pluginRepositories> |
72 | | - |
| 72 | + |
73 | 73 | <dependencyManagement> |
74 | 74 | <dependencies> |
75 | 75 | <dependency> |
|
80 | 80 | </dependency> |
81 | 81 | </dependencies> |
82 | 82 | </dependencyManagement> |
83 | | - |
| 83 | + |
84 | 84 | <build> |
85 | 85 | <pluginManagement> |
86 | 86 | <plugins> |
|
159 | 159 | </execution> |
160 | 160 | </executions> |
161 | 161 | </plugin> |
| 162 | + <plugin> |
| 163 | + <!-- |
| 164 | + Use the Nexus Staging plugin as a full replacement for the standard |
| 165 | + Maven Deploy plugin. |
| 166 | + See https://github.com/sonatype/nexus-maven-plugins/tree/master/staging/maven-plugin |
| 167 | + why this makes sense :-) |
| 168 | + We can control whether we want to deploy to the Eclipse repo or Maven Central |
| 169 | + by a combination of the version being a SNAPHOT or release version and property |
| 170 | + skipStaging=true/false. |
| 171 | + In any case we can take advantage of the plugin's "deferred deploy" feature which |
| 172 | + makes sure that all artifacts of a multi-module project are deployed as a whole |
| 173 | + at the end of the build process instead of deploying each module's artifacts |
| 174 | + individually as part of building the module. |
| 175 | + --> |
| 176 | + <groupId>org.sonatype.plugins</groupId> |
| 177 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 178 | + <version>1.6.5</version> |
| 179 | + <extensions>true</extensions> |
| 180 | + <configuration> |
| 181 | + <serverId>ossrh</serverId> |
| 182 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 183 | + <autoReleaseAfterClose>false</autoReleaseAfterClose> |
| 184 | + </configuration> |
| 185 | + </plugin> |
162 | 186 | </plugins> |
163 | 187 | </build> |
164 | 188 |
|
|
232 | 256 | </plugins> |
233 | 257 | </build> |
234 | 258 | </profile> |
| 259 | + <profile> |
| 260 | + <!-- this profile generates GPG signatures --> |
| 261 | + <id>create_gpg_signature</id> |
| 262 | + <activation> |
| 263 | + <activeByDefault>false</activeByDefault> |
| 264 | + <property> |
| 265 | + <name>createGPGSignature</name> |
| 266 | + </property> |
| 267 | + </activation> |
| 268 | + <build> |
| 269 | + <plugins> |
| 270 | + <plugin> |
| 271 | + <groupId>org.apache.maven.plugins</groupId> |
| 272 | + <artifactId>maven-gpg-plugin</artifactId> |
| 273 | + <version>1.6</version> |
| 274 | + <executions> |
| 275 | + <execution> |
| 276 | + <id>sign-artifacts</id> |
| 277 | + <phase>verify</phase> |
| 278 | + <goals> |
| 279 | + <goal>sign</goal> |
| 280 | + </goals> |
| 281 | + </execution> |
| 282 | + </executions> |
| 283 | + </plugin> |
| 284 | + </plugins> |
| 285 | + </build> |
| 286 | + </profile> |
235 | 287 | </profiles> |
236 | 288 | <modules> |
237 | 289 | <module>org.eclipse.paho.client.mqttv3</module> |
|
0 commit comments