Selaa lähdekoodia

增加web-pom.xml

huangbo 8 vuotta sitten
vanhempi
commit
2a5ecf67ea
2 muutettua tiedostoa jossa 263 lisäystä ja 0 poistoa
  1. 9 0
      ipu-server-lib/pom.xml
  2. 254 0
      ipu-server-lib/web-pom.xml

+ 9 - 0
ipu-server-lib/pom.xml

@ -217,6 +217,15 @@
217 217
					<configuration>
218 218
						<!-- servlet-api相关jar不打包,前面的scope=provided已解决 -->
219 219
						<packagingExcludes> WEB-INF/lib/servlet-api*.jar </packagingExcludes>
220
						<webResources>
221
							<resource>
222
								<directory>${jar-path}</directory>
223
								<includes>
224
									<include>*.jar</include>
225
								</includes>
226
								<targetPath>WEB-INF/lib</targetPath>
227
							</resource>
228
						</webResources>
220 229
					</configuration>
221 230
				</plugin>
222 231
				<!-- 跳过单元测试 -->

+ 254 - 0
ipu-server-lib/web-pom.xml

@ -0,0 +1,254 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
	<modelVersion>4.0.0</modelVersion>
4
5
	<groupId>ipu</groupId>
6
	<artifactId>ipu-server-lib</artifactId>
7
	<version>1.0</version>
8
	<packaging>pom</packaging>
9
	<name>ipu-server-lib</name>
10
11
	<!-- 定义公共变量 -->
12
	<properties>
13
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14
		<encoding>UTF-8</encoding>
15
		<!-- 公共必选依赖 -->
16
		<junit>3.8.1</junit>
17
		<servlet-api>2.5</servlet-api>
18
		<log4j>1.2.8</log4j>
19
		<unirest-java>1.3.8</unirest-java>
20
		<dom4j>1.6.1</dom4j>
21
		<jaxen>1.1.1</jaxen>
22
		<commons-lang3>3.4</commons-lang3>
23
		<beetl-core>2.2.3</beetl-core>
24
		<velocity>1.7</velocity>
25
26
		<!-- 公共可选依赖 -->
27
		<jsoup>1.7.2</jsoup>
28
		<commons-fileupload>1.3.1</commons-fileupload>
29
		<commons-dbcp>1.4</commons-dbcp>
30
		<mysql-connector-java>5.1.38</mysql-connector-java>
31
		<commons-codec>1.3</commons-codec>
32
33
		<!-- 公共插件 -->
34
		<maven-clean-plugin>3.0.0</maven-clean-plugin>
35
		<maven-resources-plugin>2.6</maven-resources-plugin>
36
		<maven-compiler-plugin>3.1</maven-compiler-plugin>
37
		<compiler-version>1.6</compiler-version>
38
		<maven-surefire-plugin>2.16</maven-surefire-plugin>
39
		<maven-war-plugin>2.6</maven-war-plugin>
40
		<exec-maven-plugin>1.5.0</exec-maven-plugin>
41
		<!-- 本地jar路径 -->
42
		<jar-path>${project.basedir}/local</jar-path>
43
	</properties>
44
45
	<dependencyManagement>
46
		<dependencies>
47
			<!-- 公共必选依赖 -->
48
			<dependency>
49
				<groupId>junit</groupId>
50
				<artifactId>junit</artifactId>
51
				<version>${junit}</version>
52
				<scope>test</scope>
53
			</dependency>
54
			<dependency>
55
				<groupId>javax.servlet</groupId>
56
				<artifactId>servlet-api</artifactId>
57
				<version>${servlet-api}</version>
58
				<scope>provided</scope>
59
			</dependency>
60
			<dependency>
61
				<groupId>org.apache.commons</groupId>
62
				<artifactId>commons-lang3</artifactId>
63
				<version>${commons-lang3}</version>
64
			</dependency>
65
			<dependency>
66
				<groupId>log4j</groupId>
67
				<artifactId>log4j</artifactId>
68
				<version>${log4j}</version>
69
			</dependency>
70
			<dependency>
71
				<groupId>dom4j</groupId>
72
				<artifactId>dom4j</artifactId>
73
				<version>${dom4j}</version>
74
			</dependency>
75
			<dependency>
76
				<groupId>jaxen</groupId>
77
				<artifactId>jaxen</artifactId>
78
				<version>${jaxen}</version>
79
			</dependency>
80
			<dependency>
81
				<groupId>com.mashape.unirest</groupId>
82
				<artifactId>unirest-java</artifactId>
83
				<version>${unirest-java}</version>
84
			</dependency>
85
			<dependency>
86
				<groupId>org.beetl</groupId>
87
				<artifactId>beetl-core</artifactId>
88
				<version>${beetl-core}</version>
89
			</dependency>
90
			<dependency>
91
				<groupId>org.apache.velocity</groupId>
92
				<artifactId>velocity</artifactId>
93
				<version>${velocity}</version>
94
			</dependency>
95
96
			<!-- 公共本地依赖 -->
97
			<dependency>
98
				<groupId>local</groupId>
99
				<artifactId>ipu-basic</artifactId>
100
				<version>1.0</version>
101
				<scope>system</scope>
102
				<systemPath>${jar-path}/ipu-basic-1.0.jar</systemPath>
103
			</dependency>
104
			<dependency>
105
				<groupId>local</groupId>
106
				<artifactId>ipu-common</artifactId>
107
				<version>1.0</version>
108
				<scope>system</scope>
109
				<systemPath>${jar-path}/ipu-common-1.0.jar</systemPath>
110
			</dependency>
111
			<dependency>
