|
@ -1,24 +1,17 @@
|
1
|
1
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2
|
2
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
3
|
3
|
<modelVersion>4.0.0</modelVersion>
|
4
|
|
<!-- display-server等ipu服务端工程继承使用 -->
|
|
4
|
<parent>
|
|
5
|
<groupId>com.ai.ipu.server</groupId>
|
|
6
|
<artifactId>ipu-rest-libs</artifactId>
|
|
7
|
<version>3.1-SNAPSHOT</version>
|
|
8
|
</parent>
|
5
|
9
|
|
6
|
|
<groupId>com.ai.ipu</groupId>
|
7
|
10
|
<artifactId>ipu-server-libs</artifactId>
|
8
|
|
<version>3.0-SNAPSHOT</version>
|
9
|
11
|
<packaging>pom</packaging>
|
10
|
|
<name>ipu-server-libs</name>
|
11
|
12
|
|
12
|
|
<distributionManagement>
|
13
|
|
<repository>
|
14
|
|
<id>ipu-nexus</id>
|
15
|
|
<url>http://114.215.100.48:9090/nexus/content/repositories/ipu/</url>
|
16
|
|
</repository>
|
17
|
|
<snapshotRepository>
|
18
|
|
<id>ipu-snapshots-nexus</id>
|
19
|
|
<url>http://114.215.100.48:9090/nexus/content/repositories/ipu-snapshots/</url>
|
20
|
|
</snapshotRepository>
|
21
|
|
</distributionManagement>
|
|
13
|
<name>ipu-server-libs</name>
|
|
14
|
<url>http://maven.apache.org</url>
|
22
|
15
|
|
23
|
16
|
<repositories>
|
24
|
17
|
<repository>
|
|
@ -35,348 +28,29 @@
|
35
|
28
|
</repository>
|
36
|
29
|
</repositories>
|
37
|
30
|
|
38
|
|
<!-- 定义公共变量 -->
|
39
|
31
|
<properties>
|
40
|
|
<!-- ipu jar -->
|
41
|
|
<ipu>3.0-SNAPSHOT</ipu>
|
42
|
|
<wade>1.0</wade>
|
43
|
|
|
44
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
45
|
|
<encoding>UTF-8</encoding>
|
46
|
|
|
47
|
|
<!-- Central jar -->
|
48
|
|
<junit>3.8.1</junit>
|
49
|
|
<servlet-api>2.5</servlet-api>
|
50
|
|
<log4j>1.2.8</log4j>
|
51
|
|
<unirest-java>1.3.8</unirest-java>
|
52
|
|
<dom4j>1.6.1</dom4j>
|
53
|
|
<jaxen>1.1.1</jaxen>
|
54
|
|
<commons-lang3>3.4</commons-lang3>
|
55
|
|
<beetl-core>2.2.3</beetl-core>
|
56
|
|
<velocity>1.7</velocity>
|
57
|
|
<jsoup>1.7.2</jsoup>
|
58
|
|
<commons-fileupload>1.3.1</commons-fileupload>
|
59
|
|
<commons-dbcp>1.4</commons-dbcp>
|
60
|
|
<mysql-connector-java>5.1.39</mysql-connector-java>
|
61
|
|
<commons-codec>1.3</commons-codec>
|
62
|
|
<jdom>1.1.3</jdom>
|
63
|
|
<commons-collections>3.2</commons-collections>
|
64
|
|
<quartz-all>1.6.3</quartz-all>
|
65
|
|
<jta>1.1</jta>
|
66
|
|
|
67
|
|
<!-- 3rd party jar -->
|
68
|
|
<ojdbc>14</ojdbc>
|
69
|
|
<java_memcache-release>2.5.3</java_memcache-release>
|
70
|
|
<amail>1.0</amail>
|
71
|
|
<zxing>1.0</zxing>
|
|
32
|
<webapp-path>${basedir}/src/main/resources/webapp</webapp-path>
|
72
|
33
|
|
73
|
34
|
<!-- 公共插件 -->
|
|
35
|
<!--
|
74
|
36
|
<maven-clean-plugin>3.0.0</maven-clean-plugin>
|
75
|
37
|
<maven-resources-plugin>3.0.1</maven-resources-plugin>
|
76
|
|
<maven-compiler-plugin>3.1</maven-compiler-plugin>
|
77
|
|
<compiler-version>1.6</compiler-version>
|
78
|
|
<maven-surefire-plugin>2.5</maven-surefire-plugin>
|
79
|
38
|
<maven-war-plugin>2.6</maven-war-plugin>
|
80
|
39
|
<exec-maven-plugin>1.5.0</exec-maven-plugin>
|
81
|
40
|
<maven-dependency-plugin>2.4</maven-dependency-plugin>
|
82
|
|
|
83
|
|
<!-- 本地jar路径all -->
|
84
|
|
<jar-path-all>${project.basedir}/all</jar-path-all>
|
85
|
|
|
|
41
|
-->
|
86
|
42
|
</properties>
|
87
|
43
|
|
88
|
|
<dependencyManagement>
|
89
|
|
<dependencies>
|
90
|
|
<!-- Central jar -->
|
91
|
|
<dependency>
|
92
|
|
<groupId>commons-collections</groupId>
|
93
|
|
<artifactId>commons-collections</artifactId>
|
94
|
|
<version>${commons-collections}</version>
|
95
|
|
</dependency>
|
96
|
|
<dependency>
|
97
|
|
<groupId>javax.transaction</groupId>
|
98
|
|
<artifactId>jta</artifactId>
|
99
|
|
<version>${jta}</version>
|
100
|
|
</dependency>
|
101
|
|
<dependency>
|
102
|
|
<groupId>opensymphony</groupId>
|
103
|
|
<artifactId>quartz-all</artifactId>
|
104
|
|
<version>${quartz-all}</version>
|
105
|
|
</dependency>
|
106
|
|
<dependency>
|
107
|
|
<groupId>junit</groupId>
|
108
|
|
<artifactId>junit</artifactId>
|
109
|
|
<version>${junit}</version>
|
110
|
|
<scope>test</scope>
|
111
|
|
</dependency>
|
112
|
|
<dependency>
|
113
|
|
<groupId>javax.servlet</groupId>
|
114
|
|
<artifactId>servlet-api</artifactId>
|
115
|
|
<version>${servlet-api}</version>
|
116
|
|
<scope>provided</scope>
|
117
|
|
</dependency>
|
118
|
|
<dependency>
|
119
|
|
<groupId>org.apache.commons</groupId>
|
120
|
|
<artifactId>commons-lang3</artifactId>
|
121
|
|
<version>${commons-lang3}</version>
|
122
|
|
</dependency>
|
123
|
|
<dependency>
|
124
|
|
<groupId>log4j</groupId>
|
125
|
|
<artifactId>log4j</artifactId>
|
126
|
|
<version>${log4j}</version>
|
127
|
|
</dependency>
|
128
|
|
<dependency>
|
129
|
|
<groupId>dom4j</groupId>
|
130
|
|
<artifactId>dom4j</artifactId>
|
131
|
|
<version>${dom4j}</version>
|
132
|
|
</dependency>
|
133
|
|
<dependency>
|
134
|
|
<groupId>jaxen</groupId>
|
135
|
|
<artifactId>jaxen</artifactId>
|
136
|
|
<version>${jaxen}</version>
|
137
|
|
</dependency>
|
138
|
|
<dependency>
|
139
|
|
<groupId>com.mashape.unirest</groupId>
|
140
|
|
<artifactId>unirest-java</artifactId>
|
141
|
|
<version>${unirest-java}</version>
|
142
|
|
</dependency>
|
143
|
|
<dependency>
|
144
|
|
<groupId>org.beetl</groupId>
|
145
|
|
<artifactId>beetl-core</artifactId>
|
146
|
|
<version>${beetl-core}</version>
|
147
|
|
</dependency>
|
148
|
|
<dependency>
|
149
|
|
<groupId>org.apache.velocity</groupId>
|
150
|
|
<artifactId>velocity</artifactId>
|
151
|
|
<version>${velocity}</version>
|
152
|
|
</dependency>
|
153
|
|
<dependency>
|
154
|
|
<groupId>org.jsoup</groupId>
|
155
|
|
<artifactId>jsoup</artifactId>
|
156
|
|
<version>${jsoup}</version>
|
157
|
|
</dependency>
|
158
|
|
<dependency>
|
159
|
|
<groupId>commons-fileupload</groupId>
|
160
|
|
<artifactId>commons-fileupload</artifactId>
|
161
|
|
<version>${commons-fileupload}</version>
|
162
|
|
</dependency>
|
163
|
|
<dependency>
|
164
|
|
<groupId>commons-dbcp</groupId>
|
165
|
|
<artifactId>commons-dbcp</artifactId>
|
166
|
|
<version>${commons-dbcp}</version>
|
167
|
|
</dependency>
|
168
|
|
<dependency>
|
169
|
|
<groupId>mysql</groupId>
|
170
|
|
<artifactId>mysql-connector-java</artifactId>
|
171
|
|
<version>${mysql-connector-java}</version>
|
172
|
|
</dependency>
|
173
|
|
<dependency>
|
174
|
|
<groupId>commons-codec</groupId>
|
175
|
|
<artifactId>commons-codec</artifactId>
|
176
|
|
<version>${commons-codec}</version>
|
177
|
|
</dependency>
|
178
|
|
|
179
|
|
<!-- 3rd party jar -->
|
180
|
|
<dependency>
|
181
|
|
<groupId>com</groupId>
|
182
|
|
<artifactId>java_memcache-release</artifactId>
|
183
|
|
<version>${java_memcache-release}</version>
|
184
|
|
</dependency>
|
185
|
|
<dependency>
|
186
|
|
<groupId>com.amail</groupId>
|
187
|
|
<artifactId>amail</artifactId>
|
188
|
|
<version>${amail}</version>
|
189
|
|
</dependency>
|
190
|
|
<dependency>
|
191
|
|
<groupId>com.zxing</groupId>
|
192
|
|
<artifactId>zxing</artifactId>
|
193
|
|
<version>${zxing}</version>
|
194
|
|
</dependency>
|
195
|
|
<dependency>
|
196
|
|
<groupId>ojdbc</groupId>
|
197
|
|
<artifactId>ojdbc</artifactId>
|
198
|
|
<version>${ojdbc}</version>
|
199
|
|
</dependency>
|
200
|
|
|
201
|
|
<!-- ipu jar -->
|
202
|
|
<dependency>
|
203
|
|
<groupId>com.ai.ipu</groupId>
|
204
|
|
<artifactId>ipu-basic</artifactId>
|
205
|
|
<version>${ipu}</version>
|
206
|
|
</dependency>
|
207
|
|
<dependency>
|
208
|
|
<groupId>com.ai.ipu</groupId>
|
209
|
|
<artifactId>ipu-common</artifactId>
|
210
|
|
<version>${ipu}</version>
|
211
|
|
</dependency>
|
212
|
|
<dependency>
|
213
|
|
<groupId>com.ai.ipu</groupId>
|
214
|
|
<artifactId>ipu-database</artifactId>
|
215
|
|
<version>${ipu}</version>
|
216
|
|
</dependency>
|
217
|
|
<dependency>
|
218
|
|
<groupId>com.ai.ipu</groupId>
|
219
|
|
<artifactId>ipu-remote-clinet</artifactId>
|
220
|
|
<version>${ipu}</version>
|
221
|
|
</dependency>
|
222
|
|
<dependency>
|
223
|
|
<groupId>com.ai.ipu</groupId>
|
224
|
|
<artifactId>ipu-server-web</artifactId>
|
225
|
|
<version>${ipu}</version>
|
226
|
|
</dependency>
|
227
|
|
<dependency>
|
228
|
|
<groupId>com.ai.ipu</groupId>
|
229
|
|
<artifactId>ipu-spring-boot</artifactId>
|
230
|
|
<version>${ipu}</version>
|
231
|
|
</dependency>
|
232
|
|
<dependency>
|
233
|
|
<groupId>com.ai.ipu</groupId>
|
234
|
|
<artifactId>ipu-file-system</artifactId>
|
235
|
|
<version>${ipu}</version>
|
236
|
|
</dependency>
|
237
|
|
|
238
|
|
<dependency>
|
239
|
|
<!-- 不推荐使用,推荐使用wade-mobile-data -->
|
240
|
|
<groupId>com.ai.wade</groupId>
|
241
|
|
<artifactId>wade-data</artifactId>
|
242
|
|
<version>${wade}</version>
|
243
|
|
</dependency>
|
244
|
|
<dependency>
|
245
|
|
<!-- 不依赖其他jar -->
|
246
|
|
<groupId>com.ai.wade</groupId>
|
247
|
|
<artifactId>wade-mobile-data</artifactId>
|
248
|
|
<version>${wade}</version>
|
249
|
|
</dependency>
|
250
|
|
<dependency>
|
251
|
|
<!-- commons-collections-3.2.jar,quartz-all-1.6.3.jar,jdom1.0.jar,wade-apache,wade-common,wade-mobile-data -->
|
252
|
|
<groupId>com.ai.wade</groupId>
|
253
|
|
<artifactId>wade-cache</artifactId>
|
254
|
|
<version>${wade}</version>
|
255
|
|
</dependency>
|
256
|
|
<dependency>
|
257
|
|
<groupId>com.ai.wade</groupId>
|
258
|
|
<artifactId>wade-apache</artifactId>
|
259
|
|
<version>${wade}</version>
|
260
|
|
</dependency>
|
261
|
|
<dependency>
|
262
|
|
<groupId>com.ai.wade</groupId>
|
263
|
|
<artifactId>wade-common</artifactId>
|
264
|
|
<version>${wade}</version>
|
265
|
|
</dependency>
|
266
|
|
<dependency>
|
267
|
|
<!-- commons-dbcp-1.4.jar,dom4j-1.6.1.jar,jaxen-1.1.1.jar,jta.jar,ojdbc14.jar,mysql-connector-5.1.39.jar,wade-apache,wade-cache,wade-common,wade-mobile-data -->
|
268
|
|
<groupId>com.ai.wade</groupId>
|
269
|
|
<artifactId>wade-database</artifactId>
|
270
|
|
<version>${wade}</version>
|
271
|
|
</dependency>
|
272
|
|
<dependency>
|
273
|
|
<groupId>com.ai.wade</groupId>
|
274
|
|
<artifactId>wade-sqlite-jdbc</artifactId>
|
275
|
|
<version>${wade}</version>
|
276
|
|
</dependency>
|
277
|
|
<dependency>
|
278
|
|
<!-- ipu-basic,ipu-server-web,wade-apache,wade-cache,wade-common,wade-database,wade-mobile-data -->
|
279
|
|
<groupId>com.ai.wade</groupId>
|
280
|
|
<artifactId>wade-codecode</artifactId>
|
281
|
|
<version>${wade}</version>
|
282
|
|
</dependency>
|
283
|
|
|
284
|
|
</dependencies>
|
285
|
|
</dependencyManagement>
|
|
44
|
<dependencies>
|
|
45
|
</dependencies>
|
286
|
46
|
|
287
|
47
|
<build>
|
288
|
48
|
<pluginManagement>
|
289
|
49
|
<plugins>
|
290
|
|
<!-- 默认插件,不引入也可使用 -->
|
291
|
|
<!-- 默认jre编译版本:1.6 -->
|
292
|
|
<plugin>
|
293
|
|
<groupId>org.apache.maven.plugins</groupId>
|
294
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
295
|
|
<version>${maven-compiler-plugin}</version>
|
296
|
|
<configuration>
|
297
|
|
<source>${compiler-version}</source>
|
298
|
|
<target>${compiler-version}</target>
|
299
|
|
<encoding>${encoding}</encoding>
|
300
|
|
</configuration>
|
301
|
|
</plugin>
|
302
|
|
<!-- war包去除servlet-api的jar包 -->
|
303
|
|
<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId>
|
304
|
|
<version>${maven-war-plugin}</version> <configuration> servlet-api相关jar不打包,前面的scope=provided已解决
|
305
|
|
<packagingExcludes> WEB-INF/lib/servlet-api*.jar </packagingExcludes> <webResources>
|
306
|
|
<resource> <directory>${jar-path}</directory> <includes> <include>*.jar</include>
|
307
|
|
</includes> <targetPath>WEB-INF/lib</targetPath> </resource> </webResources>
|
308
|
|
</configuration> </plugin> -->
|
309
|
|
<!-- 跳过单元测试 -->
|
310
|
|
<plugin>
|
311
|
|
<groupId>org.apache.maven.plugins</groupId>
|
312
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
313
|
|
<version>${maven-surefire-plugin}</version>
|
314
|
|
<configuration>
|
315
|
|
<!-- 跳过单元测试 -->
|
316
|
|
<skip>true</skip>
|
317
|
|
</configuration>
|
318
|
|
</plugin>
|
319
|
|
<!-- clean中间文件 -->
|
320
|
|
<plugin>
|
321
|
|
<artifactId>maven-clean-plugin</artifactId>
|
322
|
|
<version>${maven-clean-plugin}</version>
|
323
|
|
<executions>
|
324
|
|
<execution>
|
325
|
|
<id>clean-all</id>
|
326
|
|
<phase>clean</phase>
|
327
|
|
<goals>
|
328
|
|
<goal>clean</goal>
|
329
|
|
</goals>
|
330
|
|
<configuration>
|
331
|
|
<filesets>
|
332
|
|
<fileset>
|
333
|
|
<directory>${basedir}/src/main/webapp/encrypt</directory>
|
334
|
|
<includes>
|
335
|
|
<include>**/*</include>
|
336
|
|
</includes>
|
337
|
|
</fileset>
|
338
|
|
<fileset>
|
339
|
|
<directory>${basedir}/src/main/webapp</directory>
|
340
|
|
<includes>
|
341
|
|
<include>res.version.properties</include>
|
342
|
|
</includes>
|
343
|
|
</fileset>
|
344
|
|
<fileset>
|
345
|
|
<directory>${basedir}/src/main/webapp/template/lua</directory>
|
346
|
|
<includes>
|
347
|
|
<include>**/*</include>
|
348
|
|
</includes>
|
349
|
|
</fileset>
|
350
|
|
</filesets>
|
351
|
|
</configuration>
|
352
|
|
</execution>
|
353
|
|
<!-- 打包之前clean掉明文配置文件 -->
|
354
|
|
<execution>
|
355
|
|
<id>clean-config</id>
|
356
|
|
<phase>prepare-package</phase><!-- 打包之前 -->
|
357
|
|
<goals>
|
358
|
|
<goal>clean</goal>
|
359
|
|
</goals>
|
360
|
|
<configuration>
|
361
|
|
<excludeDefaultDirectories>true</excludeDefaultDirectories>
|
362
|
|
<filesets>
|
363
|
|
<fileset>
|
364
|
|
<directory>${basedir}/src/main/webapp/template</directory>
|
365
|
|
<includes>
|
366
|
|
<include>server-config.xml</include>
|
367
|
|
<include>server-data.xml</include>
|
368
|
|
<include>server-page.xml</include>
|
369
|
|
</includes>
|
370
|
|
</fileset>
|
371
|
|
</filesets>
|
372
|
|
</configuration>
|
373
|
|
</execution>
|
374
|
|
</executions>
|
375
|
|
</plugin>
|
376
|
|
<!-- 复制资源 -->
|
|
50
|
<!-- 1.复制资源 -->
|
|
51
|
<!-- IDE可在编译态实时的将指定文件和目录复制到指定路径下,该插件不需显性调用 -->
|
377
|
52
|
<plugin>
|
378
|
53
|
<artifactId>maven-resources-plugin</artifactId>
|
379
|
|
<version>${maven-resources-plugin}</version>
|
380
|
54
|
<configuration>
|
381
|
55
|
<encoding>${encoding}</encoding>
|
382
|
56
|
</configuration>
|
|
@ -388,7 +62,7 @@
|
388
|
62
|
<goal>copy-resources</goal>
|
389
|
63
|
</goals>
|
390
|
64
|
<configuration>
|
391
|
|
<outputDirectory>${basedir}/src/main/webapp/template</outputDirectory>
|
|
65
|
<outputDirectory>${webapp-path}/template</outputDirectory>
|
392
|
66
|
<resources>
|
393
|
67
|
<resource>
|
394
|
68
|
<directory>${basedir}/src/main/resources</directory>
|
|
@ -408,7 +82,7 @@
|
408
|
82
|
<goal>copy-resources</goal>
|
409
|
83
|
</goals>
|
410
|
84
|
<configuration>
|
411
|
|
<outputDirectory>${basedir}/src/main/webapp/template/lua</outputDirectory>
|
|
85
|
<outputDirectory>${webapp-path}/template/lua</outputDirectory>
|
412
|
86
|
<resources>
|
413
|
87
|
<resource>
|
414
|
88
|
<directory>${basedir}/src/main/resources/lua</directory>
|
|
@ -418,11 +92,11 @@
|
418
|
92
|
</execution>
|
419
|
93
|
</executions>
|
420
|
94
|
</plugin>
|
421
|
|
<!-- 生成文件版本号和文件加密 -->
|
|
95
|
<!-- 2.文件加密和生成版本号 -->
|
|
96
|
<!-- 驱动java程序完成此功能 -->
|
422
|
97
|
<plugin>
|
423
|
98
|
<groupId>org.codehaus.mojo</groupId>
|
424
|
99
|
<artifactId>exec-maven-plugin</artifactId>
|
425
|
|
<version>${exec-maven-plugin}</version>
|
426
|
100
|
<executions>
|
427
|
101
|
<execution>
|
428
|
102
|
<id>res-encrypt</id>
|
|
@ -433,9 +107,8 @@
|
433
|
107
|
<configuration>
|
434
|
108
|
<classpathScope>compile</classpathScope>
|
435
|
109
|
<includeProjectDependencies>true</includeProjectDependencies>
|
436
|
|
<mainClass>com.ai.ipu.server.tool.FileEncryptToolMaven</mainClass>
|
|
110
|
<mainClass>com.ai.ipu.server.tool.FileEncryptToolRest</mainClass>
|
437
|
111
|
<arguments>
|
438
|
|
<argument>src/main/webapp/</argument>
|
439
|
112
|
<argument>false</argument>
|
440
|
113
|
<argument></argument>
|
441
|
114
|
</arguments>
|
|
@ -450,9 +123,8 @@
|
450
|
123
|
<configuration>
|
451
|
124
|
<classpathScope>compile</classpathScope>
|
452
|
125
|
<includeProjectDependencies>true</includeProjectDependencies>
|
453
|
|
<mainClass>com.ai.ipu.server.tool.VersionToolMaven</mainClass>
|
|
126
|
<mainClass>com.ai.ipu.server.tool.VersionToolRest</mainClass>
|
454
|
127
|
<arguments>
|
455
|
|
<argument>src/main/webapp/</argument>
|
456
|
128
|
<argument>false</argument>
|
457
|
129
|
<argument>upload|setup|.gitignore|.DS_Store</argument>
|
458
|
130
|
</arguments>
|
|
@ -460,21 +132,28 @@
|
460
|
132
|
</execution>
|
461
|
133
|
</executions>
|
462
|
134
|
</plugin>
|
|
135
|
<!-- clean掉明文配置文件,打包之前 -->
|
463
|
136
|
<plugin>
|
464
|
|
<groupId>org.apache.maven.plugins</groupId>
|
465
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
466
|
|
<version>${maven-dependency-plugin}</version>
|
|
137
|
<artifactId>maven-clean-plugin</artifactId>
|
467
|
138
|
<executions>
|
468
|
139
|
<execution>
|
469
|
|
<id>copy-dep</id>
|
470
|
|
<phase>package</phase>
|
|
140
|
<id>clean-config</id>
|
|
141
|
<phase>test</phase>
|
471
|
142
|
<goals>
|
472
|
|
<goal>copy-dependencies</goal>
|
|
143
|
<goal>clean</goal>
|
473
|
144
|
</goals>
|
474
|
145
|
<configuration>
|
475
|
|
<outputDirectory>${basedir}/src/main/webapp/WEB-INF/lib</outputDirectory>
|
476
|
|
<excludeScope>provided</excludeScope>
|
477
|
|
<excludeArtifactIds>junit</excludeArtifactIds>
|
|
146
|
<excludeDefaultDirectories>true</excludeDefaultDirectories>
|
|
147
|
<filesets>
|
|
148
|
<fileset>
|
|
149
|
<directory>${webapp-path}/template</directory>
|
|
150
|
<includes>
|
|
151
|
<include>server-config.xml</include>
|
|
152
|
<include>server-data.xml</include>
|
|
153
|
<include>server-page.xml</include>
|
|
154
|
</includes>
|
|
155
|
</fileset>
|
|
156
|
</filesets>
|
478
|
157
|
</configuration>
|
479
|
158
|
</execution>
|
480
|
159
|
</executions>
|
|
@ -482,46 +161,13 @@
|
482
|
161
|
</plugins>
|
483
|
162
|
</pluginManagement>
|
484
|
163
|
|
485
|
|
<outputDirectory>${basedir}/src/main/webapp/WEB-INF/classes</outputDirectory>
|
486
|
|
<resources>
|
487
|
|
<resource>
|
488
|
|
<directory>${project.basedir}/src/main/resources</directory>
|
489
|
|
<!-- 资源根目录排除各环境的配置,防止在生成目录中多余其它目录 -->
|
490
|
|
<excludes>
|
491
|
|
<exclude>test/*</exclude>
|
492
|
|
<exclude>pro/*</exclude>
|
493
|
|
<exclude>dev/*</exclude>
|
494
|
|
</excludes>
|
495
|
|
</resource>
|
496
|
|
<resource>
|
497
|
|
<directory>src/main/resources/${profiles.active}</directory>
|
498
|
|
</resource>
|
499
|
|
</resources>
|
|
164
|
<plugins>
|
|
165
|
<!-- 通过修改Tool类,解决此时执行插件会报错的问题 -->
|
|
166
|
<!-- 生成文件版本号和文件加密 -->
|
|
167
|
<plugin>
|
|
168
|
<groupId>org.codehaus.mojo</groupId>
|
|
169
|
<artifactId>exec-maven-plugin</artifactId>
|
|
170
|
</plugin>
|
|
171
|
</plugins>
|
500
|
172
|
</build>
|
501
|
|
<profiles>
|
502
|
|
<profile>
|
503
|
|
<!-- 本地开发环境 -->
|
504
|
|
<id>dev</id>
|
505
|
|
<properties>
|
506
|
|
<profiles.active>dev</profiles.active>
|
507
|
|
</properties>
|
508
|
|
<activation>
|
509
|
|
<activeByDefault>true</activeByDefault>
|
510
|
|
</activation>
|
511
|
|
</profile>
|
512
|
|
<profile>
|
513
|
|
<!-- 测试环境 -->
|
514
|
|
<id>test</id>
|
515
|
|
<properties>
|
516
|
|
<profiles.active>test</profiles.active>
|
517
|
|
</properties>
|
518
|
|
</profile>
|
519
|
|
<profile>
|
520
|
|
<!-- 生产环境 -->
|
521
|
|
<id>pro</id>
|
522
|
|
<properties>
|
523
|
|
<profiles.active>pro</profiles.active>
|
524
|
|
</properties>
|
525
|
|
</profile>
|
526
|
|
</profiles>
|
527
|
173
|
</project>
|