elharo opened a new issue, #251:
URL: https://github.com/apache/maven-artifact-plugin/issues/251
User-supplied glob patterns are compiled at runtime without validation and
can abort the whole build with a confusing exception:
- `BuildInfoWriter.setIgnore(List<String>)` (line 350):
`fs.getPathMatcher("glob:" + i)`
- `AbstractBuildinfoMojo.isSkipModule()` (line 436):
`fs.getPathMatcher("glob:" + i)`
For example `buildinfo.ignore` set to an invalid glob (unbalanced `[` or
trailing `\`) throws `PatternSyntaxException` (an `IllegalArgumentException`)
mid-build, instead of producing a clean error explaining the bad pattern.
Suggested fix: validate all globs during mojo initialization and report a
precise error naming the offending pattern.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]