浏览代码

基类pom和web-pom文件优化

huangbo 8 年之前
父节点
当前提交
9fc960ecae
共有 2 个文件被更改,包括 112 次插入99 次删除
  1. 3 5
      ipu-server-lib/pom.xml
  2. 109 94
      ipu-server-lib/web-pom.xml

+ 3 - 5
ipu-server-lib/pom.xml

@ -12,9 +12,9 @@
12 12
	<!-- 定义公共变量 -->
13 13
	<properties>
14 14
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15
16
		<!-- Central jar -->
17 15
		<encoding>UTF-8</encoding>
16
		
17
		<!-- Central jar -->
18 18
		<junit>3.8.1</junit>
19 19
		<servlet-api>2.5</servlet-api>
20 20
		<log4j>1.2.8</log4j>
@ -49,10 +49,8 @@
49 49
		<exec-maven-plugin>1.5.0</exec-maven-plugin>
50 50
		<maven-dependency-plugin>2.4</maven-dependency-plugin>
51 51
52
		<!-- 本地jar路径 -->
53
		<jar-path>${project.basedir}/local1</jar-path>
54 52
		<!-- 本地jar路径all -->
55
		<jar-path-all>${project.basedir}/all1</jar-path-all>
53
		<jar-path-all>${project.basedir}/all</jar-path-all>
56 54
57 55
	</properties>
58 56

+ 109 - 94
ipu-server-lib/web-pom.xml

@ -13,7 +13,8 @@
13 13
	<properties>
14 14
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15 15
		<encoding>UTF-8</encoding>
16
		<!-- 公共必选依赖 -->
16
		
17
		<!-- Central jar -->
17 18
		<junit>3.8.1</junit>
18 19
		<servlet-api>2.5</servlet-api>
19 20
		<log4j>1.2.8</log4j>
@ -23,29 +24,38 @@
23 24
		<commons-lang3>3.4</commons-lang3>
24 25
		<beetl-core>2.2.3</beetl-core>
25 26
		<velocity>1.7</velocity>
26
27
		<!-- 公共可选依赖 -->
28 27
		<jsoup>1.7.2</jsoup>
29 28
		<commons-fileupload>1.3.1</commons-fileupload>
30 29
		<commons-dbcp>1.4</commons-dbcp>
31 30
		<mysql-connector-java>5.1.38</mysql-connector-java>
32 31
		<commons-codec>1.3</commons-codec>
33
32
		<java_memcache-release>2.5.3</java_memcache-release>
33
		<!-- 3rd party jar -->
34
		<ojdbc>14</ojdbc>
35
		<java_memcache-release>2.5.3</java_memcache-release>
36
		<amail>1.0</amail>
37
		<zxing>1.0</zxing>
38
		<!-- ipu jar -->
39
		<ipu>3.0</ipu>
40
		<wade>1.0</wade>
41
		
34 42
		<!-- 公共插件 -->
35 43
		<maven-clean-plugin>3.0.0</maven-clean-plugin>
36
		<maven-resources-plugin>2.6</maven-resources-plugin>
44
		<maven-resources-plugin>3.0.1</maven-resources-plugin>
37 45
		<maven-compiler-plugin>3.1</maven-compiler-plugin>
38 46
		<compiler-version>1.6</compiler-version>
39
		<maven-surefire-plugin>2.16</maven-surefire-plugin>
47
		<maven-surefire-plugin>2.5</maven-surefire-plugin>
40 48
		<maven-war-plugin>2.6</maven-war-plugin>
41 49
		<exec-maven-plugin>1.5.0</exec-maven-plugin>
42
		<!-- 本地jar路径 -->
43
		<jar-path>${project.basedir}/local</jar-path>
50
		<maven-dependency-plugin>2.4</maven-dependency-plugin>
51
		
52
		<!-- 本地jar路径all -->
53
		<jar-path-all>${project.basedir}/all</jar-path-all>
44 54
	</properties>
45 55
46 56
	<dependencyManagement>
47 57
		<dependencies>
48
			<!-- 公共必选依赖 -->
58
			<!-- Central jar -->
49 59
			<dependency>
50 60
				<groupId>junit</groupId>
51 61
				<artifactId>junit</artifactId>
@ -93,106 +103,122 @@
93 103
				<artifactId>velocity</artifactId>
94 104
				<version>${velocity}</version>
95 105
			</dependency>
96
97
			<!-- 公共本地依赖 -->
98 106
			<dependency>
99
				<groupId>local</groupId>
100
				<artifactId>ipu-basic</artifactId>
101
				<version>1.0</version>
