Hello there,
nice meeting all of you. I have a question regarding MENFORCER-398 "show
rules processed". This is an up-for-grabs issue, so I figured I give it
a try. I am still unsure where to ask questions. Lets try the mailing
list :-)
From the issue description:
"Would be nice to have the option of showing what rules are processed,
rather than relying on each rule to output its own success/failure
message."
Excuse my ignorance, but isn't a change in the log level enough?
With Maven Enforcer Plugin 3.0.0 and setting the Maven Log Level to
debug I get:
[DEBUG] Executing rule: org.apache.maven.plugins.enforcer.AlwaysPass
[INFO] Always pass!
[DEBUG] Executing rule: org.apache.maven.plugins.enforcer.AlwaysPass
[INFO] Always pass!
[DEBUG] Executing rule:
org.apache.maven.plugins.enforcer.BannedDependencies
The information what rules are processed is already there. Without a
code change. I assume most people run Maven with the default log level
info, so the information gets lost. The log level is too low.
https://github.com/apache/maven-enforcer/blob/7e6f0261ee948ca33504558e4df63621a9bbdecc/maven-enforcer-plugin/src/main/java/org/apache/maven/plugins/enforcer/EnforceMojo.java#L190
Instead of this:
log.debug( "Executing rule: " + currentRule );
use this
log.info( "Executing rule: " + currentRule );
kind regards
Bjoern
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]