Browse Source

使用私服后,maven优化第一部分提交

chengwb3 8 years ago
parent
commit
8fc4df2280
2 changed files with 57 additions and 5 deletions
  1. 19 0
      display-server/pom.xml
  2. 38 5
      ipu-server-lib/pom.xml

+ 19 - 0
display-server/pom.xml

140
				<groupId>org.codehaus.mojo</groupId>
140
				<groupId>org.codehaus.mojo</groupId>
141
				<artifactId>exec-maven-plugin</artifactId>
141
				<artifactId>exec-maven-plugin</artifactId>
142
			</plugin>
142
			</plugin>
143
			<plugin>
144
				<groupId>org.apache.maven.plugins</groupId>
145
				<artifactId>maven-dependency-plugin</artifactId>
146
				<executions>
147
					<execution>
148
						<id>copy-dep</id>
149
						<phase>package</phase>
150
						<goals>
151
							<goal>copy-dependencies</goal>
152
						</goals>
153
						<configuration>
154
							<outputDirectory>${basedir}/src/main/webapp/WEB-INF/lib</outputDirectory>
155
							<excludeScope>provided</excludeScope>
156
							<excludeArtifactIds>junit</excludeArtifactIds>
157
						</configuration>
158
					</execution>
159
				</executions>
160
			</plugin>
143
		</plugins>
161
		</plugins>
144

162

145
		<finalName>display</finalName>
163
		<finalName>display</finalName>
164
		<outputDirectory>${basedir}/src/main/webapp/WEB-INF/classes</outputDirectory>
146
	</build>
165
	</build>
147
</project>
166
</project>

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

49
		<exec-maven-plugin>1.5.0</exec-maven-plugin>
49
		<exec-maven-plugin>1.5.0</exec-maven-plugin>
50
50
51
		<!-- 本地jar路径 -->
51
		<!-- 本地jar路径 -->
52
		<jar-path>${project.basedir}/local</jar-path>
52
		<jar-path>${project.basedir}/local1</jar-path>
53
		<!-- 本地jar路径all -->
53
		<!-- 本地jar路径all -->
54
		<jar-path-all>${project.basedir}/all</jar-path-all>
54
		<jar-path-all>${project.basedir}/all1</jar-path-all>
55
55
56
	</properties>
56
	</properties>
57
57
120
				<artifactId>commons-dbcp</artifactId>
120
				<artifactId>commons-dbcp</artifactId>
121
				<version>${commons-dbcp}</version>
121
				<version>${commons-dbcp}</version>
122
			</dependency>
122
			</dependency>
123
			<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
124
			<dependency>
123
			<dependency>
125
				<groupId>mysql</groupId>
124
				<groupId>mysql</groupId>
126
				<artifactId>mysql-connector-java</artifactId>
125
				<artifactId>mysql-connector-java</artifactId>
369
								</resources>
368
								</resources>
370
							</configuration>
369
							</configuration>
371
						</execution>
370
						</execution>
372
						<execution>
371
						<!-- <execution>
372
							<id>copy-lua-2</id>
373
							<phase>process-resources</phase>
374
							<goals>
375
								<goal>copy-resources</goal>
376
							</goals>
377
							<configuration>
378
								<outputDirectory>${basedir}/src/main/webapp/WEB-INF/classes/lua</outputDirectory>
379
								<resources>
380
									<resource>
381
										<directory>${basedir}/src/main/resources/lua</directory>
382
									</resource>
383
								</resources>
384
							</configuration>
385
						</execution> -->
386
						<!-- <execution>
387
							<id>copy-classes-and-lib</id>
388
							<phase>package</phase>
389
							<goals>
390
								<goal>copy-resources</goal>
391
							</goals>
392
							<configuration>
393
								<outputDirectory>${basedir}/src/main/webapp/WEB-INF/</outputDirectory>
394
								<resources>
395
									<resource>
396
										<directory>${project.build.directory}/display/WEB-INF/</directory>
397
										<excludes>
398
											<exclude>.gitignore</exclude>
399
											<exclude>web.xml</exclude>
400
										</excludes>
401
									</resource>
402
								</resources>
403
							</configuration>
404
						</execution> -->
405
						<!-- <execution>
373
							<id>copy-lib</id>
406
							<id>copy-lib</id>
374
							<phase>prepare-package</phase>
407
							<phase>prepare-package</phase>
375
							<goals>
408
							<goals>
386
									</resource>
419
									</resource>
387
								</resources>
420
								</resources>
388
							</configuration>
421
							</configuration>
389
						</execution>
422
						</execution> -->
390
					</executions>
423
					</executions>
391
				</plugin>
424
				</plugin>
392
				<!-- 生成文件版本号和文件加密 -->
425
				<!-- 生成文件版本号和文件加密 -->