Maven Javadoc Plugin
  1. Maven Javadoc Plugin
  2. MJAVADOC-275

Creation of Javadoc attachments fails in multi-module project where modules have never been installed/deployed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.8
    • Labels:
      None

      Description

      Running the commands

      mvn clean
      mvn verify
      

      will fail on the attached demo project with

      [INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.6.1:javadoc'
        has not be previously called for the project: 'org.apache.maven.its.javadoc:mod-b:jar:0.1'.
        Trying to invoke it...
      [ERROR] MavenInvocationException: Error when invoking Maven, consult the invoker log file:
        M:\MJAVADOC\mod-a\target\invoker\maven-javadoc-plugin625147587.txt
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] MavenReportException: Error while creating archive:
        Error when invoking Maven, consult the invoker log file: 
        M:\MJAVADOC\mod-a\target\invoker\maven-javadoc-plugin625147587.txt
      

      The command mvn clean verify as usually used during releases will also fail, but starts working after repeated invocations.

      1. MJAVADOC-275.zip
        4 kB
        Benjamin Bentmann

        Issue Links

          Activity

            People

            • Assignee:
              John Casey
              Reporter:
              Benjamin Bentmann
            • Votes:
              12 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development