Closed ge0ffrey closed 1 year ago
Downstream issue in JReleaser: https://github.com/jreleaser/jreleaser/issues/1397
Pomchecker offers 2 flags --fail-on-error
and --fail-on-warning
that can also be invoked in negated form https://kordamp.org/pomchecker/pomchecker-cli/index.html
The default setting is to fail on error and warning https://github.com/kordamp/pomchecker/blob/2577609ef49adb0873932393a50e80f6afe0d5b1/pomchecker-cli/src/main/java/org/kordamp/maven/checker/cli/CheckMavenCentral.java#L45
Closing as complete.
When validating an artifact with a pom that lacks an
<url>
or<description>
element, but inherits it from its parent pom, the maven central rules should not fail.Currently, even though it says "Will use computed value from parent:", it fails the build in pomchecker in JReleaser:
Proposal A): report these as warnings, not errors.
Proposal B): do not report these at all, it's fine. For example, repeating the
<url>
in every child pom of a maven multiproject would violate DRY.