Skip to content

Commit ca01408

Browse files
committed
ISSUE: PURPOSE: Allowing release of kurator-validation in maven central. DESCRIPTION: Adding a release profile and distribution management sections to pom. Changing groupid to org.datakurator. Not all required metadata for publication of release may be present yet in pom.
1 parent 3975b29 commit ca01408

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

pom.xml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>org.kurator</groupId>
5+
<groupId>org.datakurator</groupId>
66
<artifactId>kurator-validation</artifactId>
77
<version>1.0.2-SNAPSHOT</version>
88
<packaging>jar</packaging>
@@ -342,6 +342,49 @@
342342
</plugins>
343343
</build>
344344
</profile>
345+
<profile>
346+
<id>release</id>
347+
<build>
348+
<plugins>
349+
<plugin>
350+
<groupId>org.apache.maven.plugins</groupId>
351+
<artifactId>maven-gpg-plugin</artifactId>
352+
<version>1.5</version>
353+
<executions>
354+
<execution>
355+
<id>sign-artifacts</id>
356+
<phase>verify</phase>
357+
<goals>
358+
<goal>sign</goal>
359+
</goals>
360+
</execution>
361+
</executions>
362+
</plugin>
363+
<plugin>
364+
<groupId>org.sonatype.plugins</groupId>
365+
<artifactId>nexus-staging-maven-plugin</artifactId>
366+
<version>1.6.7</version>
367+
<extensions>true</extensions>
368+
<configuration>
369+
<serverId>ossrh</serverId>
370+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
371+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
372+
</configuration>
373+
</plugin>
374+
</plugins>
375+
</build>
376+
</profile>
345377
</profiles>
378+
379+
<distributionManagement>
380+
<snapshotRepository>
381+
<id>ossrh</id>
382+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
383+
</snapshotRepository>
384+
<repository>
385+
<id>ossrh</id>
386+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
387+
</repository>
388+
</distributionManagement>
346389

347390
</project>

0 commit comments

Comments
 (0)