Set the ditribution target to Sonatype repository

This commit is contained in:
Taro L. Saito 2012-09-06 12:31:41 +09:00
parent 3979f6e1c3
commit 2095e5e739
1 changed files with 291 additions and 298 deletions

71
pom.xml
View File

@ -8,6 +8,12 @@
<description>snappy-java: A fast compression/decompression library</description> <description>snappy-java: A fast compression/decompression library</description>
<packaging>bundle</packaging> <packaging>bundle</packaging>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
@ -102,10 +108,28 @@
<configuration> <configuration>
<!-- do not run site-deploy goal, included in the default settings --> <!-- do not run site-deploy goal, included in the default settings -->
<goals>deploy</goals> <goals>deploy</goals>
<connectionUrl>scm:hg:https://snappy-java.googlecode.com/hg/</connectionUrl> <connectionUrl>scm:git:git@github.com:xerial/snappy-java/</connectionUrl>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<configuration>
<useAgent>true</useAgent>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
@ -139,7 +163,7 @@
<id>attach-sources</id> <id>attach-sources</id>
<phase>verify</phase> <phase>verify</phase>
<goals> <goals>
<goal>jar</goal> <goal>jar-no-fork</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
@ -195,50 +219,19 @@
</build> </build>
<url>http://code.google.com/p/snappy-java/</url> <url>http://github.com/xerial/snappy-java/</url>
<issueManagement> <issueManagement>
<system>Google Code</system> <system>GitHub</system>
<url>http://code.google.com/p/snappy-java/issues/list</url> <url>http://github.com/xerial/snappy-java/issues/list</url>
</issueManagement> </issueManagement>
<inceptionYear>2011</inceptionYear> <inceptionYear>2011</inceptionYear>
<scm> <scm>
<connection>scm:hg:https://snappy-java.googlecode.com/hg/</connection> <connection>scm:git@github.com:xerial/snappy-java.git</connection>
<developerConnection>scm:hg:default</developerConnection> <developerConnection>scm:git:git@github.com:xerial/snappy-java.git</developerConnection>
<url>scm:hg:https://snappy-java.googlecode.com/hg/</url> <url>git@github.com:xerial/snappy-java.git</url>
</scm> </scm>
<distributionManagement>
<!-- for development releases -->
<site>
<id>xerial.scp</id>
<url>scpexe://www.xerial.org/home/web/maven.xerial.org/repository/site</url>
</site>
<repository>
<id>xerial.scp</id>
<name>Xerial Maven Repository</name>
<url>scpexe://www.xerial.org/home/web/maven.xerial.org/repository/artifact</url>
</repository>
<snapshotRepository>
<id>xerial.scp</id>
<name>Xerial Maven Snapshot Repository</name>
<url>scpexe://www.xerial.org/home/web/maven.xerial.org/repository/snapshot</url>
<uniqueVersion>false</uniqueVersion>
</snapshotRepository>
</distributionManagement>
<profiles> <profiles>
<!-- for directly sending artifacts to sourceforge.net repository -->
<profile>
<id>sourceforge</id>
<distributionManagement>
<repository>
<id>xerial.sourceforge</id>
<name>Xerial maven repository at sourceforge.jp</name>
<url>scpexe://shell.sourceforge.jp/home/groups/x/xe/xerial/htdocs/maven/release</url>
</repository>
</distributionManagement>
</profile>
<!-- for local updates --> <!-- for local updates -->
<profile> <profile>
<id>xerial.local</id> <id>xerial.local</id>