102
				<scope>system</scope>
103
				<systemPath>${jar-path}/ipu-basic-1.0.jar</systemPath>
107
				<groupId>org.jsoup</groupId>
108
				<artifactId>jsoup</artifactId>
109
				<version>${jsoup}</version>
104 110
			</dependency>
105 111
			<dependency>
106
				<groupId>local</groupId>
107
				<artifactId>ipu-common</artifactId>
108
				<version>1.0</version>
109
				<scope>system</scope>
110
				<systemPath>${jar-path}/ipu-common-1.0.jar</systemPath>
112
				<groupId>commons-fileupload</groupId>
113
				<artifactId>commons-fileupload</artifactId>
114
				<version>${commons-fileupload}</version>
111 115
			</dependency>
112 116
			<dependency>
113
				<groupId>local</groupId>
114
				<artifactId>ipu-server-web</artifactId>
115
				<version>1.0</version>
116
				<scope>system</scope>
117
				<systemPath>${jar-path}/ipu-server-web-1.0.jar</systemPath>
117
				<groupId>commons-dbcp</groupId>
118
				<artifactId>commons-dbcp</artifactId>
119
				<version>${commons-dbcp}</version>
118 120
			</dependency>
119 121
			<dependency>
120
				<groupId>local</groupId>
121
				<artifactId>wade-data</artifactId>
122
				<version>1.0</version>
123
				<scope>system</scope>
124
				<systemPath>${jar-path}/wade-data.jar</systemPath>
122
				<groupId>mysql</groupId>
123
				<artifactId>mysql-connector-java</artifactId>
124
				<version>${mysql-connector-java}</version>
125 125
			</dependency>
126 126
			<dependency>
127
				<groupId>local</groupId>
128
				<artifactId>wade-cache</artifactId>
129
				<version>1.0</version>
130
				<scope>system</scope>
131
				<systemPath>${jar-path}/wade-cache.jar</systemPath>
127
				<groupId>commons-codec</groupId>
128
				<artifactId>commons-codec</artifactId>
129
				<version>${commons-codec}</version>
132 130
			</dependency>
131
132
			<!-- 3rd party jar -->
133 133
			<dependency>
134
				<groupId>local</groupId>
135
				<artifactId>wade-database</artifactId>
136
				<version>1.0</version>
137
				<scope>system</scope>
138
				<systemPath>${jar-path}/wade-database.jar</systemPath>
134
				<groupId>com</groupId>
135
				<artifactId>java_memcache-release</artifactId>
136
				<version>${java_memcache-release}</version>
139 137
			</dependency>
140 138
			<dependency>
141
				<groupId>local</groupId>
142
				<artifactId>wade-apache</artifactId>
143
				<version>1.0</version>
144
				<scope>system</scope>
145
				<systemPath>${jar-path}/wade-apache.jar</systemPath>
139
				<groupId>com.amail</groupId>
140
				<artifactId>amail</artifactId>
141
				<version>${amail}</version>
146 142
			</dependency>
147 143
			<dependency>
148
				<groupId>local</groupId>
149
				<artifactId>wade-common</artifactId>
150
				<version>1.0</version>
151
				<scope>system</scope>
152
				<systemPath>${jar-path}/wade-common.jar</systemPath>
144
				<groupId>com.zxing</groupId>
145
				<artifactId>zxing</artifactId>
146
				<version>${zxing}</version>
153 147
			</dependency>
154 148
			<dependency>
155
				<groupId>local</groupId>
156
				<artifactId>wade-sqlite-jdbc</artifactId>
157
				<version>1.0</version>
158
				<scope>system</scope>
159
				<systemPath>${jar-path}/wade-sqlite-jdbc.jar</systemPath>
149
				<groupId>ojdbc</groupId>
150
				<artifactId>ojdbc</artifactId>
151
				<version>${ojdbc}</version>
152
			</dependency>
153
154
			<!-- ipu jar -->
155
			<dependency>
156
				<groupId>com.ai.ipu</groupId>
157
				<artifactId>ipu-basic</artifactId>
158
				<version>${ipu}</version>
159
			</dependency>
160
			<dependency>
161
				<groupId>com.ai.ipu</groupId>
162
				<artifactId>ipu-common</artifactId>
163
				<version>${ipu}</version>
164
			</dependency>
165
			<dependency>
166
				<groupId>com.ai.ipu</groupId>
167
				<artifactId>ipu-database</artifactId>
168
				<version>${ipu}</version>
160 169
			</dependency>
161 170
			<dependency>
162
				<groupId>local</groupId>
163
				<artifactId>java_memcached-release</artifactId>
164
				<version>2.5.3</version>
165
				<scope>system</scope>
166
				<systemPath>${jar-path}/java_memcached-release_2.5.3.jar</systemPath>
171
				<groupId>com.ai.ipu</groupId>
172
				<artifactId>ipu-remote-clinet</artifactId>
173
				<version>${ipu}</version>
174
			</dependency>
175
			<dependency>
176
				<groupId>com.ai.ipu</groupId>
177
				<artifactId>ipu-server-web</artifactId>
178
				<version>${ipu}</version>
167 179
			</dependency>
168 180
169
			<!-- 公共可选依赖 -->
170 181
			<dependency>
171
				<groupId>org.jsoup</groupId>
172
				<artifactId>jsoup</artifactId>
173
				<version>${jsoup}</version>
182
				<groupId>com.ai.wade</groupId>
183
				<artifactId>wade-data</artifactId>
184
				<version>${wade}</version>
174 185
			</dependency>
175 186
			<dependency>
176
				<groupId>commons-fileupload</groupId>
177
				<artifactId>commons-fileupload</artifactId>
178
				<version>${commons-fileupload}</version>
187
				<groupId>com.ai.wade</groupId>
188
				<artifactId>wade-mobile-data</artifactId>
189
				<version>${wade}</version>
179 190
			</dependency>
180 191
			<dependency>
181
				<groupId>commons-dbcp</groupId>
182
				<artifactId>commons-dbcp</artifactId>
183
				<version>${commons-dbcp}</version>
192
				<groupId>com.ai.wade</groupId>
193
				<artifactId>wade-cache</artifactId>
194
				<version>${wade}</version>
184 195
			</dependency>
185
			<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
186 196
			<dependency>
187
				<groupId>mysql</groupId>
188
				<artifactId>mysql-connector-java</artifactId>
189
				<version>${mysql-connector-java}</version>
197
				<groupId>com.ai.wade</groupId>
198
				<artifactId>wade-apache</artifactId>
199
				<version>${wade}</version>
190 200
			</dependency>
191 201
			<dependency>
192
				<groupId>commons-codec</groupId>
193
				<artifactId>commons-codec</artifactId>
194
				<version>${commons-codec}</version>
202
				<groupId>com.ai.wade</groupId>
203
				<artifactId>wade-common</artifactId>
204
				<version>${wade}</version>
205
			</dependency>
206
			<dependency>
207
				<groupId>com.ai.wade</groupId>
208
				<artifactId>wade-database</artifactId>
209
				<version>${wade}</version>
210
			</dependency>
211
			<dependency>
212
				<groupId>com.ai.wade</groupId>
213
				<artifactId>wade-sqlite-jdbc</artifactId>
214
				<version>${wade}</version>
195 215
			</dependency>
216
			<dependency>
217
				<groupId>com.ai.wade</groupId>
218
				<artifactId>wade-codecode</artifactId>
219
				<version>${wade}</version>
220
			</dependency>
221
196 222
		</dependencies>
197 223
	</dependencyManagement>
198 224
@ -210,25 +236,12 @@
210 236
						<target>${compiler-version}</target>
211 237
					</configuration>
212 238
				</plugin>
213
				<!-- war包去除servlet-api的jar包 -->
214
				<plugin>
239
				<!-- 由于配置了<packaging>war</packaging>,插件maven-war-plugin默认调用 -->
240
				<!-- <plugin>
215 241
					<groupId>org.apache.maven.plugins</groupId>
216 242
					<artifactId>maven-war-plugin</artifactId>
217 243
					<version>${maven-war-plugin}</version>
218
					<configuration>
219
						<!-- servlet-api相关jar不打包,前面的scope=provided已解决 -->
220
						<packagingExcludes> WEB-INF/lib/servlet-api*.jar </packagingExcludes>
221
						<webResources>
222
							<resource>
223
								<directory>${jar-path}</directory>
224
								<includes>
225
									<include>*.jar</include>
226
								</includes>
227
								<targetPath>WEB-INF/lib</targetPath>
228
							</resource>
229
						</webResources>
230
					</configuration>
231
				</plugin>
244
				</plugin> -->
232 245
				<plugin>
233 246
					<groupId>org.apache.maven.plugins</groupId>
234 247
					<artifactId>maven-surefire-plugin</artifactId>
@ -251,5 +264,7 @@
251 264
				</plugin>
252 265
			</plugins>
253 266
		</pluginManagement>
267
		
268
		<outputDirectory>${basedir}/src/main/webapp/WEB-INF/classes</outputDirectory>
254 269
	</build>
255 270
</project>