Skip to content

Commit 322dd30

Browse files
deplying to central
1 parent 823bcc5 commit 322dd30

File tree

1 file changed

+70
-40
lines changed

1 file changed

+70
-40
lines changed

pom.xml

Lines changed: 70 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
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/maven-v4_0_0.xsd">
22
<modelVersion>4.0.0</modelVersion>
3-
<parent>
4-
<groupId>org.sonatype.oss</groupId>
5-
<artifactId>oss-parent</artifactId>
6-
<version>7</version>
7-
</parent>
83

94
<groupId>com.cybersource</groupId>
105
<artifactId>cybersource-rest-client-java</artifactId>
@@ -18,7 +13,7 @@
1813
<connection>scm:git:https://github.com/CyberSource/cybersource-rest-client-java.git</connection>
1914
<developerConnection>scm:git:https://github.com/CyberSource/cybersource-rest-client-java.git</developerConnection>
2015
<url>https://github.com/CyberSource/cybersource-rest-client-java.git</url>
21-
</scm>
16+
</scm>
2217

2318
<licenses>
2419
<license>
@@ -144,19 +139,6 @@
144139
</execution>
145140
</executions>
146141
</plugin>
147-
<plugin>
148-
<groupId>org.apache.maven.plugins</groupId>
149-
<artifactId>maven-javadoc-plugin</artifactId>
150-
<version>2.10.4</version>
151-
<executions>
152-
<execution>
153-
<id>attach-javadocs</id>
154-
<goals>
155-
<goal>jar</goal>
156-
</goals>
157-
</execution>
158-
</executions>
159-
</plugin>
160142
<plugin>
161143
<groupId>org.apache.maven.plugins</groupId>
162144
<artifactId>maven-source-plugin</artifactId>
@@ -174,27 +156,75 @@
174156
</build>
175157

176158
<profiles>
177-
<profile>
178-
<id>sign-artifacts</id>
179-
<build>
180-
<plugins>
181-
<plugin>
182-
<groupId>org.apache.maven.plugins</groupId>
183-
<artifactId>maven-gpg-plugin</artifactId>
184-
<version>1.5</version>
185-
<executions>
186-
<execution>
187-
<id>sign-artifacts</id>
188-
<phase>verify</phase>
189-
<goals>
190-
<goal>sign</goal>
191-
</goals>
192-
</execution>
193-
</executions>
194-
</plugin>
195-
</plugins>
196-
</build>
197-
</profile>
159+
<profile>
160+
<id>release</id>
161+
<activation>
162+
<activeByDefault>false</activeByDefault>
163+
</activation>
164+
<build>
165+
<plugins>
166+
<plugin>
167+
<groupId>org.apache.maven.plugins</groupId>
168+
<artifactId>maven-enforcer-plugin</artifactId>
169+
<version>3.0.0-M1</version>
170+
<executions>
171+
<execution>
172+
<id>enforce-maven</id>
173+
<goals>
174+
<goal>enforce</goal>
175+
</goals>
176+
<configuration>
177+
<rules>
178+
<requireMavenVersion>
179+
<version>2.2.0</version>
180+
</requireMavenVersion>
181+
</rules>
182+
</configuration>
183+
</execution>
184+
</executions>
185+
</plugin>
186+
<plugin>
187+
<groupId>org.sonatype.central</groupId>
188+
<artifactId>central-publishing-maven-plugin</artifactId>
189+
<version>0.7.0</version>
190+
<extensions>true</extensions>
191+
<configuration>
192+
<checksums>required</checksums>
193+
<skipPublishing>true</skipPublishing>
194+
<publishingServerId>central</publishingServerId>
195+
</configuration>
196+
</plugin>
197+
198+
<plugin>
199+
<groupId>org.apache.maven.plugins</groupId>
200+
<artifactId>maven-source-plugin</artifactId>
201+
<version>2.2.1</version>
202+
<executions>
203+
<execution>
204+
<id>attach-sources</id>
205+
<goals>
206+
<goal>jar-no-fork</goal>
207+
</goals>
208+
</execution>
209+
</executions>
210+
</plugin>
211+
<plugin>
212+
<groupId>org.apache.maven.plugins</groupId>
213+
<artifactId>maven-javadoc-plugin</artifactId>
214+
<version>2.9.1</version>
215+
<executions>
216+
<execution>
217+
<id>attach-javadocs</id>
218+
<goals>
219+
<goal>jar</goal>
220+
</goals>
221+
</execution>
222+
</executions>
223+
</plugin>
224+
</plugins>
225+
</build>
226+
</profile>
227+
198228
</profiles>
199229

200230
<dependencies>

0 commit comments

Comments
 (0)