Przeglądaj źródła

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

chengwb3 8 lat temu
rodzic
commit
8fc4df2280
2 zmienionych plików z 57 dodań i 5 usunięć
  1. 19 0
      display-server/pom.xml
  2. 38 5
      ipu-server-lib/pom.xml

+ 19 - 0
display-server/pom.xml

@ -140,8 +140,27 @@
140 140
				<groupId>org.codehaus.mojo</groupId>
141 141
				<artifactId>exec-maven-plugin</artifactId>
142 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 161
		</plugins>
144 162

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

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

@ -49,9 +49,9 @@
49 49
		<exec-maven-plugin>1.5.0</exec-maven-plugin>
50 50
51 51
		<!-- 本地jar路径 -->
52
		<jar-path>${project.basedir}/local</jar-path>
52
		<jar-path>${project.basedir}/local1</jar-path>
53 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 56
	</properties>
57 57
@ -120,7 +120,6 @@
120 120
				<artifactId>commons-dbcp</artifactId>
121 121
				<version>${commons-dbcp}</version>
122 122
			</dependency>
123
			<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
124 123
			<dependency>
125 124
				<groupId>mysql</groupId>
126 125
				<artifactId>mysql-connector-java</artifactId>
@ -369,7 +368,41 @@
369 368
								</resources>
370 369
							</configuration>
371 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 406
							<id>copy-lib</id>
374 407
							<phase>prepare-package</phase>
375 408
							<goals>
@ -386,7 +419,7 @@
386 419
									</resource>
387 420
								</resources>
388 421
							</configuration>
389
						</execution>
422
						</execution> -->
390 423
					</executions>
391 424
				</plugin>
392 425
				<!-- 生成文件版本号和文件加密 -->