pom.xml 3.2 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. <parent>
  6. <artifactId>bnt</artifactId>
  7. <groupId>cn.reghao.bnt</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>logstash</artifactId>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  15. <maven.compiler.source>11</maven.compiler.source>
  16. <maven.compiler.target>11</maven.compiler.target>
  17. <project.build.outputDir>${project.basedir}/bin</project.build.outputDir>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>cn.reghao.jutil</groupId>
  22. <artifactId>jdk</artifactId>
  23. <version>1.0.0-SNAPSHOT</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.squareup.okhttp3</groupId>
  27. <artifactId>okhttp</artifactId>
  28. <version>4.10.0</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>ch.qos.logback</groupId>
  32. <artifactId>logback-core</artifactId>
  33. <version>1.2.3</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>ch.qos.logback</groupId>
  37. <artifactId>logback-classic</artifactId>
  38. <version>1.2.3</version>
  39. </dependency>
  40. </dependencies>
  41. <build>
  42. <finalName>devops-${project.artifactId}</finalName>
  43. <resources>
  44. <resource>
  45. <directory>src/main/resources</directory>
  46. <filtering>true</filtering>
  47. <includes>
  48. <include>logback.xml</include>
  49. </includes>
  50. </resource>
  51. </resources>
  52. <plugins>
  53. <plugin>
  54. <groupId>org.apache.maven.plugins</groupId>
  55. <artifactId>maven-assembly-plugin</artifactId>
  56. <version>3.2.0</version>
  57. <configuration>
  58. <archive>
  59. <manifest>
  60. <mainClass>cn.reghao.bnt.logstash.LogStashApp</mainClass>
  61. </manifest>
  62. </archive>
  63. <descriptorRefs>
  64. <descriptorRef>jar-with-dependencies</descriptorRef>
  65. </descriptorRefs>
  66. <!-- 不设置此属性则生成的 jar 包名字会带有 jar-with-dependencies -->
  67. <appendAssemblyId>false</appendAssemblyId>
  68. <outputDirectory>${project.build.outputDir}</outputDirectory>
  69. </configuration>
  70. <executions>
  71. <execution>
  72. <id>make-assembly</id>
  73. <phase>package</phase>
  74. <goals>
  75. <goal>single</goal>
  76. </goals>
  77. </execution>
  78. </executions>
  79. </plugin>
  80. </plugins>
  81. </build>
  82. </project>