Skip to content

Commit b0bb2b7

Browse files
add distribution to pom.xml
1 parent a1278d2 commit b0bb2b7

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

pom.xml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@
6464
<module>all</module>
6565
</modules>
6666

67+
<distributionManagement>
68+
<!-- Repository for snapshots -->
69+
<snapshotRepository>
70+
<id>ossrh</id>
71+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
72+
</snapshotRepository>
73+
<!-- Repository for releases -->
74+
<repository>
75+
<id>ossrh</id>
76+
<name>Nexus Release Repository</name>
77+
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
78+
</repository>
79+
</distributionManagement>
80+
6781
<scm>
6882
<connection>SSH</connection>
6983
<developerConnection>scm:git:[email protected]:watson-developer-cloud/java-sdk.git</developerConnection>
@@ -147,11 +161,6 @@
147161
<!-- This is the parent, so only define pluginManagement, not plugins. -->
148162
<pluginManagement>
149163
<plugins>
150-
<plugin>
151-
<groupId>org.apache.maven.plugins</groupId>
152-
<artifactId>maven-deploy-plugin</artifactId>
153-
<version>2.8.2</version>
154-
</plugin>
155164
<plugin>
156165
<groupId>org.eclipse.m2e</groupId>
157166
<artifactId>lifecycle-mapping</artifactId>
@@ -187,27 +196,22 @@
187196
</plugin>
188197
<plugin>
189198
<groupId>org.apache.maven.plugins</groupId>
190-
<artifactId>maven-release-plugin</artifactId>
191-
<version>2.5.3</version><!--$NO-MVN-MAN-VER$ -->
192-
<configuration>
193-
<autoVersionSubmodules>true</autoVersionSubmodules>
194-
<useReleaseProfile>false</useReleaseProfile>
195-
<releaseProfiles>release</releaseProfiles>
196-
<goals>deploy</goals>
197-
</configuration>
199+
<artifactId>maven-surefire-plugin</artifactId>
200+
<version>2.9</version>
198201
</plugin>
199202
</plugins>
200203
</pluginManagement>
201204
<plugins>
202-
<plugin>
203-
<groupId>org.eluder.coveralls</groupId>
204-
<artifactId>coveralls-maven-plugin</artifactId>
205-
<version>3.1.0</version>
206-
</plugin>
207205
<plugin>
208206
<groupId>org.apache.maven.plugins</groupId>
209-
<artifactId>maven-surefire-plugin</artifactId>
210-
<version>2.9</version>
207+
<artifactId>maven-release-plugin</artifactId>
208+
<version>2.5.3</version><!--$NO-MVN-MAN-VER$ -->
209+
<configuration>
210+
<autoVersionSubmodules>true</autoVersionSubmodules>
211+
<useReleaseProfile>false</useReleaseProfile>
212+
<releaseProfiles>release</releaseProfiles>
213+
<goals>deploy</goals>
214+
</configuration>
211215
</plugin>
212216
<plugin>
213217
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)