maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Costigliola (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MJAVADOC-509) additionalParam are overridden when used in maven release plugin ?
Date Tue, 02 Jan 2018 07:35:02 GMT

    [ https://issues.apache.org/jira/browse/MJAVADOC-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16307746#comment-16307746
] 

Joel Costigliola commented on MJAVADOC-509:
-------------------------------------------

I reverted back to the 2.10.4 version but the release also failed, so this issue might not
be relevant as I was able to release (yay!) by using an older version of the jdk (Java version:
1.8.0_112, vendor: Oracle Corporation).
Anyway, the fact that I can run {{mvn javadoc:javadoc }} successfully on my project (with
any jdk version) but the release plugin does not is scary to me.

Feel free to close this issue if you think it is not relevant (or should it be moved to the
release plugin ?).

> additionalParam are overridden when used in maven release plugin ?
> ------------------------------------------------------------------
>
>                 Key: MJAVADOC-509
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-509
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>          Components: javadoc
>    Affects Versions: 3.0.0-M1
>         Environment: Linux ubuntu 16.04
> Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T20:58:13+13:00)
> Maven home: /home/joel/prog/apache-maven-3.5.2
> Java version: 1.8.0_144, vendor: Oracle Corporation
> Java home: /home/joel/prog/java/jdk1.8.0_144/jre
> Default locale: en_NZ, platform encoding: UTF-8
> OS name: "linux", version: "4.4.0-104-generic", arch: "amd64", family: "unix"
>            Reporter: Joel Costigliola
>
> 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|http://joel-costigliola.github.io/assertj/index.html])
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:
> {noformat}
> [INFO] Exit code: 1 - javadoc: error - Argument for -footer contains JavaScript.
> [INFO] Use --allow-script-in-comments to allow use of JavaScript.
> {noformat}
> the debug log shows that the {{--allow-script-in-comments}} parameter I set was not honored:
> {noformat}
> [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
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message