spring-boot-starter-activemq-demo

pom.xml 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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>com.vcarecity</groupId>
  7. <artifactId>spring-boot-starter-activemq-demo</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <distributionManagement>
  10. <repository>
  11. <id>nexus-releases</id>
  12. <name>Nexus Release Repository</name>
  13. <url>http://maven.vcarecity.com/nexus/content/repositories/releases/</url>
  14. </repository>
  15. <snapshotRepository>
  16. <id>nexus-snapshots</id>
  17. <name>Nexus Snapshot Repository</name>
  18. <url>http://maven.vcarecity.com/nexus/content/repositories/snapshots/</url>
  19. </snapshotRepository>
  20. </distributionManagement>
  21. <parent>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-parent</artifactId>
  24. <version>2.2.1.RELEASE</version>
  25. <relativePath/> <!-- lookup parent from repository -->
  26. </parent>
  27. <properties>
  28. <java.version>1.8</java.version>
  29. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  30. <junit.version>4.13.1</junit.version>
  31. </properties>
  32. <dependencies>
  33. <dependency>
  34. <groupId>junit</groupId>
  35. <artifactId>junit</artifactId>
  36. <version>${junit.version}</version>
  37. <scope>test</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.commons</groupId>
  41. <artifactId>commons-lang3</artifactId>
  42. <version>3.11</version>
  43. </dependency>
  44. <!-- quartz -->
  45. <dependency>
  46. <groupId>org.quartz-scheduler</groupId>
  47. <artifactId>quartz</artifactId>
  48. </dependency>
  49. <!-- Spring Boot Starter -->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-web</artifactId>
  57. </dependency>
  58. <!-- Spring Boot Starter Activemq (JMS) -->
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-activemq</artifactId>
  62. </dependency>
  63. <!-- Spring Boot Starter Test -->
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-test</artifactId>
  67. <scope>test</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.github.xiaoymin</groupId>
  71. <artifactId>knife4j-spring-boot-starter</artifactId>
  72. <!--在引用时请在maven中央仓库搜索最新版本号 -->
  73. <version>2.0.3</version>
  74. </dependency>
  75. <!-- xk-time 是时间转换,计算,格式化,解析,日历和cron表达式等的工具,使用Java8,线程安全,简单易用,多达70几种常用日期格式化模板,支持Java8时间类和Date,轻量级,无第三方依赖 -->
  76. <!-- https://www.oschina.net/news/119438/xk-time-2-2-0-released -->
  77. <dependency>
  78. <groupId>com.github.xkzhangsan</groupId>
  79. <artifactId>xk-time</artifactId>
  80. <version>2.2.0</version>
  81. </dependency>
  82. </dependencies>
  83. <build>
  84. <finalName>${project.artifactId}</finalName>
  85. <plugins>
  86. <!-- java编译插件 -->
  87. <plugin>
  88. <groupId>org.apache.maven.plugins</groupId>
  89. <artifactId>maven-compiler-plugin</artifactId>
  90. <version>3.2</version>
  91. <configuration>
  92. <source>8</source>
  93. <target>8</target>
  94. <encoding>UTF-8</encoding>
  95. </configuration>
  96. </plugin>
  97. <!--添加配置跳过测试-->
  98. <plugin>
  99. <groupId>org.apache.maven.plugins</groupId>
  100. <artifactId>maven-surefire-plugin</artifactId>
  101. <version>2.22.1</version>
  102. <configuration>
  103. <skipTests>true</skipTests>
  104. </configuration>
  105. </plugin>
  106. <!--添加配置跳过测试-->
  107. <!--Copy resource -->
  108. <plugin>
  109. <artifactId>maven-resources-plugin</artifactId>
  110. <version>2.7</version>
  111. <configuration>
  112. <encoding>UTF-8</encoding>
  113. </configuration>
  114. <executions>
  115. <execution>
  116. <id>copy-resource</id>
  117. <phase>package</phase>
  118. <goals>
  119. <goal>copy-resources</goal>
  120. </goals>
  121. <configuration>
  122. <outputDirectory>${project.build.directory}/config</outputDirectory>
  123. <resources>
  124. <resource>
  125. <directory>${project.basedir}/src/main/resources</directory>
  126. </resource>
  127. </resources>
  128. </configuration>
  129. </execution>
  130. <execution>
  131. <id>copy-sh</id>
  132. <phase>package</phase>
  133. <goals>
  134. <goal>copy-resources</goal>
  135. </goals>
  136. <configuration>
  137. <outputDirectory>${project.build.directory}</outputDirectory>
  138. <resources>
  139. <resource>
  140. <directory>${project.basedir}/sh</directory>
  141. </resource>
  142. </resources>
  143. </configuration>
  144. </execution>
  145. <execution>
  146. <id>copy-md</id>
  147. <phase>package</phase>
  148. <goals>
  149. <goal>copy-resources</goal>
  150. </goals>
  151. <configuration>
  152. <outputDirectory>${project.build.directory}</outputDirectory>
  153. <resources>
  154. <resource>
  155. <directory>${project.basedir}/md</directory>
  156. </resource>
  157. </resources>
  158. </configuration>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-dependency-plugin</artifactId>
  165. <executions>
  166. <execution>
  167. <phase>package</phase>
  168. <goals>
  169. <goal>copy-dependencies</goal>
  170. </goals>
  171. <configuration>
  172. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  173. </configuration>
  174. </execution>
  175. </executions>
  176. </plugin>
  177. <plugin>
  178. <groupId>org.apache.maven.plugins</groupId>
  179. <artifactId>maven-jar-plugin</artifactId>
  180. <version>2.4</version>
  181. <configuration>
  182. <archive>
  183. <manifest>
  184. <addClasspath>true</addClasspath>
  185. <classpathPrefix>libs/</classpathPrefix>
  186. <mainClass>com.vcarecity.AppRun</mainClass>
  187. </manifest>
  188. </archive>
  189. </configuration>
  190. </plugin>
  191. </plugins>
  192. </build>
  193. </project>