pom.xml 10.5 KB
Newer Older
weixin_43283383's avatar
weixin_43283383 已提交
1 2 3 4 5 6 7 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/xsd/maven-4.0.0.xsd">
    <name>elasticsearch-analysis-ik</name>
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.elasticsearch</groupId>
    <artifactId>elasticsearch-analysis-ik</artifactId>
weixin_43283383's avatar
weixin_43283383 已提交
9
    <version>${elasticsearch.version}</version>
weixin_43283383's avatar
weixin_43283383 已提交
10
    <packaging>jar</packaging>
weixin_43283383's avatar
weixin_43283383 已提交
11
    <description>IK Analyzer for Elasticsearch</description>
12
    <inceptionYear>2011</inceptionYear>
weixin_43283383's avatar
weixin_43283383 已提交
13 14

    <properties>
weixin_43283383's avatar
weixin_43283383 已提交
15 16
        <elasticsearch.version>5.0.0-alpha5</elasticsearch.version>
        <maven.compiler.target>1.8</maven.compiler.target>
weixin_43283383's avatar
weixin_43283383 已提交
17
        <elasticsearch.assembly.descriptor>${project.basedir}/src/main/assemblies/plugin.xml</elasticsearch.assembly.descriptor>
weixin_43283383's avatar
weixin_43283383 已提交
18
        <elasticsearch.plugin.name>analysis-ik</elasticsearch.plugin.name>
weixin_43283383's avatar
weixin_43283383 已提交
19 20 21 22
        <elasticsearch.plugin.classname>org.elasticsearch.plugin.analysis.ik.AnalysisIkPlugin</elasticsearch.plugin.classname>
        <elasticsearch.plugin.jvm>true</elasticsearch.plugin.jvm>
        <tests.rest.load_packaged>false</tests.rest.load_packaged>
        <skip.unit.tests>true</skip.unit.tests>
weixin_43283383's avatar
weixin_43283383 已提交
23 24
        <gpg.keyname>4E899B30</gpg.keyname>
        <gpg.useagent>true</gpg.useagent> 
weixin_43283383's avatar
weixin_43283383 已提交
25 26
    </properties>

weixin_43283383's avatar
weixin_43283383 已提交
27 28 29 30 31 32 33
    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
weixin_43283383's avatar
weixin_43283383 已提交
34

weixin_43283383's avatar
weixin_43283383 已提交
35 36 37 38 39 40 41 42 43
    <developers>
        <developer>
            <name>Medcl</name>
            <email>medcl@elastic.co</email>
            <organization>elastic</organization>
            <organizationUrl>http://www.elastic.co</organizationUrl>
        </developer>
    </developers>

weixin_43283383's avatar
weixin_43283383 已提交
44 45 46 47 48 49 50 51 52 53 54 55 56
    <scm>
        <connection>scm:git:git@github.com:medcl/elasticsearch-analysis-ik.git</connection>
        <developerConnection>scm:git:git@github.com:medcl/elasticsearch-analysis-ik.git
        </developerConnection>
        <url>http://github.com/medcl/elasticsearch-analysis-ik</url>
    </scm>

    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>7</version>
    </parent>

57
    <repositories>
weixin_43283383's avatar
weixin_43283383 已提交
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
        <repository>
            <id>oss.sonatype.org</id>
            <name>OSS Sonatype</name>
            <releases><enabled>true</enabled></releases>
            <snapshots><enabled>true</enabled></snapshots>
            <url>http://oss.sonatype.org/content/repositories/releases/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>org.elasticsearch</groupId>
            <artifactId>elasticsearch</artifactId>
            <version>${elasticsearch.version}</version>
            <scope>compile</scope>
        </dependency>
74

goBD's avatar
goBD 已提交
75
        <dependency>
76 77 78 79
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.5.2</version>
        </dependency>
weixin_43283383's avatar
weixin_43283383 已提交
80 81 82 83

        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
84
            <version>1.2.17</version>
weixin_43283383's avatar
weixin_43283383 已提交
85 86 87 88 89 90
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
91
            <version>1.3</version>
