ffmpeg推流工具
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

323 lines
12KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  5. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  6. <groupId>com.github.bluesbruce</groupId>
  7. <modelVersion>4.0.0</modelVersion>
  8. <artifactId>ffch-test</artifactId>
  9. <version>1.0.0</version>
  10. <packaging>${pom.package}</packaging>
  11. <name>H2 Test</name>
  12. <description>SpringBoot2集成H2</description>
  13. <url>${project.url}</url>
  14. <!-- 项目的核心开发者信息 -->
  15. <developers>
  16. <developer>
  17. <name>BBF</name>
  18. <roles>
  19. <role>architect</role>
  20. <role>developer</role>
  21. </roles>
  22. <timezone>+8</timezone>
  23. </developer>
  24. </developers>
  25. <!-- 项目许可 -->
  26. <licenses>
  27. <license>
  28. <name>The Apache License, Version 2.0</name>
  29. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  30. </license>
  31. </licenses>
  32. <scm>
  33. <connection>scm:git@gitee.com:bbfbbf/h2-test.git</connection>
  34. <developerConnection>scm:git@gitee.com:bbfbbf/h2-test.git</developerConnection>
  35. <url>${project.url}</url>
  36. <tag>${project.version}</tag>
  37. </scm>
  38. <properties>
  39. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  40. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  41. <project.url>https://gitee.com/bbfbbf/h2-test</project.url>
  42. <!-- base setting -->
  43. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  44. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  45. <project.build.locales>zh_CN</project.build.locales>
  46. <project.build.jdk>1.8</project.build.jdk>
  47. <!-- 日志 -->
  48. <pom.log.name>FFRTMP-test</pom.log.name>
  49. <pom.log.dir.backup>backup</pom.log.dir.backup>
  50. <!-- 日志切割的最小单位 -->
  51. <pom.log.filesize>5M</pom.log.filesize>
  52. <!-- 日志输出级别 -->
  53. <pom.log.level>INFO</pom.log.level>
  54. <!-- test dependencies -->
  55. <junit.version>4.13</junit.version>
  56. <!-- project dependencies -->
  57. <spring.boot.version>2.4.3</spring.boot.version>
  58. <mybatis-spring.boot.version>2.1.4</mybatis-spring.boot.version>
  59. <druid.boot.version>1.2.5</druid.boot.version>
  60. <h2.version>2.1.212</h2.version>
  61. </properties>
  62. <dependencyManagement>
  63. <dependencies>
  64. <!-- spring boot依赖 -->
  65. <!-- 打包: mvn package spring-boot:repackage -->
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-dependencies</artifactId>
  69. <version>${spring.boot.version}</version>
  70. <type>pom</type>
  71. <scope>import</scope>
  72. </dependency>
  73. </dependencies>
  74. </dependencyManagement>
  75. <dependencies>
  76. <!-- junit -->
  77. <dependency>
  78. <groupId>junit</groupId>
  79. <artifactId>junit</artifactId>
  80. <version>${junit.version}</version>
  81. <scope>test</scope>
  82. </dependency>
  83. <!-- spring boot开始 -->
  84. <dependency>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-starter-test</artifactId>
  87. <scope>test</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-starter</artifactId>
  92. <exclusions>
  93. <!-- 排除logback -->
  94. <exclusion>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-logging</artifactId>
  97. </exclusion>
  98. </exclusions>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-starter-web</artifactId>
  103. <exclusions>
  104. <exclusion>
  105. <groupId>org.springframework.boot</groupId>
  106. <artifactId>spring-boot-starter-tomcat</artifactId>
  107. </exclusion>
  108. </exclusions>
  109. </dependency>
  110. <!-- MySql驱动 -->
  111. <dependency>
  112. <groupId>mysql</groupId>
  113. <artifactId>mysql-connector-java</artifactId>
  114. <scope>runtime</scope>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.alibaba</groupId>
  118. <artifactId>fastjson</artifactId>
  119. <version>1.2.58</version>
  120. </dependency>
  121. <!-- 日志log4j2 -->
  122. <dependency>
  123. <groupId>org.springframework.boot</groupId>
  124. <artifactId>spring-boot-starter-log4j2</artifactId>
  125. </dependency>
  126. <!-- spring boot结束 -->
  127. <dependency>
  128. <groupId>org.mybatis.spring.boot</groupId>
  129. <artifactId>mybatis-spring-boot-starter</artifactId>
  130. <version>${mybatis-spring.boot.version}</version>
  131. </dependency>
  132. <!-- 数据库连接池 -->
  133. <dependency>
  134. <groupId>com.alibaba</groupId>
  135. <artifactId>druid-spring-boot-starter</artifactId>
  136. <version>${druid.boot.version}</version>
  137. </dependency>
  138. <!-- spring start -->
  139. <dependency>
  140. <groupId>com.h2database</groupId>
  141. <artifactId>h2</artifactId>
  142. <version>${h2.version}</version>
  143. </dependency>
  144. <!--内置tocat对Jsp支持的依赖,用于编译Jsp-->
  145. <dependency>
  146. <groupId>org.apache.tomcat.embed</groupId>
  147. <artifactId>tomcat-embed-jasper</artifactId>
  148. </dependency>
  149. <!--jstl的支持,c标签-->
  150. <dependency>
  151. <groupId>javax.servlet</groupId>
  152. <artifactId>jstl</artifactId>
  153. <scope>compile</scope>
  154. </dependency>
  155. <dependency>
  156. <groupId>javax.servlet.jsp</groupId>
  157. <artifactId>javax.servlet.jsp-api</artifactId>
  158. <version>2.3.1</version>
  159. </dependency>
  160. <!--mqtt 相关依赖-->
  161. <dependency>
  162. <groupId>org.springframework.boot</groupId>
  163. <artifactId>spring-boot-starter-integration</artifactId>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.springframework.integration</groupId>
  167. <artifactId>spring-integration-stream</artifactId>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.springframework.integration</groupId>
  171. <artifactId>spring-integration-mqtt</artifactId>
  172. </dependency>
  173. <!--mybatis-plus-->
  174. <dependency>
  175. <groupId>com.baomidou</groupId>
  176. <artifactId>mybatis-plus-boot-starter</artifactId>
  177. <version>3.1.0</version>
  178. </dependency>
  179. <!--lombok-->
  180. <dependency>
  181. <groupId>org.projectlombok</groupId>
  182. <artifactId>lombok</artifactId>
  183. <optional>true</optional>
  184. </dependency>
  185. <!--vlc类库-->
  186. <dependency>
  187. <groupId>uk.co.caprica</groupId>
  188. <artifactId>vlcj</artifactId>
  189. <version>4.7.0</version>
  190. </dependency>
  191. <!--devtools热部署-->
  192. <dependency>
  193. <groupId>org.springframework.boot</groupId>
  194. <artifactId>spring-boot-devtools</artifactId>
  195. <optional>true</optional>
  196. <scope>true</scope>
  197. </dependency>
  198. <dependency>
  199. <groupId>uk.co.caprica</groupId>
  200. <artifactId>vlcj</artifactId>
  201. <version>3.7.0</version>
  202. </dependency>
  203. </dependencies>
  204. <build>
  205. <plugins>
  206. <!-- 测试插件 -->
  207. <plugin>
  208. <groupId>org.apache.maven.plugins</groupId>
  209. <artifactId>maven-surefire-plugin</artifactId>
  210. <version>2.22.0</version>
  211. <configuration>
  212. <!-- 跳过单元测试 -->
  213. <skipTests>true</skipTests>
  214. <!-- 如果单元测试中有输出中文,eclipse的控制台里中文可能会变成乱码输出 -->
  215. <argLine>-Dfile.encoding=UTF-8</argLine>
  216. </configuration>
  217. </plugin>
  218. <!-- 如果没这个插件,打包命令 mvn package spring-boot:repackage -->
  219. <!-- 现在打包命令 mvn package -->
  220. <plugin>
  221. <groupId>org.springframework.boot</groupId>
  222. <artifactId>spring-boot-maven-plugin</artifactId>
  223. <version>${spring.boot.version}</version>
  224. <!--允许linux上注册服务-->
  225. <configuration>
  226. <executable>true</executable>
  227. <fork>true</fork>
  228. </configuration>
  229. <executions>
  230. <execution>
  231. <goals>
  232. <goal>repackage</goal>
  233. </goals>
  234. </execution>
  235. </executions>
  236. </plugin>
  237. <plugin>
  238. <groupId>org.apache.maven.plugins</groupId>
  239. <artifactId>maven-war-plugin</artifactId>
  240. <version>3.2.2</version>
  241. <configuration>
  242. <!-- false==无web.xml文件的构建war-->
  243. <failOnMissingWebXml>false</failOnMissingWebXml>
  244. </configuration>
  245. </plugin>
  246. <plugin>
  247. <groupId>org.apache.maven.plugins</groupId>
  248. <artifactId>maven-compiler-plugin</artifactId>
  249. <configuration>
  250. <source>7</source>
  251. <target>7</target>
  252. </configuration>
  253. </plugin>
  254. </plugins>
  255. <!--配置资源文件过滤,如果有其他需要打包的资源,需要重载此配置节 -->
  256. <resources>
  257. <resource>
  258. <!--源文件夹-->
  259. <directory>scr/main/webapp</directory>
  260. <!--指定编译到META-INF/resources-->
  261. <targetPath>META-INF/resources</targetPath>
  262. <!--指定源文件夹中哪个资源要进行编译-->
  263. <includes>
  264. <include>*.*</include>
  265. </includes>
  266. </resource>
  267. <resource>
  268. <directory>src/main/resources</directory>
  269. <includes>
  270. <include>**/*.properties</include>
  271. <include>config/**</include>
  272. <include>log4j2.xml</include>
  273. </includes>
  274. <filtering>true</filtering>
  275. </resource>
  276. <resource>
  277. <directory>src/main/resources</directory>
  278. <includes>
  279. <include>mapper/**</include>
  280. </includes>
  281. <filtering>false</filtering>
  282. </resource>
  283. </resources>
  284. </build>
  285. <profiles>
  286. <profile>
  287. <id>jar</id>
  288. <activation>
  289. <activeByDefault>true</activeByDefault>
  290. </activation>
  291. <properties>
  292. <pom.package>war</pom.package>
  293. <pom.packageName>${project.artifactId}-${project.version}</pom.packageName>
  294. <pom.log.dir>d:/FFrtmp-test</pom.log.dir>
  295. </properties>
  296. <dependencies>
  297. <!-- undertow容器 -->
  298. <dependency>
  299. <groupId>org.springframework.boot</groupId>
  300. <artifactId>spring-boot-starter-undertow</artifactId>
  301. </dependency>
  302. </dependencies>
  303. </profile>
  304. </profiles>
  305. </project>