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

additionalParam are overridden when used in maven release plugin ?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 3.0.0-M1
    • None
    • javadoc
    • None

    Description

      I believe https://issues.apache.org/jira/browse/MJAVADOC-387 introduced a regression as it overrides any value set in additionalparam which only manifests when using the maven release plugin

      My open source project (AssertJ) adds javascript to the javadoc footer I thus need to add this parameter to be able to generate the javadoc:
      <additionalparam>--allow-script-in-comments</additionalparam>

      The mvn release:perform command failed with this error:

      [INFO] Exit code: 1 - javadoc: error - Argument for -footer contains JavaScript.
      [INFO] Use --allow-script-in-comments to allow use of JavaScript.
      

      the debug log shows that the --allow-script-in-comments parameter I set was not honored:

      [INFO] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-javadoc-plugin:3.0.0-M1:jar' with basic configurator -->
      [INFO] [DEBUG]   (f) additionalparam = -Xdoclint:none
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jocosti Joel Costigliola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: