Adding bintray as distribution maven repo

This commit is contained in:
Alexander Kuznetsov 2015-06-09 18:42:15 +03:00
parent 1323228212
commit d694f558a6
2 changed files with 62 additions and 47 deletions

103
pom.xml
View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<groupId>org.apache.lucene.morphology</groupId>
<artifactId>morphology</artifactId>
@ -9,28 +10,19 @@
<url>http://maven.apache.org</url>
<scm>
<connection>scm:svn:http://russianmorphology.googlecode.com/svn/trunk/</connection>
<developerConnection>scm:svn:https://russianmorphology.googlecode.com/svn/trunk/</developerConnection>
<connection>scm:git:https://github.com/AKuznetsov/russianmorphology.git</connection>
<developerConnection>scm:git:git@github.com:AKuznetsov/russianmorphology.git</developerConnection>
<url>https://github.com/AKuznetsov/russianmorphology</url>
<tag>HEAD</tag>
</scm>
<distributionManagement>
<repository>
<id>russian-morphology</id>
<url>
file://../repo/releases
</url>
<id>bintray</id>
<url>https://api.bintray.com/maven/akuznetsov/russianmorphology/morphology</url>
</repository>
<snapshotRepository>
<id>russian-morphology-snapshots</id>
<url>
file://../repo/snapshots
</url>
<uniqueVersion>true</uniqueVersion>
</snapshotRepository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
@ -38,26 +30,22 @@
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>1.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>5.0.0</version>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-common</artifactId>
<version>5.0.0</version>
<version>5.1.0</version>
</dependency>
</dependencies>
<repositories>
@ -66,34 +54,42 @@
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2/</url>
</repository>
<repository>
<id>bintray</id>
<url>http://dl.bintray.com/akuznetsov/russianmorphology</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>mc-release</id>
<name>maven-license-plugin repository of releases</name>
<url>http://mc-repo.googlecode.com/svn/maven2/releases</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
<build>
<extensions>
<extension>
<groupId>org.jvnet.wagon-svn</groupId>
<artifactId>wagon-svn</artifactId>
<version>1.8</version>
</extension>
</extensions>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -103,13 +99,9 @@
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<!--
usage: http://code.google.com/p/maven-license-plugin/wiki/HowTo
-->
<plugin> <!-- usage: http://code.google.com/p/maven-license-plugin/wiki/HowTo -->
<artifactId>maven-license-plugin</artifactId>
<groupId>com.mathieucarbou.mojo</groupId>
<configuration>
<basedir>${project.parent.basedir}</basedir>
<header>etc/header.txt</header>
@ -122,7 +114,6 @@
<include>**/src/**</include>
</includes>
</configuration>
<executions>
<execution>
<phase>test</phase>
@ -134,7 +125,37 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<modules>
<module>morph</module>
<module>dictionary-reader</module>

View File

@ -1,6 +0,0 @@
#release configuration
#Mon Oct 19 21:22:02 MSD 2009
preparationGoals=clean verify
scm.commentPrefix=[maven-release-plugin]
completedPhase=check-poms
scm.url=scm\:svn\:https\://russianmorphology.googlecode.com/svn/trunk/