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

Unable to run javadoc:aggregate on multi-module projects with one or more pom modules when using Java modules (jigsaw).

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.1
    • javadoc
    • None

    Description

      The following error is displayed and build fail when runnin mvn javadoc:aggregate on a multi-module project where one or more child modules are of pom type (<packaging>pom</packaging>) when using maven modules (jigsaw)
       

      [ERROR] Creating an aggregated report for both named and unnamed modules is not possible.
       [ERROR] Ensure that every module has a module descriptor or is a jar with a MANIFEST.MF containing an Automatic-Module-Name.
      

      I've attached a minimal project showing the problem. Run either mvn javadoc:aggregate or mvn site:site

      maven  module with packaging pom should be excluded from the unnames module lest, they are not java modules and will not produce any jar files, named or not. 

      This is with maven 3.6.0 and jdk 11.0.3 (latest AdoptJDK) 

      Attachments

        1. module-test.zip
          4 kB
          Anders Hanson

        Activity

          People

            rfscholte Robert Scholte
            hanson Anders Hanson
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: