Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problem with maven-javadoc-plugin #220

Closed
keilw opened this issue Dec 3, 2020 · 0 comments
Closed

Fix problem with maven-javadoc-plugin #220

keilw opened this issue Dec 3, 2020 · 0 comments

Comments

@keilw
Copy link
Member

keilw commented Dec 3, 2020

Since around July 2020, the maven-javadoc-plugin does not work properly both in a local environment and on the CI server.
That results in an empty unit-api-X.Y.Z-SNAPSHOT-javadoc.jar being generated.

[ERROR] MavenReportException: Error while generating Javadoc:
Exit code: 2 - javadoc: error - No source files for package javax.measure

Command line was: cmd.exe /X /C ""C:\Program Files\AdoptOpenJDK\jdk-14.0.2.12-hotspot\bin\javadoc.exe" @options @packages"

Refer to the generated Javadoc files in 'C:\Users\Werner\git\unit-api\target\apidocs' dir.

org.apache.maven.reporting.MavenReportException:
Exit code: 2 - javadoc: error - No source files for package javax.measure

Command line was: cmd.exe /X /C ""C:\Program Files\AdoptOpenJDK\jdk-14.0.2.12-hotspot\bin\javadoc.exe" @options @packages"

Refer to the generated Javadoc files in 'C:\Users\Werner\git\unit-api\target\apidocs' dir.

At the moment the only workaround is to define source prior to Java 9 in the maven-javadoc-plugin, see
assertj/assertj#1403 (comment)
Indriya does not seem affected, so another possible approach could be to also switch the API to the maven-toolchain-plugin, but that would add further complexity.
If there is a new version of the Maven JavaDoc Plugin soon, that addresses these problems, it might be the easier way, otherwise we might have to apply the toolchain plugin here as well.

@keilw keilw added this to the 2.1.2 milestone Dec 3, 2020
@keilw keilw changed the title Make better use of maven-javadoc-plugin Fix problem with maven-javadoc-plugin Feb 12, 2021
keilw added a commit that referenced this issue Feb 12, 2021
keilw added a commit that referenced this issue Feb 12, 2021
keilw added a commit to unitsofmeasurement/unitsofmeasurement.github.io that referenced this issue Feb 12, 2021
keilw added a commit to unitsofmeasurement/unitsofmeasurement-jbake that referenced this issue Feb 12, 2021
@keilw keilw closed this as completed Feb 12, 2021
keilw added a commit that referenced this issue Feb 12, 2021
keilw added a commit to unitsofmeasurement/unitsofmeasurement.github.io that referenced this issue Feb 12, 2021
keilw added a commit to unitsofmeasurement/unitsofmeasurement-jbake that referenced this issue Feb 12, 2021
keilw added a commit to unitsofmeasurement/unitsofmeasurement.github.io that referenced this issue Feb 12, 2021
keilw added a commit to unitsofmeasurement/unitsofmeasurement-jbake that referenced this issue Feb 12, 2021
keilw added a commit to unitsofmeasurement/unitsofmeasurement-jbake that referenced this issue Feb 12, 2021
keilw added a commit to unitsofmeasurement/unitsofmeasurement.github.io that referenced this issue Feb 12, 2021
keilw added a commit that referenced this issue Feb 13, 2021
keilw added a commit to unitsofmeasurement/unitsofmeasurement.github.io that referenced this issue Feb 21, 2021
keilw added a commit to unitsofmeasurement/unitsofmeasurement-jbake that referenced this issue Feb 21, 2021
keilw added a commit that referenced this issue May 1, 2021
220: Fix problem with maven-javadoc-plugin

Task-Url: #220
@keilw keilw modified the milestones: 2.1.2, 2.1.3 Jul 15, 2022
@keilw keilw added this to JSR 385 MR2 Dec 7, 2022
@keilw keilw moved this to ✅ Done in JSR 385 MR2 Dec 7, 2022
@keilw keilw self-assigned this Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant