pom.xml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>cn.winhc</groupId>
  7. <artifactId>winhc-elasticsearch-plugin</artifactId>
  8. <version>${elasticsearch.version}</version>
  9. <properties>
  10. <maven.compiler.source>8</maven.compiler.source>
  11. <maven.compiler.target>8</maven.compiler.target>
  12. <elasticsearch.version>6.7.0</elasticsearch.version>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <elasticsearch.description>winhc-elasticsearch-plugin</elasticsearch.description>
  15. <elasticsearch.plugin.name>winhc-elasticsearch-plugin</elasticsearch.plugin.name>
  16. <elasticsearch.plugin.classname>cn.winhc.elasticsearch.plugin.WinhcAnalysisPlugin</elasticsearch.plugin.classname>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.elasticsearch</groupId>
  21. <artifactId>elasticsearch</artifactId>
  22. <version>${elasticsearch.version}</version>
  23. <scope>provided</scope>
  24. </dependency>
  25. </dependencies>
  26. <build>
  27. <plugins>
  28. <plugin>
  29. <groupId>org.apache.maven.plugins</groupId>
  30. <artifactId>maven-assembly-plugin</artifactId>
  31. <version>2.2</version>
  32. <configuration>
  33. <descriptorRefs>
  34. <descriptorRef>jar-with-dependencies</descriptorRef>
  35. </descriptorRefs>
  36. <appendAssemblyId>false</appendAssemblyId>
  37. <outputDirectory>${project.build.directory}</outputDirectory>
  38. <descriptors>
  39. <descriptor>src/main/assembly/assembly.xml</descriptor>
  40. </descriptors>
  41. </configuration>
  42. <executions>
  43. <execution>
  44. <phase>package</phase>
  45. <goals>
  46. <goal>single</goal>
  47. </goals>
  48. </execution>
  49. </executions>
  50. </plugin>
  51. <!--maven编译插件-->
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-compiler-plugin</artifactId>
  55. <version>3.7.0</version>
  56. <configuration>
  57. <source>1.8</source>
  58. <target>1.8</target>
  59. <encoding>UTF-8</encoding>
  60. </configuration>
  61. </plugin>
  62. <plugin>
  63. <groupId>org.apache.maven.plugins</groupId>
  64. <artifactId>maven-resources-plugin</artifactId>
  65. <version>3.0.2</version>
  66. <configuration>
  67. <encoding>UTF-8</encoding>
  68. </configuration>
  69. </plugin>
  70. <plugin>
  71. <groupId>org.apache.maven.plugins</groupId>
  72. <artifactId>maven-jar-plugin</artifactId>
  73. <configuration>
  74. <archive>
  75. <!-- <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>-->
  76. </archive>
  77. </configuration>
  78. </plugin>
  79. </plugins>
  80. </build>
  81. </project>