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

[REGRESSION] maven-javadoc-plugin 3.10.0 creates empty JARs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.10.0
    • 3.10.1
    • None
    • None

    Description

      After updating to maven-javadoc-plugin 3.10.0, I am getting empty javadoc jars created.

      [INFO] --- jar:3.4.2:jar (default-jar) @ configuration ---
      [INFO] Building jar: C:\path\to\configuration\target\configuration-10.1.0-SNAPSHOT-2409192051.4892c3d.jar
      [INFO]
      [INFO] --- javadoc:3.10.0:jar (attach-javadocs) @ configuration ---
      [WARNING] JAR will be empty - no content was marked for inclusion!
      [INFO] Building jar: C:\path\to\configuration\target\configuration-10.1.0-SNAPSHOT-2409192051.4892c3d-javadoc.jar
      [INFO]
      [INFO] --- source:3.3.1:jar-no-fork (attach-sources) @ configuration ---
      [INFO] No sources in project. Archive not created.

       

      Prior version, 3.8.0, had no such problem

      [INFO] --- jar:3.4.2:jar (default-jar) @ configuration ---
      [INFO] Building jar:  C:\path\to\configuration\target\configuration-10.1.0-SNAPSHOT-2409192102.595f143.jar
      [INFO]
      [INFO] --- javadoc:3.8.0:jar (attach-javadocs) @ configuration ---
      [INFO]
      [INFO] >>> source:3.3.1:jar (attach-sources) > generate-sources @ configuration >>>

       

      Plugin configuration

      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-javadoc-plugin</artifactId>                    
          <version>3.10.0</version>
          <configuration>
             <doclint>all,-missing</doclint>
          </configuration>
          <executions>
             <execution>
                <id>attach-javadocs</id>
                <goals>
                   <goal>jar</goal>
                </goals>
             </execution>
          </executions>
      </plugin> 

      Attachments

        1. maven-javadoc-invocation.log
          5 kB
          Armin Krezovic

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              zirakrezovic Armin Krezovic
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: