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

101
pom.xml
View File

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