[MNG-8177] Add contextual info for model warnings by cstamas · Pull Request #1633 · apache/maven (original) (raw)
@WolfgangHG I think always printing out path would be "too much", Maven is already way way too chatty... but here are few facts to tinker about:
- when descriptor reader reports this error all Maven "knows" that some POM somewhere has some issue (in this case: uses system scoped dependency pointing at file that does not exists)
- later on, when collection happened (built the "dirty graph" -> conflicts resolved -> dep tree), just as in this example, the reported POM may not even be present...
- still, IMO developer should be aware of issues like these, as any dependency change/reshuffle may make the offending POM end up in the build (in reproducer is "just lurking somewhere" but is not entering -- is eliminated)
So IMO one liner is fine, and will add "use -X for full details"