Deploy release artifacts into the staging repository

This commit is contained in:
magese 2018-05-11 13:54:01 +08:00
parent 7874945bc4
commit 059dffda6f
5 changed files with 148 additions and 60 deletions

195
pom.xml
View File

@ -1,64 +1,155 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wltea.ik-analyzer</groupId> <groupId>com.github.magese</groupId>
<artifactId>ik-analyzer-solr</artifactId> <artifactId>ik-analyzer-solr7</artifactId>
<version>7.x</version> <version>7.x</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>ik-analyzer-solr</name> <name>ik-analyzer-solr7</name>
<url>http://code.google.com/p/ik-analyzer/</url> <url>http://code.google.com/p/ik-analyzer/</url>
<description>IK-Analyzer for solr7.x</description>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<lucene.version>7.3.0</lucene.version>
<javac.src.version>1.8</javac.src.version>
<javac.target.version>1.8</javac.target.version>
<maven.compiler.plugin.version>3.3</maven.compiler.plugin.version>
</properties>
<lucene.version>7.3.0</lucene.version> <dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<javac.src.version>1.8</javac.src.version> <dependency>
<javac.target.version>1.8</javac.target.version> <groupId>org.apache.lucene</groupId>
<maven.compiler.plugin.version>3.3</maven.compiler.plugin.version> <artifactId>lucene-core</artifactId>
</properties> <version>${lucene.version}</version>
</dependency>
<dependencies> <dependency>
<dependency> <groupId>org.apache.lucene</groupId>
<groupId>junit</groupId> <artifactId>lucene-queryparser</artifactId>
<artifactId>junit</artifactId> <version>${lucene.version}</version>
<version>4.11</version> </dependency>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.apache.lucene</groupId> <groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId> <artifactId>lucene-analyzers-common</artifactId>
<version>${lucene.version}</version> <version>${lucene.version}</version>
</dependency> </dependency>
</dependencies>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-queryparser</artifactId>
<version>${lucene.version}</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-common</artifactId>
<version>${lucene.version}</version>
</dependency>
</dependencies>
<build> <licenses>
<plugins> <license>
<plugin> <name>The Apache Software License, Version 2.0</name>
<artifactId>maven-compiler-plugin</artifactId> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<configuration> <distribution>repo</distribution>
<target>${javac.src.version}</target> </license>
<source>${javac.target.version}</source> </licenses>
</configuration> <scm>
<version>${maven.compiler.plugin.version}</version> <tag>master</tag>
</plugin> <url>https://github.com/magese/ik-analyzer-solr7</url>
</plugins> <connection>scm:git:git@github.com:magese/ik-analyzer-solr7.git</connection>
</build> <developerConnection>scm:git:git@github.com:magese/ik-analyzer-solr7.git</developerConnection>
</scm>
<developers>
<developer>
<name>magese</name>
<email>magese@live.cn</email>
</developer>
</developers>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>${javac.src.version}</source>
<target>${javac.src.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<configuration>
<aggregate>true</aggregate>
</configuration>
</plugin>
</plugins>
<defaultGoal>compile</defaultGoal>
</build>
<profiles>
<profile>
<id>release</id>
<distributionManagement>
<snapshotRepository>
<id>oss</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>oss</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<build>
<plugins>
<!-- Source -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Javadoc -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Gpg Signature -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>

View File

@ -46,7 +46,7 @@ public interface Configuration {
/** /**
* 获取扩展字典配置路径 * 获取扩展字典配置路径
* *
* @return List<String> 相对类加载器的路径 * @return 相对类加载器的路径
*/ */
List<String> getExtDictionarys(); List<String> getExtDictionarys();
@ -54,7 +54,7 @@ public interface Configuration {
/** /**
* 获取扩展停止词典配置路径 * 获取扩展停止词典配置路径
* *
* @return List<String> 相对类加载器的路径 * @return 相对类加载器的路径
*/ */
List<String> getExtStopWordDictionarys(); List<String> getExtStopWordDictionarys();

View File

@ -103,7 +103,7 @@ public class DefaultConfig implements Configuration {
/** /**
* 获取扩展字典配置路径 * 获取扩展字典配置路径
* *
* @return List<String> 相对类加载器的路径 * @return 相对类加载器的路径
*/ */
public List<String> getExtDictionarys() { public List<String> getExtDictionarys() {
List<String> extDictFiles = new ArrayList<>(2); List<String> extDictFiles = new ArrayList<>(2);
@ -124,7 +124,7 @@ public class DefaultConfig implements Configuration {
/** /**
* 获取扩展停止词典配置路径 * 获取扩展停止词典配置路径
* *
* @return List<String> 相对类加载器的路径 * @return 相对类加载器的路径
*/ */
public List<String> getExtStopWordDictionarys() { public List<String> getExtStopWordDictionarys() {
List<String> extStopWordDictFiles = new ArrayList<>(2); List<String> extStopWordDictFiles = new ArrayList<>(2);

View File

@ -118,7 +118,7 @@ public class Dictionary {
/** /**
* 批量加载新词条 * 批量加载新词条
* *
* @param words Collection<String>词条列表 * @param words 词条列表
*/ */
public void addWords(Collection<String> words) { public void addWords(Collection<String> words) {
if (words != null) { if (words != null) {

View File

@ -18,9 +18,6 @@ import java.util.Stack;
/** /**
* IK简易查询表达式解析 * IK简易查询表达式解析
* 结合SWMCQuery算法 * 结合SWMCQuery算法
* <p>
* 表达式例子
* (id='1231231' && title:'monkey') || (content:'你好吗' || ulr='www.ik.com') - name:'helloword'
* *
* @author linliangyi * @author linliangyi
*/ */