Skip to content

Commit a7f3234

Browse files
authored
Merge pull request #196 from CyberSource/monkumar/changing-deploying-method
Monkumar/changing deploying method
2 parents 99526b8 + 6c4a150 commit a7f3234

File tree

1 file changed

+65
-35
lines changed

1 file changed

+65
-35
lines changed

pom.xml

Lines changed: 65 additions & 35 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>
@@ -146,26 +141,26 @@
146141
</plugin>
147142
<plugin>
148143
<groupId>org.apache.maven.plugins</groupId>
149-
<artifactId>maven-javadoc-plugin</artifactId>
150-
<version>2.10.4</version>
144+
<artifactId>maven-source-plugin</artifactId>
145+
<version>2.2.1</version>
151146
<executions>
152147
<execution>
153-
<id>attach-javadocs</id>
148+
<id>attach-sources</id>
154149
<goals>
155-
<goal>jar</goal>
150+
<goal>jar-no-fork</goal>
156151
</goals>
157152
</execution>
158153
</executions>
159154
</plugin>
160155
<plugin>
161156
<groupId>org.apache.maven.plugins</groupId>
162-
<artifactId>maven-source-plugin</artifactId>
163-
<version>2.2.1</version>
157+
<artifactId>maven-javadoc-plugin</artifactId>
158+
<version>2.10.4</version>
164159
<executions>
165160
<execution>
166-
<id>attach-sources</id>
161+
<id>attach-javadocs</id>
167162
<goals>
168-
<goal>jar-no-fork</goal>
163+
<goal>jar</goal>
169164
</goals>
170165
</execution>
171166
</executions>
@@ -174,27 +169,62 @@
174169
</build>
175170

176171
<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>
172+
<profile>
173+
<id>release</id>
174+
<activation>
175+
<activeByDefault>false</activeByDefault>
176+
</activation>
177+
<build>
178+
<plugins>
179+
<plugin>
180+
<groupId>org.apache.maven.plugins</groupId>
181+
<artifactId>maven-gpg-plugin</artifactId>
182+
<version>1.5</version>
183+
<executions>
184+
<execution>
185+
<id>sign-artifacts</id>
186+
<phase>verify</phase>
187+
<goals>
188+
<goal>sign</goal>
189+
</goals>
190+
</execution>
191+
</executions>
192+
</plugin>
193+
<plugin>
194+
<groupId>org.apache.maven.plugins</groupId>
195+
<artifactId>maven-enforcer-plugin</artifactId>
196+
<version>3.0.0-M1</version>
197+
<executions>
198+
<execution>
199+
<id>enforce-maven</id>
200+
<goals>
201+
<goal>enforce</goal>
202+
</goals>
203+
<configuration>
204+
<rules>
205+
<requireMavenVersion>
206+
<version>2.2.0</version>
207+
</requireMavenVersion>
208+
</rules>
209+
</configuration>
210+
</execution>
211+
</executions>
212+
</plugin>
213+
<plugin>
214+
<groupId>org.sonatype.central</groupId>
215+
<artifactId>central-publishing-maven-plugin</artifactId>
216+
<version>0.7.0</version>
217+
<extensions>true</extensions>
218+
<configuration>
219+
<checksums>required</checksums>
220+
<skipPublishing>false</skipPublishing>
221+
<publishingServerId>sonatype-nexus-staging</publishingServerId>
222+
</configuration>
223+
</plugin>
224+
</plugins>
225+
</build>
226+
</profile>
227+
198228
</profiles>
199229

200230
<dependencies>

0 commit comments

Comments
 (0)