Switched to the new method for deploying to OSSRH
authorKai Moritz <kai@juplo.de>
Mon, 20 Nov 2017 15:26:35 +0000 (16:26 +0100)
committerKai Moritz <kai@juplo.de>
Mon, 20 Nov 2017 15:41:36 +0000 (16:41 +0100)
See: http://central.sonatype.org/pages/apache-maven.html

pom.xml

diff --git a/pom.xml b/pom.xml
index 763b802..e1c17aa 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -3,12 +3,6 @@
 
   <modelVersion>4.0.0</modelVersion>
 
-  <parent>
-    <groupId>org.sonatype.oss</groupId>
-    <artifactId>oss-parent</artifactId>
-    <version>9</version>
-  </parent>
-
   <groupId>de.juplo</groupId>
   <artifactId>hibernate-maven-plugin</artifactId>
   <name>Hibernate Maven Plugin</name>
   </contributors>
 
   <distributionManagement>
-    <site>
-      <id>juplo.de</id>
-      <url>scpexe://juplo.de/var/www/juplo.de/hibernate-maven-plugin-${project.version}</url>
-    </site>
+    <snapshotRepository>
+      <id>ossrh</id>
+      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
+    </snapshotRepository>
+    <repository>
+      <id>ossrh</id>
+      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
+    </repository>
   </distributionManagement>
 
   <ciManagement>
 
   <build>
     <plugins>
+      <plugin>
+        <groupId>org.sonatype.plugins</groupId>
+        <artifactId>nexus-staging-maven-plugin</artifactId>
+        <version>1.6.7</version>
+        <extensions>true</extensions>
+        <configuration>
+          <serverId>ossrh</serverId>
+          <nexusUrl>https://oss.sonatype.org/</nexusUrl>
+          <autoReleaseAfterClose>true</autoReleaseAfterClose>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-gpg-plugin</artifactId>
+        <version>1.5</version>
+        <executions>
+          <execution>
+            <id>sign-artifacts</id>
+            <phase>verify</phase>
+            <goals>
+              <goal>sign</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <executions>
           <execution>
             <id>attach-sources</id>
-            <phase>verify</phase>
             <goals>
               <goal>jar</goal>
             </goals>
         <executions>
           <execution>
             <id>attach-javadoc</id>
-            <phase>verify</phase>
             <goals>
               <goal>jar</goal>
             </goals>