Explorar el Código

checkstyle插件集成,指定自定义ipu_checkstyle.xml路径

Administrator %!s(int64=7) %!d(string=hace) años
padre
commit
1626513dbc
Se han modificado 1 ficheros con 17 adiciones y 1 borrados
  1. 17 1
      ipu-web-libs/pom.xml

+ 17 - 1
ipu-web-libs/pom.xml

@ -16,7 +16,7 @@
16 16
			<url>http://114.215.100.48:9090/nexus/content/repositories/ipu/</url>
17 17
		</repository>
18 18
	</distributionManagement>
19
	
19
20 20
	<!-- 定义公共变量 -->
21 21
	<properties>
22 22
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@ -60,6 +60,7 @@
60 60
		<maven-war-plugin>2.6</maven-war-plugin>
61 61
		<exec-maven-plugin>1.5.0</exec-maven-plugin>
62 62
		<maven-dependency-plugin>2.4</maven-dependency-plugin>
63
		<maven-checkstyle-plugin>3.0.0</maven-checkstyle-plugin>
63 64
64 65
		<!-- 本地jar路径all -->
65 66
		<jar-path-all>${project.basedir}/all</jar-path-all>
@ -315,6 +316,18 @@
315 316
						</execution>
316 317
					</executions>
317 318
				</plugin>
319
				<!-- checkstyle插件,指定自定义ipu_checkstyle.xml文件 -->
320
				<plugin>
321
					<groupId>org.apache.maven.plugins</groupId>
322
					<artifactId>maven-checkstyle-plugin</artifactId>
323
					<version>${maven-checkstyle-plugin}</version>
324
					<configuration>
325
						<consoleOutput>false</consoleOutput>
326
						<outputFileFormat>xml</outputFileFormat>
327
						<configLocation>${profiles.checkstyleConfigLocation}</configLocation>
328
						<linkXRef>false</linkXRef>
329
					</configuration>
330
				</plugin>
318 331
			</plugins>
319 332
		</pluginManagement>
320 333
@ -340,6 +353,7 @@
340 353
			<id>dev</id>
341 354
			<properties>
342 355
				<profiles.active>dev</profiles.active>
356
				<profiles.checkstyleConfigLocation>C:/soft/adt-eclipse-luna/eclipse-luna-x86/ipu_checkstyle.xml</profiles.checkstyleConfigLocation>
343 357
			</properties>
344 358
			<activation>
345 359
				<activeByDefault>true</activeByDefault>
@ -350,6 +364,7 @@
350 364
			<id>test</id>
351 365
			<properties>
352 366
				<profiles.active>test</profiles.active>
367
				<profiles.checkstyleConfigLocation>/aifs01/jenkins_workspace/git_all/ipu_checkstyle.xml</profiles.checkstyleConfigLocation>
353 368
			</properties>
354 369
		</profile>
355 370
		<profile>
@ -357,6 +372,7 @@
357 372
			<id>pro</id>
358 373
			<properties>
359 374
				<profiles.active>pro</profiles.active>
375
				<profiles.checkstyleConfigLocation>/aifs01/jenkins_workspace/git_all/ipu_checkstyle.xml</profiles.checkstyleConfigLocation>
360 376
			</properties>
361 377
		</profile>
362 378
	</profiles>