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

aggregate-jar doesn't create any artifact on the top jar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.1.0
    • None
    • None
    • None
    • debian 9.8 "stretch", amd64, openjdk 8u212-b01-1~deb9u1, maven 3.6.0

    Description

      Starting with version 3.1.0 it is no longer possible to use the aggregate-jar goal to create a javadoc jar for the entire project and attach it to the top pom.

      Instead the following error is logged:

      [INFO] <<< maven-javadoc-plugin:3.1.0:aggregate-jar (aggregate-javadocs) < compile @ authservice <<<
      [INFO] 
      [INFO] 
      [INFO] --- maven-javadoc-plugin:3.1.0:aggregate-jar (aggregate-javadocs) @ authservice ---
      [INFO] Not executing Javadoc as the project is not a Java classpath-capable package
      

      The configuration for javadoc in the top POM, is:

                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-javadoc-plugin</artifactId>
                      <configuration>
                          <show>private</show>
                      </configuration>
                      <executions>
                          <execution>
                              <id>attach-javadocs</id>
                              <goals>
                                  <goal>jar</goal>
                              </goals>
                          </execution>
                          <execution>
                              <id>aggregate-javadocs</id>
                              <goals>
                                  <goal>aggregate-jar</goal>
                              </goals>
                              <phase>prepare-package</phase>
                              <configuration>
                              </configuration>
                          </execution>
                      </executions>
                  </plugin>
      

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              sb@dod.no Steinar Bang
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: