Skip to content

Commit e14cb3e

Browse files
committed
Change pom for new maven release process
1 parent 086ee9b commit e14cb3e

1 file changed

Lines changed: 36 additions & 48 deletions

File tree

pom.xml

Lines changed: 36 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,6 @@
7070
</scm>
7171

7272
<profiles>
73-
<profile>
74-
<id>sonatype</id>
75-
<properties>
76-
<gpg.skip>false</gpg.skip>
77-
</properties>
78-
<distributionManagement>
79-
<snapshotRepository>
80-
<id>ossrh</id>
81-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
82-
</snapshotRepository>
83-
</distributionManagement>
84-
</profile>
8573
<profile>
8674
<id>github</id>
8775
<properties>
@@ -246,6 +234,42 @@
246234
</execution>
247235
</executions>
248236
</plugin>
237+
<plugin>
238+
<groupId>org.apache.maven.plugins</groupId>
239+
<artifactId>maven-gpg-plugin</artifactId>
240+
<version>3.0.1</version>
241+
<executions>
242+
<execution>
243+
<id>sign-artifacts</id>
244+
<phase>verify</phase>
245+
<goals>
246+
<goal>sign</goal>
247+
</goals>
248+
</execution>
249+
</executions>
250+
</plugin>
251+
<plugin>
252+
<groupId>org.sonatype.central</groupId>
253+
<artifactId>central-publishing-maven-plugin</artifactId>
254+
<version>0.5.0</version>
255+
<extensions>true</extensions>
256+
<configuration>
257+
<publishingServerId>central</publishingServerId>
258+
<autoPublish>true</autoPublish>
259+
</configuration>
260+
</plugin>
261+
<plugin>
262+
<groupId>org.apache.maven.plugins</groupId>
263+
<artifactId>maven-release-plugin</artifactId>
264+
<version>2.5.3</version>
265+
<configuration>
266+
<autoVersionSubmodules>true</autoVersionSubmodules>
267+
<useReleaseProfile>false</useReleaseProfile>
268+
<releaseProfiles>release</releaseProfiles>
269+
<goals>deploy</goals>
270+
<arguments>-Dgpg.skip=false</arguments>
271+
</configuration>
272+
</plugin>
249273
<plugin>
250274
<groupId>org.vafer</groupId>
251275
<artifactId>jdeb</artifactId>
@@ -296,42 +320,6 @@
296320
</execution>
297321
</executions>
298322
</plugin>
299-
<plugin>
300-
<groupId>org.apache.maven.plugins</groupId>
301-
<artifactId>maven-gpg-plugin</artifactId>
302-
<version>3.0.1</version>
303-
<executions>
304-
<execution>
305-
<id>sign-artifacts</id>
306-
<phase>verify</phase>
307-
<goals>
308-
<goal>sign</goal>
309-
</goals>
310-
</execution>
311-
</executions>
312-
</plugin>
313-
<plugin>
314-
<groupId>org.sonatype.plugins</groupId>
315-
<artifactId>nexus-staging-maven-plugin</artifactId>
316-
<version>1.6.13</version>
317-
<extensions>true</extensions>
318-
<configuration>
319-
<serverId>ossrh</serverId>
320-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
321-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
322-
</configuration>
323-
</plugin>
324-
<plugin>
325-
<groupId>org.apache.maven.plugins</groupId>
326-
<artifactId>maven-release-plugin</artifactId>
327-
<version>2.5.3</version>
328-
<configuration>
329-
<autoVersionSubmodules>true</autoVersionSubmodules>
330-
<useReleaseProfile>false</useReleaseProfile>
331-
<releaseProfiles>release</releaseProfiles>
332-
<goals>deploy</goals>
333-
</configuration>
334-
</plugin>
335323
</plugins>
336324
<resources>
337325
<resource>

0 commit comments

Comments
 (0)