1
0
mirror of https://github.com/Rogiel/httpchannel synced 2025-12-06 07:32:50 +00:00

Adds necessary code to deploy to OSS Sonatype repository and GitHub

This commit is contained in:
2012-01-17 21:08:46 -02:00
parent 673bfc6639
commit ff4abca387

140
pom.xml
View File

@@ -11,24 +11,27 @@
<description>Library capable of downloading and uploading files from free servers using channels.</description>
<url>http://httpchannel.rogiel.com/</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<scm>
<developerConnection>scm:git:${basedir}</developerConnection>
<connection>scm:git:${basedir}</connection>
<connection>scm:git:git@github.com:seedbox/httpchannel.git</connection>
<developerConnection>scm:git:git@github.com:seedbox/httpchannel.git</developerConnection>
<url>git@github.com:seedbox/httpchannel.git</url>
</scm>
<distributionManagement>
<downloadUrl>http://httpchannel.rogiel.com/maven2/com/rogiel/httpchannel</downloadUrl>
<downloadUrl>http://github.com/seedbox/httpchannel/downloads</downloadUrl>
<repository>
<id>sonatype-nexus-staging</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<uniqueVersion>false</uniqueVersion>
<id>httpchannel-repository</id>
<name>HttpChannel Maven Repository</name>
<url>scp://rogiels@rogiel.com/home/rogiels/httpchannel.rogiel.com/maven2</url>
<layout>default</layout>
</repository>
<site>
<id>httpchannel-site</id>
<name>httpchannel-site</name>
<url>scp://rogiels@rogiel.com/home/rogiels/httpchannel.rogiel.com</url>
</site>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<uniqueVersion>true</uniqueVersion>
</snapshotRepository>
</distributionManagement>
<issueManagement>
<system>GitHub</system>
@@ -76,6 +79,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.11</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
@@ -83,16 +87,45 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<configuration>
<uniqueVersion>false</uniqueVersion>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
<configuration>
<skipDeploy>true</skipDeploy>
<outputEncoding>UTF-8</outputEncoding>
<reportPlugins>
<plugin>
@@ -108,9 +141,7 @@
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.4</version>
<configuration>
<developerConnection>scm:git@github.com:seedbox/httpchannel.git</developerConnection>
<anonymousConnection>scm:git://github.com/seedbox/httpchannel.git</anonymousConnection>
<webAccessUrl>https://github.com/seedbox/httpchannel</webAccessUrl>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
@@ -132,37 +163,78 @@
</plugin>
</reportPlugins>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>2.1</version>
</dependency>
</dependencies>
</plugin>
<!-- <plugin> -->
<!-- <groupId>com.github.github</groupId> -->
<!-- <artifactId>site-maven-plugin</artifactId> -->
<!-- <version>0.4</version> -->
<!-- <configuration> -->
<!-- </configuration> -->
<!-- <executions> -->
<!-- <execution> -->
<!-- <phase>site-deploy</phase> -->
<!-- <goals> -->
<!-- <goal>site</goal> -->
<!-- </goals> -->
<!-- </execution> -->
<!-- </executions> -->
<!-- </plugin> -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<groupId>com.github.github</groupId>
<artifactId>downloads-maven-plugin</artifactId>
<version>0.4</version>
<configuration>
<uniqueVersion>false</uniqueVersion>
<repositoryOwner>seedbox</repositoryOwner>
<repositoryName>httpchannel</repositoryName>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>2.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>upload</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release-sign-artifacts</id>
<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>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.9</version>
<version>4.10</version>
<type>jar</type>
<scope>test</scope>
</dependency>