Skip to content
Browse files

Updates for #1385: add org.sonatype.oss:oss-parent as super-pom's par…

…ent for publishing to sonatype.

Also fixing repositories to point to oss.sonatype.org repos
Added maven-gpg-plugin auto-activated for release to sonatype.
  • Loading branch information...
1 parent a1eb73c commit 6263add4104ec3cad8c7a573cb2bfd98abf977f8 @ldeck ldeck committed
Showing with 46 additions and 8 deletions.
  1. +46 −8 pom.xml
View
54 pom.xml
@@ -31,6 +31,15 @@
-->
<!--
+ ~ Sonatype OSS parent (for publishing to maven central)
+ -->
+ <parent>
+ <groupId>org.sonatype.oss</groupId>
+ <artifactId>oss-parent</artifactId>
+ <version>7</version>
+ </parent>
+
+ <!--
~ The Basics
-->
<groupId>net.liftweb</groupId>
@@ -89,21 +98,22 @@
<url>http://hudson.scala-tools.org/job/lift-archetypes/</url>
<!-- <notifiers/> -->
</ciManagement>
+
<distributionManagement>
<repository>
- <id>nexus.scala-tools.org</id>
- <name>Scala-Tools Distribution Repository for Releases</name>
- <url>http://nexus.scala-tools.org/content/repositories/releases</url>
+ <id>ossrh-staging</id>
+ <url>http://oss.sonatype.org/service/local/staging/deploy/maven2</url>
+ <layout>default</layout>
</repository>
<snapshotRepository>
- <id>nexus.scala-tools.org</id>
- <name>Scala-Tools Distribution Repository for Snapshots</name>
- <url>http://nexus.scala-tools.org/content/repositories/snapshots</url>
- <uniqueVersion>false</uniqueVersion>
+ <id>ossrh-snapshots</id>
+ <url>http://oss.sonatype.org/content/repositories/snapshots</url>
+ <layout>default</layout>
</snapshotRepository>
<!-- Site omitted, each project/profile must provide their own -->
<!--<site />-->
</distributionManagement>
+
<properties>
<!-- Common plugin settings -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -215,6 +225,34 @@
<!--
~ Profile Settings
-->
- <!-- <profiles/> -->
+ <!-- mvn -Darguments="-Dgpg.passphrase=xxxx" release:perform -->
+ <profiles>
+ <profile>
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <version>1.4</version>
+ <executions>
+ <execution>
+ <id>sign-artifacts</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>

0 comments on commit 6263add

Please sign in to comment.
Something went wrong with that request. Please try again.