apache / apache/maven-antrun-plugin

There is now multiple build WARNING output on every use of `exportAntProperties` as of 3.2.0

Open
#348 8 comments 8 reactions 0 assignees View on GitHub
help wanted priority:major security
Dominant language
Java
Stars
36
Forks
20
Avg merge
1h 48m
Merged PRs (30d)
1

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.

https://github.com/apache/maven-antrun-plugin/blob/629e579f40077c9e57a5af88f05f0c5b7a25600f/src/main/java/org/apache/maven/plugins/antrun/AntRunMojo.java#L465

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.