weixin_43283383's avatar
weixin_43283383 已提交
92 93 94 95 96 97
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-library</artifactId>
98
            <version>1.3</version>
weixin_43283383's avatar
weixin_43283383 已提交
99 100 101 102 103
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
104
            <version>4.12</version>
weixin_43283383's avatar
weixin_43283383 已提交
105 106 107 108 109 110 111 112 113
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
114
                <version>3.5.1</version>
weixin_43283383's avatar
weixin_43283383 已提交
115
                <configuration>
weixin_43283383's avatar
weixin_43283383 已提交
116 117
                    <source>1.8</source>
                    <target>1.8</target>
weixin_43283383's avatar
weixin_43283383 已提交
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.11</version>
                <configuration>
                    <includes>
                        <include>**/*Tests.java</include>
                    </includes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.1.2</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
145

weixin_43283383's avatar
weixin_43283383 已提交
146
                <configuration>
147
                    <appendAssemblyId>false</appendAssemblyId>
weixin_43283383's avatar
weixin_43283383 已提交
148 149 150 151
                    <outputDirectory>${project.build.directory}/releases/</outputDirectory>
                    <descriptors>
                        <descriptor>${basedir}/src/main/assemblies/plugin.xml</descriptor>
                    </descriptors>
D
David Yun 已提交
152 153 154 155 156
                    <archive>
                        <manifest>
                            <mainClass>fully.qualified.MainClass</mainClass>
                        </manifest>
                    </archive>
weixin_43283383's avatar
weixin_43283383 已提交
157 158 159 160 161 162 163 164 165 166 167 168
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
169
    <profiles>
170 171 172 173 174 175 176 177 178
        <profile>
            <id>disable-java8-doclint</id>
            <activation>
                <jdk>[1.8,)</jdk>
            </activation>
            <properties>
                <additionalparam>-Xdoclint:none</additionalparam>
            </properties>
        </profile>
weixin_43283383's avatar
weixin_43283383 已提交
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
            <profile>
                <id>release</id>
                <build>
                    <plugins>
                        <plugin>
                            <groupId>org.sonatype.plugins</groupId>
                            <artifactId>nexus-staging-maven-plugin</artifactId>
                            <version>1.6.3</version>
                            <extensions>true</extensions>
                            <configuration>
                                <serverId>oss</serverId>
                                <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                                <autoReleaseAfterClose>true</autoReleaseAfterClose>
                            </configuration>
                        </plugin>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-release-plugin</artifactId>
                            <version>2.1</version>
                            <configuration>
                                <autoVersionSubmodules>true</autoVersionSubmodules>
                                <useReleaseProfile>false</useReleaseProfile>
                                <releaseProfiles>release</releaseProfiles>
                                <goals>deploy</goals>
                            </configuration>
                        </plugin>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-compiler-plugin</artifactId>
                            <version>2.3.2</version>
                            <configuration>
weixin_43283383's avatar
weixin_43283383 已提交
210 211
                                <source>1.8</source>
                                <target>1.8</target>
weixin_43283383's avatar
weixin_43283383 已提交
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256
                            </configuration>
                        </plugin>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-gpg-plugin</artifactId>
                            <version>1.5</version>
                            <executions>
                                <execution>
                                    <id>sign-artifacts</id>
                                    <phase>verify</phase>
                                    <goals>
                                        <goal>sign</goal>
                                    </goals>
                                </execution>
                            </executions>
                        </plugin>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-source-plugin</artifactId>
                            <version>2.2.1</version>
                            <executions>
                                <execution>
                                    <id>attach-sources</id>
                                    <goals>
                                        <goal>jar-no-fork</goal>
                                    </goals>
                                </execution>
                            </executions>
                        </plugin>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-javadoc-plugin</artifactId>
                            <version>2.9</version>
                            <executions>
                                <execution>
                                    <id>attach-javadocs</id>
                                    <goals>
                                        <goal>jar</goal>
                                    </goals>
                                </execution>
                            </executions>
                        </plugin>
                    </plugins>
                </build>
            </profile>
257
    </profiles>
weixin_43283383's avatar
weixin_43283383 已提交
258
</project>