Skip to content
This repository was archived by the owner on Apr 5, 2019. It is now read-only.

Commit 9ab9acc

Browse files
committed
updating pom for ossrh
1 parent c7590fb commit 9ab9acc

File tree

1 file changed

+56
-13
lines changed

1 file changed

+56
-13
lines changed

pom.xml

Lines changed: 56 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
<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">
22
<modelVersion>4.0.0</modelVersion>
33

4-
<parent>
5-
<artifactId>oss-parent</artifactId>
6-
<groupId>org.sonatype.oss</groupId>
7-
<version>7</version>
8-
</parent>
9-
104
<groupId>com.github.klieber</groupId>
115
<artifactId>phantomjs-maven-plugin</artifactId>
126
<version>0.3-SNAPSHOT</version>
@@ -35,6 +29,13 @@
3529
</developer>
3630
</developers>
3731

32+
<distributionManagement>
33+
<snapshotRepository>
34+
<id>ossrh</id>
35+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
36+
</snapshotRepository>
37+
</distributionManagement>
38+
3839
<scm>
3940
<url>https://github.com/klieber/phantomjs-maven-plugin</url>
4041
<connection>scm:git:git@github.com:klieber/phantomjs-maven-plugin.git</connection>
@@ -160,6 +161,17 @@
160161
<build>
161162
<pluginManagement>
162163
<plugins>
164+
<plugin>
165+
<groupId>org.apache.maven.plugins</groupId>
166+
<artifactId>maven-release-plugin</artifactId>
167+
<version>2.5</version>
168+
<configuration>
169+
<autoVersionSubmodules>true</autoVersionSubmodules>
170+
<useReleaseProfile>false</useReleaseProfile>
171+
<releaseProfiles>release</releaseProfiles>
172+
<goals>deploy</goals>
173+
</configuration>
174+
</plugin>
163175
<plugin>
164176
<groupId>org.apache.maven.plugins</groupId>
165177
<artifactId>maven-site-plugin</artifactId>
@@ -213,6 +225,16 @@
213225
</plugins>
214226
</pluginManagement>
215227
<plugins>
228+
<plugin>
229+
<groupId>org.sonatype.plugins</groupId>
230+
<artifactId>nexus-staging-maven-plugin</artifactId>
231+
<version>1.6.1</version>
232+
<extensions>true</extensions>
233+
<configuration>
234+
<serverId>ossrh</serverId>
235+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
236+
</configuration>
237+
</plugin>
216238
<plugin>
217239
<groupId>org.apache.maven.plugins</groupId>
218240
<artifactId>maven-plugin-plugin</artifactId>
@@ -404,18 +426,39 @@
404426
</build>
405427
</profile>
406428
<profile>
407-
<id>release-sign-artifacts</id>
408-
<activation>
409-
<property>
410-
<name>performRelease</name>
411-
<value>true</value>
412-
</property>
413-
</activation>
429+
<id>release</id>
414430
<build>
415431
<plugins>
432+
<plugin>
433+
<groupId>org.apache.maven.plugins</groupId>
434+
<artifactId>maven-source-plugin</artifactId>
435+
<version>2.2.1</version>
436+
<executions>
437+
<execution>
438+
<id>attach-sources</id>
439+
<goals>
440+
<goal>jar-no-fork</goal>
441+
</goals>
442+
</execution>
443+
</executions>
444+
</plugin>
445+
<plugin>
446+
<groupId>org.apache.maven.plugins</groupId>
447+
<artifactId>maven-javadoc-plugin</artifactId>
448+
<version>2.9.1</version>
449+
<executions>
450+
<execution>
451+
<id>attach-javadocs</id>
452+
<goals>
453+
<goal>jar</goal>
454+
</goals>
455+
</execution>
456+
</executions>
457+
</plugin>
416458
<plugin>
417459
<groupId>org.apache.maven.plugins</groupId>
418460
<artifactId>maven-gpg-plugin</artifactId>
461+
<version>1.5</version>
419462
<executions>
420463
<execution>
421464
<id>sign-artifacts</id>

0 commit comments

Comments
 (0)