Skip to content

Maven marked success when Linkage Checker fails to read the exclusion XML file #2006

@suztomo

Description

@suztomo

Maven marked success when Linkage Checker fails to read the exclusion XML file:

[WARNING] Failed to run Linkage Checker
java.nio.file.NoSuchFileException: linkage-checker-exclusion-rules.xml
    at sun.nio.fs.UnixException.translateToIOException (UnixException.java:86)
    at sun.nio.fs.UnixException.rethrowAsIOException (UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException (UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.newByteChannel (UnixFileSystemProvider.java:214)
    at java.nio.file.Files.newByteChannel (Files.java:361)
    at java.nio.file.Files.newByteChannel (Files.java:407)
    at java.nio.file.spi.FileSystemProvider.newInputStream (FileSystemProvider.java:384)
    at java.nio.file.Files.newInputStream (Files.java:152)
    at com.google.cloud.tools.opensource.classpath.ExclusionFiles.parse (ExclusionFiles.java:100)
    at com.google.cloud.tools.opensource.classpath.ExcludedErrors.create (ExcludedErrors.java:50)
    at com.google.cloud.tools.opensource.classpath.LinkageChecker.create (LinkageChecker.java:94)
    at com.google.cloud.tools.dependencies.enforcer.LinkageCheckerRule.execute (LinkageCheckerRule.java:205)
    at org.apache.maven.plugins.enforcer.EnforceMojo.execute (EnforceMojo.java:205)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:190)
    at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:186)
    at java.util.concurrent.FutureTask.run (FutureTask.java:266)
    at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:511)
    at java.util.concurrent.FutureTask.run (FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
    at java.lang.Thread.run (Thread.java:748)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Spring Cloud GCP 2.0.3-SNAPSHOT:
[INFO] 
[INFO] Spring Cloud GCP ................................... SUCCESS [  4.712 s]
[INFO] Spring Cloud GCP Module - Core ..................... SUCCESS [  5.914 s]
[INFO] Spring Cloud GCP Module - Stackdriver Logging ...... SUCCESS [ 13.888 s]
[INFO] Spring Cloud GCP Module - Pub/Sub .................. SUCCESS [ 21.140 s]
[INFO] Spring Cloud GCP Module - Storage .................. SUCCESS [ 15.809 s]
[INFO] Spring Cloud GCP Module - Datastore ................ SUCCESS [ 28.845 s]
[INFO] Spring Cloud GCP Module - Cloud Spanner ............ SUCCESS [ 29.032 s]
[INFO] Spring Cloud GCP Module - Firestore ................ SUCCESS [  9.572 s]
[INFO] Spring Cloud GCP Module - BigQuery ................. SUCCESS [  4.880 s]
[INFO] Spring Cloud GCP Module - Vision ................... SUCCESS [  5.850 s]
[INFO] Spring Cloud GCP Module - Secret Manager ........... SUCCESS [  0.811 s]
[INFO] Spring Cloud GCP Module - KMS ...................... SUCCESS [  0.733 s]
[INFO] Spring Cloud GCP Module - IAP Authentication ....... SUCCESS [  5.086 s]
[INFO] Spring Cloud GCP Module - Firebase Auth ............ SUCCESS [  0.730 s]
[INFO] Spring Cloud GCP Module - Autoconfigure ............ SUCCESS [  8.646 s]
[INFO] Spring Cloud GCP Starters .......................... SUCCESS [  0.338 s]
[INFO] Spring Cloud GCP Starter - Support ................. SUCCESS [  0.130 s]
[INFO] Spring Cloud GCP Starter - Pub/Sub ................. SUCCESS [  0.285 s]
[INFO] Spring Cloud GCP Module - Stream ................... SUCCESS [  7.750 s]
[INFO] Spring Cloud GCP Starter - Pub/Sub Bus ............. SUCCESS [  0.255 s]
[INFO] Spring Cloud GCP Module - Cloud Foundry ............ SUCCESS [  5.344 s]
[INFO] Spring Cloud GCP Starter - Cloud Foundry ........... SUCCESS [  0.246 s]
[INFO] Spring Cloud GCP Starter - Config .................. SUCCESS [  0.296 s]
[INFO] Spring Cloud GCP Starter - Storage ................. SUCCESS [  0.267 s]
[INFO] Spring Cloud GCP Starter - Spanner ................. SUCCESS [  0.271 s]
[INFO] Spring Cloud GCP Starter - Datastore ............... SUCCESS [  0.271 s]
[INFO] Spring Cloud GCP Starter - Firestore ............... SUCCESS [  0.247 s]
[INFO] Spring Cloud GCP Starter - Cloud Trace ............. SUCCESS [  0.337 s]
[INFO] Spring Cloud GCP Starter - Stackdriver Logging ..... SUCCESS [  0.275 s]
[INFO] Spring Cloud GCP Starter - Stackdriver Metrics ..... SUCCESS [  0.280 s]
[INFO] Spring Cloud GCP Starter - MySQL ................... SUCCESS [  0.262 s]
[INFO] Spring Cloud GCP Starter - PostgreSQL .............. SUCCESS [  0.239 s]
[INFO] Spring Cloud GCP Starter - IAP ..................... SUCCESS [  0.250 s]
[INFO] Spring Cloud GCP Starter - Cloud Vision ............ SUCCESS [  0.227 s]
[INFO] Spring Cloud GCP Starter - Firestore ............... SUCCESS [  0.260 s]
[INFO] Spring Cloud GCP Starter - BigQuery ................ SUCCESS [  0.298 s]
[INFO] Spring Cloud GCP Starter - Firebase ................ SUCCESS [  0.271 s]
[INFO] Spring Cloud GCP Starter - Secret Manager .......... SUCCESS [  0.291 s]
[INFO] Spring Cloud GCP Starter - KMS ..................... SUCCESS [  0.283 s]
[INFO] Spring Cloud GCP Dependencies ...................... SUCCESS [04:44 min]
[INFO] Spring Cloud GCP Documentation ..................... SUCCESS [  3.212 s]
[INFO] Spring Cloud GCP Code Samples ...................... SUCCESS [  4.743 s]
[INFO] Spring Cloud GCP Code Sample - Runtime Configuration SUCCESS [  0.664 s]
[INFO] Spring Cloud GCP Code Sample - Trace ............... SUCCESS [  0.758 s]
[INFO] Spring Cloud GCP Code Sample - Logging ............. SUCCESS [  2.649 s]
[INFO] Spring Cloud GCP Code Sample - MySQL ............... SUCCESS [  0.537 s]
[INFO] Spring Cloud GCP Code Sample - Spring Integration Pub/Sub Channel Adapters SUCCESS [  0.541 s]
[INFO] Spring Cloud GCP Code Sample - Spring Integration Pub/Sub Sender SUCCESS [  0.408 s]
[INFO] Spring Cloud GCP Code Sample - Spring Integration Pub/Sub Receiver SUCCESS [  0.448 s]
[INFO] Spring Cloud GCP Code Sample - Spring Integration Pub/Sub Polling Receiver SUCCESS [  0.522 s]
[INFO] Spring Cloud GCP Code Sample - Spring Integration Pub/Sub Integration Test SUCCESS [  0.485 s]
[INFO] Spring Cloud GCP Code Sample - Storage ............. SUCCESS [  0.543 s]
[INFO] Spring Cloud GCP Code Sample - Spanner ............. SUCCESS [  0.488 s]
[INFO] Spring Cloud GCP Code Sample - Datastore ........... SUCCESS [  0.493 s]
[INFO] Spring Cloud GCP Code Sample - Datastore Bookshelf . SUCCESS [  0.704 s]
[INFO] Spring Cloud GCP Code Sample - Pub/Sub ............. SUCCESS [  0.457 s]
[INFO] Spring Cloud GCP Code Sample - Spring Data JPA ..... SUCCESS [  0.660 s]
[INFO] Spring Cloud GCP Code Sample - Vision API .......... SUCCESS [  0.546 s]
[INFO] Spring Cloud GCP Code Sample - Spring Integration Storage SUCCESS [  0.607 s]
[INFO] Spring Cloud GCP Code Sample - Pub/Sub Bus Configuration Management SUCCESS [  0.595 s]
[INFO] Spring Cloud GCP Code Sample - Pub/Sub Bus (Client)  SUCCESS [  0.432 s]
[INFO] Spring Cloud GCP Code Sample - Spring Cloud Config with Pub/Sub Bus (Local Configuration) SUCCESS [  0.492 s]
[INFO] Spring Cloud GCP Code Sample - Spring Cloud Config with Pub/Sub Bus (GitHub Configuration) SUCCESS [  0.360 s]
[INFO] Spring Cloud GCP Code Sample - Spring Cloud Config with Pub/Sub Bus Integration Test SUCCESS [  1.539 s]
[INFO] Spring Cloud GCP Code Sample - Pub/Sub Binder for Spring Cloud Stream with Dead Letter Topic SUCCESS [  0.399 s]
[INFO] Spring Cloud GCP Code Sample - Pub/Sub Binder for Spring Cloud Stream Functional SUCCESS [  0.482 s]
[INFO] Spring Cloud GCP Code Sample - Pub/Sub Binder for Spring Cloud Stream Functional Source SUCCESS [  0.354 s]
[INFO] Spring Cloud GCP Code Sample - Pub/Sub Binder for Spring Cloud Stream Functional Sink SUCCESS [  0.334 s]
[INFO] Spring Cloud GCP Code Sample - Pub/Sub Binder for Spring Cloud Stream Functional Integration Test SUCCESS [  0.289 s]
[INFO] Spring Cloud GCP Code Sample - Pub/Sub Binder for Spring Cloud Stream Polling SUCCESS [  0.409 s]
[INFO] Spring Cloud GCP Code Sample - Pub/Sub Binder for Spring Cloud Stream SUCCESS [  0.366 s]
[INFO] Spring Cloud GCP Code Sample - Pub/Sub Reactive .... SUCCESS [  0.505 s]
[INFO] Spring Cloud GCP Code Sample - Spring Integration Pub/Sub JSON Payloads SUCCESS [  0.523 s]
[INFO] Spring Cloud GCP Code Sample - IAP ................. SUCCESS [  0.462 s]
[INFO] Spring Cloud GCP Code Sample - Postgres ............ SUCCESS [  0.515 s]
[INFO] Spring Cloud GCP Code Sample - Vision OCR .......... SUCCESS [  0.547 s]
[INFO] Spring Cloud GCP Code Sample - Firestore ........... SUCCESS [  0.482 s]
[INFO] Spring Cloud GCP Code Sample - Multi-Spring-Data-Module SUCCESS [  0.559 s]
[INFO] Spring Cloud GCP Code Sample - Spring Data Firestore SUCCESS [  0.480 s]
[INFO] Spring Cloud GCP Code Sample - BigQuery ............ SUCCESS [  0.647 s]
[INFO] Spring Cloud GCP Code Sample - Firebase Security ... SUCCESS [  0.407 s]
[INFO] Spring Cloud GCP Code Sample - Secret Manager ...... SUCCESS [  0.693 s]
[INFO] Spring Cloud GCP Code Samples - Kotlin ............. SUCCESS [  0.745 s]
[INFO] Spring Cloud GCP Code Sample - Kotlin App Sample ... SUCCESS [ 10.543 s]
[INFO] Spring Cloud GCP Code Sample - Metrics ............. SUCCESS [  0.516 s]
[INFO] Spring Cloud GCP Code Sample - KMS ................. SUCCESS [  1.666 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  04:45 min (Wall Clock)
[INFO] Finished at: 2021-04-01T15:58:53-04:00
[INFO] ------------------------------------------------------------------------

plugin configuration:

					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-enforcer-plugin</artifactId>
						<version>3.0.0-M3</version>
						<dependencies>
							<dependency>
								<groupId>com.google.cloud.tools</groupId>
								<artifactId>linkage-checker-enforcer-rules</artifactId>
								<version>1.5.7</version>
							</dependency>
						</dependencies>
						<executions>
							<execution>
								<id>enforce-linkage-checker</id>
								<phase>verify</phase>
								<goals>
									<goal>enforce</goal>
								</goals>
								<configuration>
									<fail>true</fail>
									<rules>
										<LinkageCheckerRule
											implementation="com.google.cloud.tools.dependencies.enforcer.LinkageCheckerRule">
											<dependencySection>DEPENDENCY_MANAGEMENT</dependencySection>
											<reportOnlyReachable>true</reportOnlyReachable>
											<exclusionFile>spring-cloud-gcp-dependencies/linkage-checker-exclusion-rules.xml</exclusionFile>
										</LinkageCheckerRule>
									</rules>
								</configuration>
							</execution>
						</executions>
					</plugin>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions