Skip to content

Latest commit

 

History

History

enforcer-rules

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Linkage Checker Enforcer Rule

Linkage Checker Enforcer Rule verifies that the transitive dependency tree of pom.xml does not have any linkage errors.

User documentation: Linkage Checker Enforcer Rule

Debug

For developers to debug the enforcer rule implementation, set the MAVEN_OPTS environment variable to wait for debuggers (suspend=y) before running mvn command.

$ export MAVEN_OPTS='-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005'
$ mvn verify
Listening for transport dt_socket at address: 5005

When you debug one of the integration tests in the "src/it" directory, use the following command to specify the test case and to provide the debug parameter to Maven invoker plugin.

mvn install -Dmaven.test.skip -Dinvoker.test=bom-project-using-spring-repository \
    -Dinvoker.mavenOpts='-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005'

Then run remote debug to the port (5005) via your IDE.