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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.1
    • 3.1.0
    • fix, javadoc
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: