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