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

589
pom.xml
View File

@ -1,298 +1,291 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.xerial.snappy</groupId> <groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId> <artifactId>snappy-java</artifactId>
<version>1.0.5-SNAPSHOT</version> <version>1.0.5-SNAPSHOT</version>
<name>Snappy for Java</name> <name>Snappy for Java</name>
<description>snappy-java: A fast compression/decompression library</description> <description>snappy-java: A fast compression/decompression library</description>
<packaging>bundle</packaging> <packaging>bundle</packaging>
<properties> <parent>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <groupId>org.sonatype.oss</groupId>
</properties> <artifactId>oss-parent</artifactId>
<version>7</version>
<licenses> </parent>
<license>
<name>The Apache Software License, Version 2.0</name> <properties>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<distribution>repo</distribution> </properties>
</license>
</licenses> <licenses>
<license>
<developers> <name>The Apache Software License, Version 2.0</name>
<developer> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<id>leo</id> <distribution>repo</distribution>
<name>Taro L. Saito</name> </license>
<email>leo@xerial.org</email> </licenses>
<organization>Xerial Project</organization>
<roles> <developers>
<role>Architect</role> <developer>
<role>Project Manager</role> <id>leo</id>
<role>Chief Developer</role> <name>Taro L. Saito</name>
</roles> <email>leo@xerial.org</email>
<timezone>+9</timezone> <organization>Xerial Project</organization>
</developer> <roles>
</developers> <role>Architect</role>
<role>Project Manager</role>
<organization> <role>Chief Developer</role>
<name>xerial.org</name> </roles>
<url>http://www.xerial.org/</url> <timezone>+9</timezone>
</organization> </developer>
</developers>
<build>
<resources> <organization>
<resource> <name>xerial.org</name>
<directory>src/main/java</directory> <url>http://www.xerial.org/</url>
<includes> </organization>
<include>org/xerial/snappy/VERSION</include>
</includes> <build>
</resource> <resources>
<resource> <resource>
<directory>src/main/resources</directory> <directory>src/main/java</directory>
<includes> <includes>
<include>org/xerial/snappy/*.bytecode</include> <include>org/xerial/snappy/VERSION</include>
<include>org/xerial/snappy/native/**</include> </includes>
</includes> </resource>
</resource> <resource>
<resource> <directory>src/main/resources</directory>
<directory>${basedir}</directory> <includes>
<targetPath>META-INF/maven/${project.groupId}/${project.artifactId}</targetPath> <include>org/xerial/snappy/*.bytecode</include>
<includes> <include>org/xerial/snappy/native/**</include>
<include>LICENSE*</include> </includes>
</includes> </resource>
</resource> <resource>
</resources> <directory>${basedir}</directory>
<testResources> <targetPath>META-INF/maven/${project.groupId}/${project.artifactId}</targetPath>
<testResource> <includes>
<directory>src/test/java</directory> <include>LICENSE*</include>
<excludes> </includes>
<exclude>**/*.java</exclude> </resource>
</excludes> </resources>
</testResource> <testResources>
<testResource> <testResource>
<directory>src/test/resources</directory> <directory>src/test/java</directory>
</testResource> <excludes>
</testResources> <exclude>**/*.java</exclude>
</excludes>
</testResource>
<plugins> <testResource>
<plugin> <directory>src/test/resources</directory>
<groupId>org.apache.maven.plugins</groupId> </testResource>
<artifactId>maven-resources-plugin</artifactId> </testResources>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding> <plugins>
</configuration> <plugin>
</plugin> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<plugin> <version>2.5</version>
<groupId>org.apache.maven.plugins</groupId> <configuration>
<artifactId>maven-compiler-plugin</artifactId> <encoding>UTF-8</encoding>
<version>2.0.2</version> </configuration>
<configuration> </plugin>
<source>1.5</source>
<target>1.5</target> <plugin>
</configuration> <groupId>org.apache.maven.plugins</groupId>
</plugin> <artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<plugin> <configuration>
<artifactId>maven-release-plugin</artifactId> <source>1.5</source>
<version>2.1</version> <target>1.5</target>
<configuration> </configuration>
<!-- do not run site-deploy goal, included in the default settings --> </plugin>
<goals>deploy</goals>
<connectionUrl>scm:hg:https://snappy-java.googlecode.com/hg/</connectionUrl> <plugin>
</configuration> <artifactId>maven-release-plugin</artifactId>
</plugin> <version>2.1</version>
<configuration>
<plugin> <!-- do not run site-deploy goal, included in the default settings -->
<groupId>org.apache.maven.plugins</groupId> <goals>deploy</goals>
<artifactId>maven-javadoc-plugin</artifactId> <connectionUrl>scm:git:git@github.com:xerial/snappy-java/</connectionUrl>
<version>2.8</version> </configuration>
<configuration> </plugin>
<charset>UTF-8</charset>
<locale>en_US</locale> <plugin>
<show>public</show> <groupId>org.apache.maven.plugins</groupId>
<stylesheetfile>stylesheet.css</stylesheetfile> <artifactId>maven-gpg-plugin</artifactId>
</configuration> <version>1.4</version>
<executions> <configuration>
<execution> <useAgent>true</useAgent>
<id>attach-javadocs</id> </configuration>
<phase>verify</phase> <executions>
<goals> <execution>
<goal>jar</goal> <id>sign-artifacts</id>
</goals> <phase>verify</phase>
</execution> <goals>
</executions> <goal>sign</goal>
</plugin> </goals>
</execution>
<plugin> </executions>
<groupId>org.apache.maven.plugins</groupId> </plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version> <plugin>
<configuration> <groupId>org.apache.maven.plugins</groupId>
<excludeResources>true</excludeResources> <artifactId>maven-javadoc-plugin</artifactId>
</configuration> <version>2.8</version>
<executions> <configuration>
<execution> <charset>UTF-8</charset>
<id>attach-sources</id> <locale>en_US</locale>
<phase>verify</phase> <show>public</show>
<goals> <stylesheetfile>stylesheet.css</stylesheetfile>
<goal>jar</goal> </configuration>
</goals> <executions>
</execution> <execution>
</executions> <id>attach-javadocs</id>
</plugin> <phase>verify</phase>
<goals>
<plugin> <goal>jar</goal>
<groupId>org.apache.felix</groupId> </goals>
<artifactId>maven-bundle-plugin</artifactId> </execution>
<version>2.3.4</version> </executions>
<extensions>true</extensions> </plugin>
<configuration>
<instructions> <plugin>
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName> <groupId>org.apache.maven.plugins</groupId>
<Bundle-Name>${pproject.name}</Bundle-Name> <artifactId>maven-source-plugin</artifactId>
<Bundle-Version>${project.version}</Bundle-Version> <version>2.1.2</version>
<Bundle-Activator>org.xerial.snappy.SnappyBundleActivator</Bundle-Activator> <configuration>
<Export-Package>org.xerial.snappy</Export-Package> <excludeResources>true</excludeResources>
<Import-Package>org.osgi.framework;version="[1.5,2)"</Import-Package> </configuration>
</instructions> <executions>
</configuration> <execution>
</plugin> <id>attach-sources</id>
<phase>verify</phase>
<plugin> <goals>
<artifactId>maven-assembly-plugin</artifactId> <goal>jar-no-fork</goal>
<version>2.2.1</version> </goals>
<configuration> </execution>
<descriptors> </executions>
<descriptor>src/assembly/project.xml</descriptor> </plugin>
</descriptors>
<appendAssemblyId>false</appendAssemblyId> <plugin>
<attach>false</attach> <groupId>org.apache.felix</groupId>
</configuration> <artifactId>maven-bundle-plugin</artifactId>
<executions> <version>2.3.4</version>
<execution> <extensions>true</extensions>
<id>make-assembly</id> <configuration>
<phase>package</phase> <instructions>
<goals> <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
<goal>single</goal> <Bundle-Name>${pproject.name}</Bundle-Name>
</goals> <Bundle-Version>${project.version}</Bundle-Version>
</execution> <Bundle-Activator>org.xerial.snappy.SnappyBundleActivator</Bundle-Activator>
</executions> <Export-Package>org.xerial.snappy</Export-Package>
</plugin> <Import-Package>org.osgi.framework;version="[1.5,2)"</Import-Package>
</plugins> </instructions>
</configuration>
<extensions> </plugin>
<extension>
<groupId>org.apache.maven.wagon</groupId> <plugin>
<artifactId>wagon-ssh-external</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<version>1.0-beta-7</version> <version>2.2.1</version>
</extension> <configuration>
</extensions> <descriptors>
<descriptor>src/assembly/project.xml</descriptor>
</build> </descriptors>
<appendAssemblyId>false</appendAssemblyId>
<attach>false</attach>
<url>http://code.google.com/p/snappy-java/</url> </configuration>
<issueManagement> <executions>
<system>Google Code</system> <execution>
<url>http://code.google.com/p/snappy-java/issues/list</url> <id>make-assembly</id>
</issueManagement> <phase>package</phase>
<inceptionYear>2011</inceptionYear> <goals>
<scm> <goal>single</goal>
<connection>scm:hg:https://snappy-java.googlecode.com/hg/</connection> </goals>
<developerConnection>scm:hg:default</developerConnection> </execution>
<url>scm:hg:https://snappy-java.googlecode.com/hg/</url> </executions>
</scm> </plugin>
</plugins>
<distributionManagement>
<!-- for development releases --> <extensions>
<site> <extension>
<id>xerial.scp</id> <groupId>org.apache.maven.wagon</groupId>
<url>scpexe://www.xerial.org/home/web/maven.xerial.org/repository/site</url> <artifactId>wagon-ssh-external</artifactId>
</site> <version>1.0-beta-7</version>
<repository> </extension>
<id>xerial.scp</id> </extensions>
<name>Xerial Maven Repository</name>
<url>scpexe://www.xerial.org/home/web/maven.xerial.org/repository/artifact</url> </build>
</repository>
<snapshotRepository>
<id>xerial.scp</id> <url>http://github.com/xerial/snappy-java/</url>
<name>Xerial Maven Snapshot Repository</name> <issueManagement>
<url>scpexe://www.xerial.org/home/web/maven.xerial.org/repository/snapshot</url> <system>GitHub</system>
<uniqueVersion>false</uniqueVersion> <url>http://github.com/xerial/snappy-java/issues/list</url>
</snapshotRepository> </issueManagement>
</distributionManagement> <inceptionYear>2011</inceptionYear>
<scm>
<profiles> <connection>scm:git@github.com:xerial/snappy-java.git</connection>
<!-- for directly sending artifacts to sourceforge.net repository --> <developerConnection>scm:git:git@github.com:xerial/snappy-java.git</developerConnection>
<profile> <url>git@github.com:xerial/snappy-java.git</url>
<id>sourceforge</id> </scm>
<distributionManagement>
<repository> <profiles>
<id>xerial.sourceforge</id> <!-- for local updates -->
<name>Xerial maven repository at sourceforge.jp</name> <profile>
<url>scpexe://shell.sourceforge.jp/home/groups/x/xe/xerial/htdocs/maven/release</url> <id>xerial.local</id>
</repository> <distributionManagement>
</distributionManagement> <repository>
</profile> <id>xerial.local</id>
<name>Xerial Maven Repository</name>
<!-- for local updates --> <url>file:///home/web/maven.xerial.org/repository/artifact</url>
<profile> </repository>
<id>xerial.local</id> <snapshotRepository>
<distributionManagement> <id>xerial.local</id>
<repository> <name>Xerial Maven Snapshot Repository</name>
<id>xerial.local</id> <url>file:///home/web/maven.xerial.org/repository/snapshot</url>
<name>Xerial Maven Repository</name> <uniqueVersion>false</uniqueVersion>
<url>file:///home/web/maven.xerial.org/repository/artifact</url> </snapshotRepository>
</repository> <site>
<snapshotRepository> <id>xerial.local</id>
<id>xerial.local</id> <url>file:///home/web/maven.xerial.org/repository/site</url>
<name>Xerial Maven Snapshot Repository</name> </site>
<url>file:///home/web/maven.xerial.org/repository/snapshot</url> </distributionManagement>
<uniqueVersion>false</uniqueVersion> </profile>
</snapshotRepository> </profiles>
<site>
<id>xerial.local</id>
<url>file:///home/web/maven.xerial.org/repository/site</url>
</site> <dependencies>
</distributionManagement> <dependency>
</profile> <groupId>junit</groupId>
</profiles> <artifactId>junit</artifactId>
<version>4.8.2</version>
<type>jar</type>
<scope>test</scope>
<dependencies> </dependency>
<dependency>
<groupId>junit</groupId> <dependency>
<artifactId>junit</artifactId> <groupId>org.codehaus.plexus</groupId>
<version>4.8.2</version> <artifactId>plexus-classworlds</artifactId>
<type>jar</type> <version>2.4</version>
<scope>test</scope> <type>jar</type>
</dependency> <scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.codehaus.plexus</groupId> <groupId>org.osgi</groupId>
<artifactId>plexus-classworlds</artifactId> <artifactId>core</artifactId>
<version>2.4</version> <version>4.3.0</version>
<type>jar</type> <type>jar</type>
<scope>test</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.osgi</groupId> <groupId>org.xerial</groupId>
<artifactId>core</artifactId> <artifactId>xerial-core</artifactId>
<version>4.3.0</version> <version>1.0.21</version>
<type>jar</type> <type>jar</type>
<scope>provided</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> </dependencies>
<groupId>org.xerial</groupId> </project>
<artifactId>xerial-core</artifactId>
<version>1.0.21</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
</project>