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

Version tag comes and goes on several javadoc:fix goal runs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.1.0
    • Component/s: fix, javadoc
    • Labels:
      None
    • Environment:
      Windows 7 x64
      Apache Maven 3.5.4

      Description

      Running the command  

      mvn org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:fix -DdefaultAuthor="Firstname Lastname" -DdefaultVersion="1.0.0, 2018-12-19" -DefaultSince=1.0.0 -Dforce
      

      for the first time, on the given example, generates the @author and @version tags.

      Running it the second time (every even time) the @version tag is removed. Every odd time the @version tag is added again.

      The @since tag is never added.

      If there is already a javadoc comment for the MyApplication class, like e.g.:

      /**
       * <p>MyApplication class.</p>
       *
       * @author Asdf Asdf
       * @version 0.0.1-SNAPSHOT
       */
      

      , both the @author and @version tags do not get updated.

      I understand the @author tag does not get updated, but I would like to be able to update the @version tag everytime before I release my software.

        Attachments

          Activity

            People

            • Assignee:
              rfscholte Robert Scholte
              Reporter:
              jejo86 Je Jo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: