pom.xml 11.0 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>
M
muliuyun 已提交
15
        <elasticsearch.version>6.1.3</elasticsearch.version>
weixin_43283383's avatar
weixin_43283383 已提交
16
        <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
    <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>
weixin_43283383's avatar
weixin_43283383 已提交
54
        <version>9</version>
weixin_43283383's avatar
weixin_43283383 已提交
55 56
    </parent>

weixin_43283383's avatar
weixin_43283383 已提交
57 58 59 60 61 62 63 64 65 66 67
    <distributionManagement>
        <snapshotRepository>
            <id>oss.sonatype.org</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>oss.sonatype.org</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>

68
    <repositories>
weixin_43283383's avatar
weixin_43283383 已提交
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
        <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>
85

86

goBD's avatar
goBD 已提交
87
        <dependency>
88 89 90 91
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.5.2</version>
        </dependency>
weixin_43283383's avatar
weixin_43283383 已提交
92 93

        <dependency>
94 95 96
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-api</artifactId>
            <version>2.3</version>
weixin_43283383's avatar
weixin_43283383 已提交
97 98 99 100 101
        </dependency>

        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
102
            <version>1.3</version>
weixin_43283383's avatar
weixin_43283383 已提交
103 104 105 106 107 108
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-library</artifactId>
109
            <version>1.3</version>
weixin_43283383's avatar
weixin_43283383 已提交
110 111 112 113 114
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
115
            <version>4.12</version>
weixin_43283383's avatar
weixin_43283383 已提交
116 117 118 119 120 121 122 123 124
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
125
                <version>3.5.1</version>
weixin_43283383's avatar
weixin_43283383 已提交
126
                <configuration>
weixin_43283383's avatar
weixin_43283383 已提交
127 128
                    <source>${maven.compiler.target}</source>
                    <target>${maven.compiler.target}</target>
weixin_43283383's avatar
weixin_43283383 已提交
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
                </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>
156

weixin_43283383's avatar
weixin_43283383 已提交
157
                <configuration>
158
                    <appendAssemblyId>false</appendAssemblyId>
weixin_43283383's avatar
weixin_43283383 已提交
159 160 161 162
                    <outputDirectory>${project.build.directory}/releases/</outputDirectory>
                    <descriptors>
                        <descriptor>${basedir}/src/main/assemblies/plugin.xml</descriptor>
                    </descriptors>
D
David Yun 已提交
163 164 165 166 167
                    <archive>
                        <manifest>
                            <mainClass>fully.qualified.MainClass</mainClass>
                        </manifest>
                    </archive>
weixin_43283383's avatar
weixin_43283383 已提交
168 169 170 171 172 173 174 175 176 177 178 179
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
180
    <profiles>
181 182 183 184 185 186 187 188 189
        <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 已提交
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
            <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>
weixin_43283383's avatar
weixin_43283383 已提交
219
                            <version>3.5.1</version>
weixin_43283383's avatar
weixin_43283383 已提交
220
                            <configuration>
weixin_43283383's avatar
weixin_43283383 已提交
221 222
                                <source>${maven.compiler.target}</source>
                                <target>${maven.compiler.target}</target>
weixin_43283383's avatar
weixin_43283383 已提交
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 257 258 259 260 261 262 263 264 265 266 267
                            </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>
268
    </profiles>
weixin_43283383's avatar
weixin_43283383 已提交
269
</project>