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