Skip to content

Commit c10145e

Browse files
committed
fixing parent pom to support dual development teams
1 parent 5e60062 commit c10145e

1 file changed

Lines changed: 79 additions & 41 deletions

File tree

‎pom.xml‎

Lines changed: 79 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -62,33 +62,6 @@
6262
</license>
6363
</licenses>
6464

65-
<distributionManagement>
66-
<!-- TODO: switch repositories when deploying on OSS Sonatype repos -->
67-
<repository>
68-
<id>mc-release</id>
69-
<url>dav:https://mc-repo.googlecode.com/svn/maven2/releases</url>
70-
</repository>
71-
<!--<repository>
72-
<id>socketio-staging</id>
73-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
74-
</repository>-->
75-
<snapshotRepository>
76-
<id>mc-snapshot</id>
77-
<url>dav:https://mc-repo.googlecode.com/svn/maven2/snapshots</url>
78-
<uniqueVersion>false</uniqueVersion>
79-
</snapshotRepository>
80-
<!--<snapshotRepository>
81-
<id>socketio-snapshots</id>
82-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
83-
<uniqueVersion>false</uniqueVersion>
84-
</snapshotRepository>-->
85-
<site>
86-
<id>website</id>
87-
<name>website</name>
88-
<url>file://${basedir}/target/dist/site</url>
89-
</site>
90-
</distributionManagement>
91-
9265
<issueManagement>
9366
<system>github</system>
9467
<url>https://github.com/tadglines/Socket.IO-Java/issues</url>
@@ -111,6 +84,14 @@
11184
<module>samples</module>
11285
</modules>
11386

87+
<distributionManagement>
88+
<site>
89+
<id>website</id>
90+
<name>website</name>
91+
<url>file://${basedir}/target/dist/site</url>
92+
</site>
93+
</distributionManagement>
94+
11495
<build>
11596
<extensions>
11697
<extension>
@@ -213,7 +194,6 @@
213194
<artifactId>maven-license-plugin</artifactId>
214195
<version>1.9.0</version>
215196
<configuration>
216-
<header>https://github.com/tadglines/Socket.IO-Java/raw/master/licenses/MIT</header>
217197
<strictCheck>true</strictCheck>
218198
<properties>
219199
<owner>Tad Glines</owner>
@@ -315,19 +295,6 @@
315295
</execution>
316296
</executions>
317297
</plugin>
318-
<!-- TODO: activate if deploying in OSS Sonatype repos or maven central repo togpg sign jars -->
319-
<!--<plugin>
320-
<artifactId>maven-gpg-plugin</artifactId>
321-
<executions>
322-
<execution>
323-
<id>sign-artifacts</id>
324-
<phase>verify</phase>
325-
<goals>
326-
<goal>sign</goal>
327-
</goals>
328-
</execution>
329-
</executions>
330-
</plugin>-->
331298
</plugins>
332299
</build>
333300

@@ -427,4 +394,75 @@
427394
</dependencies>
428395
</dependencyManagement>
429396

397+
<profiles>
398+
399+
<profile>
400+
<id>default</id>
401+
<activation>
402+
<activeByDefault>true</activeByDefault>
403+
</activation>
404+
<distributionManagement>
405+
<repository>
406+
<id>socketio-staging</id>
407+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
408+
</repository>
409+
<snapshotRepository>
410+
<id>socketio-snapshots</id>
411+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
412+
<uniqueVersion>false</uniqueVersion>
413+
</snapshotRepository>
414+
</distributionManagement>
415+
<build>
416+
<plugins>
417+
<plugin>
418+
<groupId>com.mycila.maven-license-plugin</groupId>
419+
<artifactId>maven-license-plugin</artifactId>
420+
<configuration>
421+
<header>https://github.com/tadglines/Socket.IO-Java/raw/master/licenses/MIT</header>
422+
</configuration>
423+
</plugin>
424+
<plugin>
425+
<artifactId>maven-gpg-plugin</artifactId>
426+
<executions>
427+
<execution>
428+
<id>sign-artifacts</id>
429+
<phase>verify</phase>
430+
<goals>
431+
<goal>sign</goal>
432+
</goals>
433+
</execution>
434+
</executions>
435+
</plugin>
436+
</plugins>
437+
</build>
438+
</profile>
439+
440+
<profile>
441+
<id>ovea</id>
442+
<distributionManagement>
443+
<repository>
444+
<id>mc-release</id>
445+
<url>dav:https://mc-repo.googlecode.com/svn/maven2/releases</url>
446+
</repository>
447+
<snapshotRepository>
448+
<id>mc-snapshot</id>
449+
<url>dav:https://mc-repo.googlecode.com/svn/maven2/snapshots</url>
450+
<uniqueVersion>false</uniqueVersion>
451+
</snapshotRepository>
452+
</distributionManagement>
453+
<build>
454+
<plugins>
455+
<plugin>
456+
<groupId>com.mycila.maven-license-plugin</groupId>
457+
<artifactId>maven-license-plugin</artifactId>
458+
<configuration>
459+
<header>https://github.com/Ovea/Socket.IO-Java/raw/master/licenses/MIT</header>
460+
</configuration>
461+
</plugin>
462+
</plugins>
463+
</build>
464+
</profile>
465+
466+
</profiles>
467+
430468
</project>

0 commit comments

Comments
 (0)