pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>com.rancedxk</groupId>
  4. <artifactId>monitor-rtsp-hls</artifactId>
  5. <packaging>jar</packaging>
  6. <version>1.0</version>
  7. <properties>
  8. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  9. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  10. <java.version>1.8</java.version>
  11. </properties>
  12. <dependencies>
  13. <dependency>
  14. <groupId>com.jfinal</groupId>
  15. <artifactId>jfinal</artifactId>
  16. <version>4.9.06</version>
  17. </dependency>
  18. <dependency>
  19. <groupId>com.jfinal</groupId>
  20. <artifactId>jfinal-undertow</artifactId>
  21. <version>2.4</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>io.undertow</groupId>
  25. <artifactId>undertow-websockets-jsr</artifactId>
  26. <version>2.0.33.Final</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>javax.servlet</groupId>
  30. <artifactId>javax.servlet-api</artifactId>
  31. <!-- 覆盖父项目的版本 -->
  32. <version>4.0.1</version><!--$NO-MVN-MAN-VER$-->
  33. <scope>runtime</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>cn.hutool</groupId>
  37. <artifactId>hutool-all</artifactId>
  38. <version>4.6.1</version>
  39. </dependency>
  40. <!-- 日志工具类logger -->
  41. <dependency>
  42. <groupId>org.slf4j</groupId>
  43. <artifactId>slf4j-api</artifactId>
  44. <version>1.7.25</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.slf4j</groupId>
  48. <artifactId>slf4j-log4j12</artifactId>
  49. <scope>runtime</scope>
  50. <version>1.7.25</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>log4j</groupId>
  54. <artifactId>log4j</artifactId>
  55. <version>1.2.17</version>
  56. </dependency>
  57. <!-- JNA依赖库 -->
  58. <dependency>
  59. <groupId>net.java.dev.jna</groupId>
  60. <artifactId>jna</artifactId>
  61. <version>5.4.0</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>net.java.dev.jna</groupId>
  65. <artifactId>jna-platform</artifactId>
  66. <version>5.4.0</version>
  67. </dependency>
  68. <!-- 数据库连接池插件 -->
  69. <dependency>
  70. <groupId>com.alibaba</groupId>
  71. <artifactId>druid</artifactId>
  72. <version>1.1.21</version>
  73. </dependency>
  74. <!-- mysql驱动包 -->
  75. <dependency>
  76. <groupId>mysql</groupId>
  77. <artifactId>mysql-connector-java</artifactId>
  78. <version>8.0.18</version>
  79. </dependency>
  80. </dependencies>
  81. <build>
  82. <plugins>
  83. <!-- 插件及编译配置管理 -->
  84. <plugin>
  85. <artifactId>maven-compiler-plugin</artifactId>
  86. <configuration>
  87. <source>1.8</source>
  88. <target>1.8</target>
  89. <encoding>${project.build.sourceEncoding}</encoding>
  90. </configuration>
  91. </plugin>
  92. <plugin>
  93. <groupId>org.apache.maven.plugins</groupId>
  94. <artifactId>maven-jar-plugin</artifactId>
  95. <version>2.6</version>
  96. <configuration>
  97. <excludes>
  98. <exclude>*.txt</exclude>
  99. <exclude>*.xml</exclude>
  100. <exclude>*.properties</exclude>
  101. </excludes>
  102. </configuration>
  103. </plugin>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-assembly-plugin</artifactId>
  107. <version>3.1.0</version>
  108. <executions>
  109. <execution>
  110. <id>make-assembly</id>
  111. <phase>package</phase>
  112. <goals>
  113. <goal>single</goal>
  114. </goals>
  115. <configuration>
  116. <!-- 打包生成的文件名 -->
  117. <finalName>${project.artifactId}</finalName>
  118. <!-- jar 等压缩文件在被打包进入 zip、tar.gz 时是否压缩,设置为 false 可加快打包速度 -->
  119. <recompressZippedFiles>false</recompressZippedFiles>
  120. <!-- 打包生成的文件是否要追加 release.xml 中定义的 id 值 -->
  121. <appendAssemblyId>true</appendAssemblyId>
  122. <!-- 指向打包描述文件 package.xml -->
  123. <descriptors>
  124. <descriptor>package.xml</descriptor>
  125. </descriptors>
  126. <!-- 打包结果输出的基础目录 -->
  127. <outputDirectory>${project.build.directory}/</outputDirectory>
  128. </configuration>
  129. </execution>
  130. </executions>
  131. </plugin>
  132. </plugins>
  133. </build>
  134. </project>