pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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>mysql</groupId>
  79. <artifactId>mysql-connector-java</artifactId>
  80. <version>8.0.21</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.redisson</groupId>
  84. <artifactId>redisson</artifactId>
  85. <version>3.11.5</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.apache.httpcomponents</groupId>
  89. <artifactId>httpclient</artifactId>
  90. <version>4.5.2</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.logging.log4j</groupId>
  94. <artifactId>log4j-api</artifactId>
  95. <version>2.3</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.hamcrest</groupId>
  99. <artifactId>hamcrest-core</artifactId>
  100. <version>1.3</version>
  101. <scope>test</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.hamcrest</groupId>
  105. <artifactId>hamcrest-library</artifactId>
  106. <version>1.3</version>
  107. <scope>test</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>junit</groupId>
  111. <artifactId>junit</artifactId>
  112. <version>4.12</version>
  113. <scope>test</scope>
  114. </dependency>
  115. </dependencies>
  116. <build>
  117. <plugins>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-compiler-plugin</artifactId>
  121. <version>3.5.1</version>
  122. <configuration>
  123. <source>${maven.compiler.target}</source>
  124. <target>${maven.compiler.target}</target>
  125. </configuration>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.apache.maven.plugins</groupId>
  129. <artifactId>maven-surefire-plugin</artifactId>
  130. <version>2.11</version>
  131. <configuration>
  132. <includes>
  133. <include>**/*Tests.java</include>
  134. </includes>
  135. </configuration>
  136. </plugin>
  137. <plugin>
  138. <groupId>org.apache.maven.plugins</groupId>
  139. <artifactId>maven-source-plugin</artifactId>
  140. <version>2.1.2</version>
  141. <executions>
  142. <execution>
  143. <id>attach-sources</id>
  144. <goals>
  145. <goal>jar</goal>
  146. </goals>
  147. </execution>
  148. </executions>
  149. </plugin>
  150. <plugin>
  151. <artifactId>maven-assembly-plugin</artifactId>
  152. <configuration>
  153. <appendAssemblyId>false</appendAssemblyId>
  154. <outputDirectory>${project.build.directory}/releases/</outputDirectory>
  155. <descriptors>
  156. <descriptor>${basedir}/src/main/assemblies/plugin.xml</descriptor>
  157. </descriptors>
  158. <archive>
  159. <manifest>
  160. <mainClass>fully.qualified.MainClass</mainClass>
  161. </manifest>
  162. </archive>
  163. </configuration>
  164. <executions>
  165. <execution>
  166. <phase>package</phase>
  167. <goals>
  168. <goal>single</goal>
  169. </goals>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. </plugins>
  174. </build>
  175. <profiles>
  176. <profile>
  177. <id>disable-java8-doclint</id>
  178. <activation>
  179. <jdk>[1.8,)</jdk>
  180. </activation>
  181. <properties>
  182. <additionalparam>-Xdoclint:none</additionalparam>
  183. </properties>
  184. </profile>
  185. <profile>
  186. <id>release</id>
  187. <build>
  188. <plugins>
  189. <plugin>
  190. <groupId>org.sonatype.plugins</groupId>
  191. <artifactId>nexus-staging-maven-plugin</artifactId>
  192. <version>1.6.3</version>
  193. <extensions>true</extensions>
  194. <configuration>
  195. <serverId>oss</serverId>
  196. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  197. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  198. </configuration>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-release-plugin</artifactId>
  203. <version>2.1</version>
  204. <configuration>
  205. <autoVersionSubmodules>true</autoVersionSubmodules>
  206. <useReleaseProfile>false</useReleaseProfile>
  207. <releaseProfiles>release</releaseProfiles>
  208. <goals>deploy</goals>
  209. </configuration>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.apache.maven.plugins</groupId>
  213. <artifactId>maven-compiler-plugin</artifactId>
  214. <version>3.5.1</version>
  215. <configuration>
  216. <source>${maven.compiler.target}</source>
  217. <target>${maven.compiler.target}</target>
  218. </configuration>
  219. </plugin>
  220. <plugin>
  221. <groupId>org.apache.maven.plugins</groupId>
  222. <artifactId>maven-gpg-plugin</artifactId>
  223. <version>1.5</version>
  224. <executions>
  225. <execution>
  226. <id>sign-artifacts</id>
  227. <phase>verify</phase>
  228. <goals>
  229. <goal>sign</goal>
  230. </goals>
  231. </execution>
  232. </executions>
  233. </plugin>
  234. <plugin>
  235. <groupId>org.apache.maven.plugins</groupId>
  236. <artifactId>maven-source-plugin</artifactId>
  237. <version>2.2.1</version>
  238. <executions>
  239. <execution>
  240. <id>attach-sources</id>
  241. <goals>
  242. <goal>jar-no-fork</goal>
  243. </goals>
  244. </execution>
  245. </executions>
  246. </plugin>
  247. <plugin>
  248. <groupId>org.apache.maven.plugins</groupId>
  249. <artifactId>maven-javadoc-plugin</artifactId>
  250. <version>2.9</version>
  251. <executions>
  252. <execution>
  253. <id>attach-javadocs</id>
  254. <goals>
  255. <goal>jar</goal>
  256. </goals>
  257. </execution>
  258. </executions>
  259. </plugin>
  260. </plugins>
  261. </build>
  262. </profile>
  263. </profiles>
  264. </project>