pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <name>elasticsearch-analysis-ik</name>
  6. <modelVersion>4.0.0</modelVersion>
  7. <groupId>org.elasticsearch</groupId>
  8. <artifactId>elasticsearch-analysis-ik</artifactId>
  9. <version>${elasticsearch.version}</version>
  10. <packaging>jar</packaging>
  11. <description>IK Analyzer for Elasticsearch</description>
  12. <inceptionYear>2011</inceptionYear>
  13. <properties>
  14. <elasticsearch.version>7.14.0</elasticsearch.version>
  15. <maven.compiler.target>16</maven.compiler.target>
  16. <elasticsearch.assembly.descriptor>${project.basedir}/src/main/assemblies/plugin.xml</elasticsearch.assembly.descriptor>
  17. <elasticsearch.plugin.name>analysis-ik</elasticsearch.plugin.name>
  18. <elasticsearch.plugin.classname>org.elasticsearch.plugin.analysis.ik.AnalysisIkPlugin</elasticsearch.plugin.classname>
  19. <elasticsearch.plugin.jvm>true</elasticsearch.plugin.jvm>
  20. <tests.rest.load_packaged>false</tests.rest.load_packaged>
  21. <skip.unit.tests>true</skip.unit.tests>
  22. <gpg.keyname>4E899B30</gpg.keyname>
  23. <gpg.useagent>true</gpg.useagent>
  24. </properties>
  25. <licenses>
  26. <license>
  27. <name>The Apache Software License, Version 2.0</name>
  28. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  29. <distribution>repo</distribution>
  30. </license>
  31. </licenses>
  32. <developers>
  33. <developer>
  34. <name>Medcl</name>
  35. <email>medcl@elastic.co</email>
  36. <organization>elastic</organization>
  37. <organizationUrl>http://www.elastic.co</organizationUrl>
  38. </developer>
  39. </developers>
  40. <scm>
  41. <connection>scm:git:git@github.com:medcl/elasticsearch-analysis-ik.git</connection>
  42. <developerConnection>scm:git:git@github.com:medcl/elasticsearch-analysis-ik.git
  43. </developerConnection>
  44. <url>http://github.com/medcl/elasticsearch-analysis-ik</url>
  45. </scm>
  46. <parent>
  47. <groupId>org.sonatype.oss</groupId>
  48. <artifactId>oss-parent</artifactId>
  49. <version>9</version>
  50. </parent>
  51. <distributionManagement>
  52. <snapshotRepository>
  53. <id>oss.sonatype.org</id>
  54. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  55. </snapshotRepository>
  56. <repository>
  57. <id>oss.sonatype.org</id>
  58. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  59. </repository>
  60. </distributionManagement>
  61. <repositories>
  62. <repository>
  63. <id>oss.sonatype.org</id>
  64. <name>OSS Sonatype</name>
  65. <releases><enabled>true</enabled></releases>
  66. <snapshots><enabled>true</enabled></snapshots>
  67. <url>http://oss.sonatype.org/content/repositories/releases/</url>
  68. </repository>
  69. </repositories>
  70. <dependencies>
  71. <dependency>
  72. <groupId>org.elasticsearch</groupId>
  73. <artifactId>elasticsearch</artifactId>
  74. <version>${elasticsearch.version}</version>
  75. <scope>compile</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.apache.httpcomponents</groupId>
  79. <artifactId>httpclient</artifactId>
  80. <version>4.5.2</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.logging.log4j</groupId>
  84. <artifactId>log4j-api</artifactId>
  85. <version>2.3</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.hamcrest</groupId>
  89. <artifactId>hamcrest-core</artifactId>
  90. <version>1.3</version>
  91. <scope>test</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.hamcrest</groupId>
  95. <artifactId>hamcrest-library</artifactId>
  96. <version>1.3</version>
  97. <scope>test</scope>
  98. </dependency>
  99. <dependency>
  100. <groupId>junit</groupId>
  101. <artifactId>junit</artifactId>
  102. <version>4.12</version>
  103. <scope>test</scope>
  104. </dependency>
  105. </dependencies>
  106. <build>
  107. <plugins>
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-compiler-plugin</artifactId>
  111. <version>3.5.1</version>
  112. <configuration>
  113. <source>${maven.compiler.target}</source>
  114. <target>${maven.compiler.target}</target>
  115. </configuration>
  116. </plugin>
  117. <plugin>
  118. <groupId>org.apache.maven.plugins</groupId>
  119. <artifactId>maven-surefire-plugin</artifactId>
  120. <version>2.11</version>
  121. <configuration>
  122. <includes>
  123. <include>**/*Tests.java</include>
  124. </includes>
  125. </configuration>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.apache.maven.plugins</groupId>
  129. <artifactId>maven-source-plugin</artifactId>
  130. <version>2.1.2</version>
  131. <executions>
  132. <execution>
  133. <id>attach-sources</id>
  134. <goals>
  135. <goal>jar</goal>
  136. </goals>
  137. </execution>
  138. </executions>
  139. </plugin>
  140. <plugin>
  141. <artifactId>maven-assembly-plugin</artifactId>
  142. <configuration>
  143. <appendAssemblyId>false</appendAssemblyId>
  144. <outputDirectory>${project.build.directory}/releases/</outputDirectory>
  145. <descriptors>
  146. <descriptor>${basedir}/src/main/assemblies/plugin.xml</descriptor>
  147. </descriptors>
  148. <archive>
  149. <manifest>
  150. <mainClass>fully.qualified.MainClass</mainClass>
  151. </manifest>
  152. </archive>
  153. </configuration>
  154. <executions>
  155. <execution>
  156. <phase>package</phase>
  157. <goals>
  158. <goal>single</goal>
  159. </goals>
  160. </execution>
  161. </executions>
  162. </plugin>
  163. </plugins>
  164. </build>
  165. <profiles>
  166. <profile>
  167. <id>disable-java8-doclint</id>
  168. <activation>
  169. <jdk>[1.8,)</jdk>
  170. </activation>
  171. <properties>
  172. <additionalparam>-Xdoclint:none</additionalparam>
  173. </properties>
  174. </profile>
  175. <profile>
  176. <id>release</id>
  177. <build>
  178. <plugins>
  179. <plugin>
  180. <groupId>org.sonatype.plugins</groupId>
  181. <artifactId>nexus-staging-maven-plugin</artifactId>
  182. <version>1.6.3</version>
  183. <extensions>true</extensions>
  184. <configuration>
  185. <serverId>oss</serverId>
  186. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  187. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  188. </configuration>
  189. </plugin>
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-release-plugin</artifactId>
  193. <version>2.1</version>
  194. <configuration>
  195. <autoVersionSubmodules>true</autoVersionSubmodules>
  196. <useReleaseProfile>false</useReleaseProfile>
  197. <releaseProfiles>release</releaseProfiles>
  198. <goals>deploy</goals>
  199. </configuration>
  200. </plugin>
  201. <plugin>
  202. <groupId>org.apache.maven.plugins</groupId>
  203. <artifactId>maven-compiler-plugin</artifactId>
  204. <version>3.5.1</version>
  205. <configuration>
  206. <source>${maven.compiler.target}</source>
  207. <target>${maven.compiler.target}</target>
  208. </configuration>
  209. </plugin>
  210. <plugin>
  211. <groupId>org.apache.maven.plugins</groupId>
  212. <artifactId>maven-gpg-plugin</artifactId>
  213. <version>1.5</version>
  214. <executions>
  215. <execution>
  216. <id>sign-artifacts</id>
  217. <phase>verify</phase>
  218. <goals>
  219. <goal>sign</goal>
  220. </goals>
  221. </execution>
  222. </executions>
  223. </plugin>
  224. <plugin>
  225. <groupId>org.apache.maven.plugins</groupId>
  226. <artifactId>maven-source-plugin</artifactId>
  227. <version>2.2.1</version>
  228. <executions>
  229. <execution>
  230. <id>attach-sources</id>
  231. <goals>
  232. <goal>jar-no-fork</goal>
  233. </goals>
  234. </execution>
  235. </executions>
  236. </plugin>
  237. <plugin>
  238. <groupId>org.apache.maven.plugins</groupId>
  239. <artifactId>maven-javadoc-plugin</artifactId>
  240. <version>2.9</version>
  241. <executions>
  242. <execution>
  243. <id>attach-javadocs</id>
  244. <goals>
  245. <goal>jar</goal>
  246. </goals>
  247. </execution>
  248. </executions>
  249. </plugin>
  250. </plugins>
  251. </build>
  252. </profile>
  253. </profiles>
  254. </project>