112
				<groupId>local</groupId>
113
				<artifactId>ipu-server-web</artifactId>
114
				<version>1.0</version>
115
				<scope>system</scope>
116
				<systemPath>${jar-path}/ipu-server-web-1.0.jar</systemPath>
117
			</dependency>
118
			<dependency>
119
				<groupId>local</groupId>
120
				<artifactId>wade-data</artifactId>
121
				<version>1.0</version>
122
				<scope>system</scope>
123
				<systemPath>${jar-path}/wade-data.jar</systemPath>
124
			</dependency>
125
			<dependency>
126
				<groupId>local</groupId>
127
				<artifactId>wade-cache</artifactId>
128
				<version>1.0</version>
129
				<scope>system</scope>
130
				<systemPath>${jar-path}/wade-cache.jar</systemPath>
131
			</dependency>
132
			<dependency>
133
				<groupId>local</groupId>
134
				<artifactId>wade-database</artifactId>
135
				<version>1.0</version>
136
				<scope>system</scope>
137
				<systemPath>${jar-path}/wade-database.jar</systemPath>
138
			</dependency>
139
			<dependency>
140
				<groupId>local</groupId>
141
				<artifactId>wade-apache</artifactId>
142
				<version>1.0</version>
143
				<scope>system</scope>
144
				<systemPath>${jar-path}/wade-apache.jar</systemPath>
145
			</dependency>
146
			<dependency>
147
				<groupId>local</groupId>
148
				<artifactId>wade-common</artifactId>
149
				<version>1.0</version>
150
				<scope>system</scope>
151
				<systemPath>${jar-path}/wade-common.jar</systemPath>
152
			</dependency>
153
			<dependency>
154
				<groupId>local</groupId>
155
				<artifactId>wade-sqlite-jdbc</artifactId>
156
				<version>1.0</version>
157
				<scope>system</scope>
158
				<systemPath>${jar-path}/wade-sqlite-jdbc.jar</systemPath>
159
			</dependency>
160
			<dependency>
161
				<groupId>local</groupId>
162
				<artifactId>java_memcached-release</artifactId>
163
				<version>2.5.3</version>
164
				<scope>system</scope>
165
				<systemPath>${jar-path}/java_memcached-release_2.5.3.jar</systemPath>
166
			</dependency>
167
168
			<!-- 公共可选依赖 -->
169
			<dependency>
170
				<groupId>org.jsoup</groupId>
171
				<artifactId>jsoup</artifactId>
172
				<version>${jsoup}</version>
173
			</dependency>
174
			<dependency>
175
				<groupId>commons-fileupload</groupId>
176
				<artifactId>commons-fileupload</artifactId>
177
				<version>${commons-fileupload}</version>
178
			</dependency>
179
			<dependency>
180
				<groupId>commons-dbcp</groupId>
181
				<artifactId>commons-dbcp</artifactId>
182
				<version>${commons-dbcp}</version>
183
			</dependency>
184
			<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
185
			<dependency>
186
				<groupId>mysql</groupId>
187
				<artifactId>mysql-connector-java</artifactId>
188
				<version>${mysql-connector-java}</version>
189
			</dependency>
190
			<dependency>
191
				<groupId>commons-codec</groupId>
192
				<artifactId>commons-codec</artifactId>
193
				<version>${commons-codec}</version>
194
			</dependency>
195
		</dependencies>
196
	</dependencyManagement>
197
198
	<build>
199
		<pluginManagement>
200
			<plugins>
201
				<!-- 默认插件,不引入也可使用 -->
202
				<!-- 默认jre编译版本 -->
203
				<plugin>
204
					<groupId>org.apache.maven.plugins</groupId>
205
					<artifactId>maven-compiler-plugin</artifactId>
206
					<version>${maven-compiler-plugin}</version>
207
					<configuration>
208
						<source>${compiler-version}</source>
209
						<target>${compiler-version}</target>
210
					</configuration>
211
				</plugin>
212
				<!-- war包去除servlet-api的jar包 -->
213
				<plugin>
214
					<groupId>org.apache.maven.plugins</groupId>
215
					<artifactId>maven-war-plugin</artifactId>
216
					<version>${maven-war-plugin}</version>
217
					<configuration>
218
						<!-- servlet-api相关jar不打包,前面的scope=provided已解决 -->
219
						<packagingExcludes> WEB-INF/lib/servlet-api*.jar </packagingExcludes>
220
						<webResources>
221
							<resource>
222
								<directory>${jar-path}</directory>
223
								<includes>
224
									<include>*.jar</include>
225
								</includes>
226
								<targetPath>WEB-INF/lib</targetPath>
227
							</resource>
228
						</webResources>
229
					</configuration>
230
				</plugin>
231
				<plugin>
232
					<groupId>org.apache.maven.plugins</groupId>
233
					<artifactId>maven-surefire-plugin</artifactId>
234
					<version>${maven-surefire-plugin}</version>
235
					<configuration>
236
						<!-- 跳过单元测试 -->
237
						<skip>true</skip>
238
					</configuration>
239
				</plugin>
240
				<plugin>
241
					<groupId>org.apache.maven.plugins</groupId>
242
					<artifactId>maven-clean-plugin</artifactId>
243
					<version>${maven-clean-plugin}</version>
244
				</plugin>
245
				<!-- 复制资源 -->
246
				<plugin>
247
					<groupId>org.apache.maven.plugins</groupId>
248
					<artifactId>maven-resources-plugin</artifactId>
249
					<version>${maven-resources-plugin}</version>
250
				</plugin>
251
			</plugins>
252
		</pluginManagement>
253
	</build>
254
</project>