kordamp / pomchecker

🦉 Maven POM syntax checker
Apache License 2.0
65 stars 11 forks source link

Do not fail on missing javadocs jar if there is no src/main/java directory (= no *.class files in jar) #11

Closed ge0ffrey closed 1 year ago

ge0ffrey commented 1 year ago

I am trying to release with JReleaser to Maven Central and getting these kinds of errors from pomchecker:

[ERROR]    [nexus2] optaplanner-spring-boot-starter-8.36.0.Alpha1-javadoc.jar is missing
[ERROR]    [nexus2] optaplanner-ide-config-8.36.0.Alpha1-javadoc.jar is missing

The javadoc plugins are active and Maven Central has accepted these artifacts for years.

However these modules are special:

See also https://github.com/jreleaser/jreleaser/discussions/1287

aalmiray commented 1 year ago

PomChecker does not validate if -javadoc.jar is missing. It only checks pom files.