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

javadoc:aggregate fails with "No source files for package" for packages that are not exported

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • javadoc
    • Maven 3.6.0
      maven-javadoc-plugin 3.0.2-SNAPSHOT (for Java 11 support)

    Description

      1. Unpack testcase (contains module1, module2 but only module 1 is exported)
      2. Run clean install javadoc:aggregate
      3. Build fails with: javadoc: error - No source files for package module2
      4. Modify module-info.java so it also exports module2
      5. RunĀ clean install javadoc:aggregate
      6. Notice that no error occurs

      Expected behavior: maven-javadoc-module should omit non-exported packages fromĀ target/site/apidocs/packages.

      Attachments

        1. testcase.zip
          3 kB
          Gili

        Activity

          People

            rfscholte Robert Scholte
            cowwoc Gili
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: