Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-753

javadoc plugin does not find sources in auto-module when creating docs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.5.0
    • None
    • javadoc
    • None

    Description

      clone this repo: https://github.com/hgschmie/javadoc-bug

      run "mvn clean install"

      expected outcome: builds a project, generates a javadoc jar

      observed outcome:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.5.0:jar (basepom.default) on project javadoc-bug: MavenReportException: Error while generating Javadoc:
      [ERROR] Exit code: 1
      [ERROR] /Users/henning/oss/bugs/javadoc/src/main/java/maven/bugs/internal/InternalImportBindingBuilder.java:7: error: cannot access Provider
      [ERROR]     static final class InternalBindingProvider<T> implements Provider<T> {
      [ERROR]                  ^
      [ERROR]   class file for javax.inject.Provider not found
      [ERROR] 1 error
      [ERROR] Command line was: /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/javadoc -J-Xmx1024m @options @packages

       Setting the release to "8" works (but loses the module information)

      Attachments

        Issue Links

          Activity

            People

              henning Henning Schmiedehausen
              henning Henning Schmiedehausen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: