瀏覽代碼

解决打的war包不含本地jar包的问题

chengwb3 8 年之前
父節點
當前提交
e3dc2b2def
共有 2 個文件被更改,包括 70 次插入4 次删除
  1. 二進制
      display-server-maven/libs/java_memcached-release_2.5.3.jar
  2. 70 4
      display-server-maven/pom.xml

二進制
display-server-maven/libs/java_memcached-release_2.5.3.jar


+ 70 - 4
display-server-maven/pom.xml

@ -45,9 +45,41 @@
45 45
			<scope>system</scope>
46 46
			<systemPath>${basedir}/libs/wade-database.jar</systemPath>
47 47
		</dependency>
48
48
		<dependency>
49
			<groupId>local</groupId>
50
			<artifactId>wade-cache</artifactId>
51
			<version>1.0</version>
52
			<scope>system</scope>
53
			<systemPath>${basedir}/libs/wade-cache.jar</systemPath>
54
		</dependency>
55
		<dependency>
56
			<groupId>local</groupId>
57
			<artifactId>java_memcached-release</artifactId>
58
			<version>2.5.3</version>
59
			<scope>system</scope>
60
			<systemPath>${basedir}/libs/java_memcached-release_2.5.3.jar</systemPath>
61
		</dependency>
62
		<dependency>
63
			<groupId>local</groupId>
64
			<artifactId>wade-apache</artifactId>
65
			<version>1.0</version>
66
			<scope>system</scope>
67
			<systemPath>${basedir}/libs/wade-apache.jar</systemPath>
68
		</dependency>
49 69
50 70
		<!-- 添加第三方jar包 -->
71
		<!-- https://mvnrepository.com/artifact/jaxen/jaxen -->
72
		<dependency>
73
			<groupId>jaxen</groupId>
74
			<artifactId>jaxen</artifactId>
75
			<version>1.1.1</version>
76
		</dependency>
77
		<!-- https://mvnrepository.com/artifact/dom4j/dom4j -->
78
		<dependency>
79
			<groupId>dom4j</groupId>
80
			<artifactId>dom4j</artifactId>
81
			<version>1.6.1</version>
82
		</dependency>
51 83
		<dependency>
52 84
			<groupId>junit</groupId>
53 85
			<artifactId>junit</artifactId>
@ -76,6 +108,19 @@
76 108
			<artifactId>commons-codec</artifactId>
77 109
			<version>1.3</version>
78 110
		</dependency>
111
		<!-- https://mvnrepository.com/artifact/org.beetl/beetl-core -->
112
		<dependency>
113
			<groupId>org.beetl</groupId>
114
			<artifactId>beetl-core</artifactId>
115
			<version>2.2.3</version>
116
		</dependency>
117
		<!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity -->
118
		<dependency>
119
			<groupId>org.apache.velocity</groupId>
120
			<artifactId>velocity</artifactId>
121
			<version>1.7</version>
122
		</dependency>
123
79 124
80 125
	</dependencies>
81 126
@ -292,12 +337,33 @@
292 337
				<version>3.0.0</version>
293 338
				<configuration>
294 339
					<!-- <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes> -->
295
					<packagingExcludes>
296
						WEB-INF/lib/servlet-api-2.5.jar
297
					</packagingExcludes>
340
					<packagingExcludes> WEB-INF/lib/servlet-api-2.5.jar </packagingExcludes>
341
					<webResources>
342
						<resource>
343
							<directory>${basedir}/libs</directory>
344
							<includes>
345
								<include>*.jar</include>
346
							</includes>
347
							<targetPath>WEB-INF/lib</targetPath>
348
						</resource>
349
					</webResources>
298 350
				</configuration>
299 351
			</plugin>
300 352
353
			<!-- jetty 热部署 -->
354
			<!-- <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> 
355
				<version>6.1.22</version> <configuration> <scanIntervalSeconds>10</scanIntervalSeconds> 
356
				<useTestClasspath>true</useTestClasspath> <webAppConfig> <contextPath>/display</contextPath> 
357
				</webAppConfig> <connectors> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> 
358
				<port>8082</port> </connector> </connectors> </configuration> </plugin> -->
359
360
			<!-- 复制本地jar到web-info/lib -->
361
			<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> 
362
				<version>2.7</version> <executions> <execution> <phase>package</phase> <goals> 
363
				<goal>copy-dependencies</goal> </goals> </execution> </executions> <configuration> 
364
				<includeScope>system</includeScope> <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/lib</outputDirectory> 
365
				</configuration> </plugin> -->
366
301 367
		</plugins>
302 368
	</build>
303 369
</project>