-
Notifications
You must be signed in to change notification settings - Fork 36
/
pom.xml
139 lines (131 loc) · 3.92 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<artifactId>fast</artifactId>
<groupId>com.j2eefast</groupId>
<version>3.2.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<artifactId>fast-admin</artifactId>
<name>fast 服务入口</name>
<description>
fast 服务入口
</description>
<!-- 打包编码, 版本号, 日期-->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version>2.0.8</version>
<maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- 无引用 核心项目-->
<dependency>
<groupId>com.j2eefast</groupId>
<artifactId>fast-web</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.j2eefast</groupId>-->
<!-- <artifactId>fast-flowable</artifactId>-->
<!-- <version>3.2.0</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>p6spy</groupId>-->
<!-- <artifactId>p6spy</artifactId>-->
<!-- </dependency>-->
</dependencies>
<build>
<!--打包后的项目名称 -->
<finalName>fast-v${version}-${maven.build.timestamp}</finalName>
<plugins>
<!-- 跳过单元测试-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- 需要整体打包屏蔽 若本地开发放开跳过单元测试-->
<!-- <skipTests>true</skipTests>-->
<includes>
<include>**/RunTest.java</include>
</includes>
<excludes>
<exclude>**/test/Encode*.java</exclude>
</excludes>
</configuration>
</plugin>
<!-- java编译插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<!--<skipTests>true</skipTests>-->
</configuration>
</plugin>
<!-- 打jar包的插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib</classpathPrefix>
<!-- 程序启动入口 -->
<mainClass>com.j2eefast.FastApplication</mainClass>
</manifest>
<manifestEntries>
<Class-Path>./</Class-Path>
</manifestEntries>
</archive>
<!-- 不打包资源文件(配置文件和依赖包分开) -->
<excludes>
<exclude>config/**</exclude>
<exclude>statics/**</exclude>
<exclude>public/**</exclude>
<exclude>mapper/**</exclude>
<exclude>templates/**</exclude>
<exclude>i18n/**</exclude>
<exclude>*.yml</exclude>
<exclude>*.txt</exclude>
<exclude>*.xml</exclude>
<exclude>*.pfx</exclude>
<exclude>*.bat</exclude>
<exclude>*.sh</exclude>
<exclude>build/**</exclude>
<exclude>*.properties</exclude>
<exclude>license/**</exclude>
<exclude>ehcache/**</exclude>
<exclude>run/**</exclude>
</excludes>
</configuration>
</plugin>
<!-- 需要打成完整gz包放开注解
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/build/package.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>-->
</plugins>
</build>
</project>