Skip to content

Commit 7b0d5bb

Browse files
author
Mathieu Carbou
committed
improving POM so that it is ready to be deployed in sonatype oss repository
1 parent a87bcd3 commit 7b0d5bb

File tree

1 file changed

+75
-29
lines changed

1 file changed

+75
-29
lines changed

pom.xml

Lines changed: 75 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
<properties>
1717
<jdk.version>1.6</jdk.version>
18+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1819
</properties>
1920

2021
<organization>
@@ -64,17 +65,25 @@
6465
</licenses>
6566

6667
<distributionManagement>
68+
<!-- TODO: switch repositories when deploying on OSS Sonatype repos -->
6769
<repository>
6870
<id>mc-release</id>
69-
<name>Alternate Maven repository of releases</name>
7071
<url>dav:https://mc-repo.googlecode.com/svn/maven2/releases</url>
7172
</repository>
73+
<!--<repository>
74+
<id>socketio-staging</id>
75+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
76+
</repository>-->
7277
<snapshotRepository>
7378
<id>mc-snapshot</id>
74-
<name>Alternate Maven repository of snapshots</name>
7579
<url>dav:https://mc-repo.googlecode.com/svn/maven2/snapshots</url>
7680
<uniqueVersion>false</uniqueVersion>
7781
</snapshotRepository>
82+
<!--<snapshotRepository>
83+
<id>socketio-snapshots</id>
84+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
85+
<uniqueVersion>false</uniqueVersion>
86+
</snapshotRepository>-->
7887
<site>
7988
<id>website</id>
8089
<name>website</name>
@@ -84,9 +93,14 @@
8493

8594
<issueManagement>
8695
<system>github</system>
87-
<url>https://github.com/mathieucarbou/Socket.IO-Java/issues</url>
96+
<url>https://github.com/Ovea/Socket.IO-Java/issues</url>
8897
</issueManagement>
8998

99+
<ciManagement>
100+
<system>hudson</system>
101+
<url>http://build.intradev.ovea.com/hudson/</url>
102+
</ciManagement>
103+
90104
<scm>
91105
<connection>scm:git:git@github.com:mathieucarbou/Socket.IO-Java.git</connection>
92106
<developerConnection>scm:git:git@github.com:mathieucarbou/Socket.IO-Java.git</developerConnection>
@@ -114,6 +128,20 @@
114128
</extensions>
115129
<pluginManagement>
116130
<plugins>
131+
<plugin>
132+
<artifactId>maven-enforcer-plugin</artifactId>
133+
<version>1.0-beta-1</version>
134+
<configuration>
135+
<rules>
136+
<requireMavenVersion>
137+
<version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version>
138+
<message>
139+
Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures and checksums respectively.
140+
</message>
141+
</requireMavenVersion>
142+
</rules>
143+
</configuration>
144+
</plugin>
117145
<plugin>
118146
<artifactId>maven-compiler-plugin</artifactId>
119147
<version>2.3.2</version>
@@ -125,6 +153,11 @@
125153
<plugin>
126154
<artifactId>maven-gpg-plugin</artifactId>
127155
<version>1.1</version>
156+
<configuration>
157+
<useAgent>false</useAgent>
158+
<!-- Ovea GPG key ID -->
159+
<keyname>F82FA7FE</keyname>
160+
</configuration>
128161
</plugin>
129162
<plugin>
130163
<artifactId>maven-release-plugin</artifactId>
@@ -145,6 +178,10 @@
145178
<artifactId>maven-jar-plugin</artifactId>
146179
<version>2.3.1</version>
147180
</plugin>
181+
<plugin>
182+
<artifactId>maven-jarsigner-plugin</artifactId>
183+
<version>1.2</version>
184+
</plugin>
148185
<plugin>
149186
<artifactId>maven-javadoc-plugin</artifactId>
150187
<version>2.7</version>
@@ -218,6 +255,18 @@
218255
</plugins>
219256
</pluginManagement>
220257
<plugins>
258+
<plugin>
259+
<artifactId>maven-enforcer-plugin</artifactId>
260+
<executions>
261+
<execution>
262+
<id>enforce-maven</id>
263+
<goals>
264+
<goal>enforce</goal>
265+
</goals>
266+
267+
</execution>
268+
</executions>
269+
</plugin>
221270
<plugin>
222271
<artifactId>maven-jar-plugin</artifactId>
223272
<executions>
@@ -278,6 +327,29 @@
278327
</execution>
279328
</executions>
280329
</plugin>
330+
<plugin>
331+
<artifactId>maven-javadoc-plugin</artifactId>
332+
<executions>
333+
<execution>
334+
<goals>
335+
<goal>jar</goal>
336+
</goals>
337+
</execution>
338+
</executions>
339+
</plugin>
340+
<!-- TODO: activate if deploying in OSS Sonatype repos or maven central repo togpg sign jars -->
341+
<!--<plugin>
342+
<artifactId>maven-gpg-plugin</artifactId>
343+
<executions>
344+
<execution>
345+
<id>sign-artifacts</id>
346+
<phase>verify</phase>
347+
<goals>
348+
<goal>sign</goal>
349+
</goals>
350+
</execution>
351+
</executions>
352+
</plugin>-->
281353
</plugins>
282354
</build>
283355

@@ -308,32 +380,6 @@
308380
</plugins>
309381
</reporting>
310382

311-
<profiles>
312-
<profile>
313-
<id>release</id>
314-
<activation>
315-
<property>
316-
<name>performRelease</name>
317-
<value>true</value>
318-
</property>
319-
</activation>
320-
<build>
321-
<plugins>
322-
<plugin>
323-
<artifactId>maven-javadoc-plugin</artifactId>
324-
<executions>
325-
<execution>
326-
<goals>
327-
<goal>jar</goal>
328-
</goals>
329-
</execution>
330-
</executions>
331-
</plugin>
332-
</plugins>
333-
</build>
334-
</profile>
335-
</profiles>
336-
337383
<dependencyManagement>
338384
<dependencies>
339385
<dependency>

0 commit comments

Comments
 (0)