pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.bellszhu.elasticsearch</groupId>
  5. <artifactId>elasticsearch-analysis-dynamic-synonym</artifactId>
  6. <version>7.14.0</version>
  7. <packaging>jar</packaging>
  8. <name>elasticsearch-dynamic-synonym</name>
  9. <description>Analysis-plugin for synonym</description>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <elasticsearch.version>${project.version}</elasticsearch.version>
  13. <maven.compiler.target>16</maven.compiler.target>
  14. <elasticsearch.plugin.name>analysis-dynamic-synonym</elasticsearch.plugin.name>
  15. <elasticsearch.assembly.descriptor>${project.basedir}/src/main/assemblies/plugin.xml
  16. </elasticsearch.assembly.descriptor>
  17. <elasticsearch.plugin.classname>com.bellszhu.elasticsearch.plugin.DynamicSynonymPlugin
  18. </elasticsearch.plugin.classname>
  19. <elasticsearch.plugin.jvm>true</elasticsearch.plugin.jvm>
  20. </properties>
  21. <licenses>
  22. <license>
  23. <name>The Apache Software License, Version 2.0</name>
  24. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  25. <distribution>repo</distribution>
  26. </license>
  27. </licenses>
  28. <parent>
  29. <groupId>org.sonatype.oss</groupId>
  30. <artifactId>oss-parent</artifactId>
  31. <version>9</version>
  32. </parent>
  33. <scm>
  34. <connection>scm:git:git@github.com:bells/elasticsearch-analysis-dynamic-synonym.git</connection>
  35. <developerConnection>scm:git:git@github.com:bells/elasticsearch-analysis-dynamic-synonym.git
  36. </developerConnection>
  37. <url>https://github.com/bells/elasticsearch-analysis-dynamic-synonym</url>
  38. </scm>
  39. <repositories>
  40. <repository>
  41. <id>central</id>
  42. <url>https://repo1.maven.org/maven2</url>
  43. <releases>
  44. <enabled>true</enabled>
  45. </releases>
  46. <snapshots>
  47. <enabled>true</enabled>
  48. </snapshots>
  49. </repository>
  50. <repository>
  51. <id>codelibs.org</id>
  52. <name>CodeLibs Repository</name>
  53. <url>https://maven.codelibs.org/</url>
  54. </repository>
  55. </repositories>
  56. <dependencies>
  57. <dependency>
  58. <groupId>org.elasticsearch</groupId>
  59. <artifactId>elasticsearch</artifactId>
  60. <version>${elasticsearch.version}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.codelibs.elasticsearch.module</groupId>
  64. <artifactId>analysis-common</artifactId>
  65. <version>${project.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>junit</groupId>
  69. <artifactId>junit</artifactId>
  70. <version>4.13.1</version>
  71. <scope>test</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.apache.httpcomponents.client5</groupId>
  75. <artifactId>httpclient5</artifactId>
  76. <version>5.2.1</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.logging.log4j</groupId>
  80. <artifactId>log4j-core</artifactId>
  81. <version>2.17.1</version>
  82. <scope>provided</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.apache.logging.log4j</groupId>
  86. <artifactId>log4j-api</artifactId>
  87. <version>2.20.0</version>
  88. <scope>provided</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.codelibs</groupId>
  92. <artifactId>elasticsearch-cluster-runner</artifactId>
  93. <version>${project.version}.0</version>
  94. <scope>test</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>mysql</groupId>
  98. <artifactId>mysql-connector-java</artifactId>
  99. <version>8.0.21</version>
  100. </dependency>
  101. </dependencies>
  102. <build>
  103. <plugins>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-compiler-plugin</artifactId>
  107. <version>3.11.0</version>
  108. <configuration>
  109. <source>${maven.compiler.target}</source>
  110. <target>${maven.compiler.target}</target>
  111. </configuration>
  112. </plugin>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-surefire-plugin</artifactId>
  116. <version>3.1.0</version>
  117. <configuration>
  118. <includes>
  119. <include>**/*Tests.java</include>
  120. </includes>
  121. </configuration>
  122. </plugin>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-enforcer-plugin</artifactId>
  126. <version>3.3.0</version>
  127. </plugin>
  128. <plugin>
  129. <groupId>org.apache.maven.plugins</groupId>
  130. <artifactId>maven-resources-plugin</artifactId>
  131. <version>3.3.1</version>
  132. </plugin>
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-source-plugin</artifactId>
  136. <version>3.3.0</version>
  137. <executions>
  138. <execution>
  139. <id>attach-sources</id>
  140. <goals>
  141. <goal>jar</goal>
  142. </goals>
  143. </execution>
  144. </executions>
  145. </plugin>
  146. <plugin>
  147. <artifactId>maven-assembly-plugin</artifactId>
  148. <configuration>
  149. <appendAssemblyId>false</appendAssemblyId>
  150. <outputDirectory>${project.build.directory}/releases/</outputDirectory>
  151. <descriptors>
  152. <descriptor>${basedir}/src/main/assemblies/plugin.xml</descriptor>
  153. </descriptors>
  154. <archive>
  155. <manifest>
  156. <mainClass>fully.qualified.MainClass</mainClass>
  157. </manifest>
  158. </archive>
  159. </configuration>
  160. <executions>
  161. <execution>
  162. <phase>package</phase>
  163. <goals>
  164. <goal>single</goal>
  165. </goals>
  166. </execution>
  167. </executions>
  168. </plugin>
  169. </plugins>
  170. </build>
  171. </project>