-
Notifications
You must be signed in to change notification settings - Fork 19
There is now multiple build WARNING output on every use of exportAntProperties as of 3.2.0 #348
Description
Affected version
3.2.0
Bug description
There is now WARNING output on every use of exportAntProperties
Because all maven properties are imported to ant tasks, all properties will get a WARNING output in the build that uses the AntRun plugin and exports properties from the Ant task.
The cause of this is a change to the logging level from the original, expected DEBUG level to its current WARNING level.
maven-antrun-plugin/src/main/java/org/apache/maven/plugins/antrun/AntRunMojo.java
Line 465 in 629e579
| getLog().warn("Ant property '" + key + "=" + mavenProperties.getProperty(key) |
Expected: Using the exportAntProperties with value of true should not generate WARNING output in a Maven build.
Actual: The build outputs a warning for every existing Maven property that is set.
It may be acceptable and useful to output a warning if the value of the Ant property and the value of an existing Maven property do not match as that would indicate something odd.