[jira] [Commented] (MJAVADOC-562) Ability to pass --release to Javadoc tool
[ https://issues.apache.org/jira/browse/MJAVADOC-562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16833142#comment-16833142 ] Kevin Risden commented on MJAVADOC-562: --- You can see the diff on github if that helps. - [https://github.com/apache/maven-javadoc-plugin/commit/fc6fdcdfb53ff18821d37f45fe4de0564a0fffd0] > Ability to pass --release to Javadoc tool > - > > Key: MJAVADOC-562 > URL: https://issues.apache.org/jira/browse/MJAVADOC-562 > Project: Maven Javadoc Plugin > Issue Type: Improvement > Components: jar, javadoc >Affects Versions: 3.0.1 >Reporter: Gili >Assignee: Robert Scholte >Priority: Major > Fix For: 3.1.0 > > > Users of the {{maven-compiler-plugin}} are able to build in one compiler > version while targeting an older version. We need the same ability for this > plugin. > Justification: https://bugs.openjdk.java.net/browse/JDK-8212233 > Workaround: Build the project using the same JDK version as the project is > targetting. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (MJAVADOC-538) JVM "JAVA_TOOL_OPTIONS" or "_JAVA_OPTIONS" message detected as javadoc warning, triggers failure
[ https://issues.apache.org/jira/browse/MJAVADOC-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16690791#comment-16690791 ] Kevin Risden commented on MJAVADOC-538: --- Yup I can take a look at adding a test for this. > JVM "JAVA_TOOL_OPTIONS" or "_JAVA_OPTIONS" message detected as javadoc > warning, triggers failure > - > > Key: MJAVADOC-538 > URL: https://issues.apache.org/jira/browse/MJAVADOC-538 > Project: Maven Javadoc Plugin > Issue Type: Bug >Affects Versions: 3.0.1 > Environment: Maven 3.5.4 > Java 1.8.0_181 >Reporter: Yoann Rodière >Priority: Major > > When an environment variable {{_JAVA_OPTIONS}} or {{JAVA_TOOL_OPTIONS}} is > defined, every JVM that starts will output a message to inform users of these > options being picked up: > {noformat} > $ export JAVA_TOOL_OPTIONS=-Dfoo > $ java -version > Picked up JAVA_TOOL_OPTIONS: -Dfoo > java version "1.8.0_181" > Java(TM) SE Runtime Environment (build 1.8.0_181-b13) > Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode){noformat} > Apparently this message cannot be suppressed, that's on purpose an won't > change: [https://bugs.openjdk.java.net/browse/JDK-8039152] > > Unfortunately, this message seems to be interpreted by the > maven-javadoc-plugin as a warning: > {noformat} > [INFO] --- maven-javadoc-plugin:3.0.1:javadoc-no-fork (generate-javadoc) @ > hibernate-search-util-internal-common --- > [INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:javadoc' > has not been previously called for the module: > 'org.hibernate.search:hibernate-search-util-internal-test:jar:6.0.0-SNAPSHOT'. > Trying to invoke it... > [WARN] Maven will be executed in interactive mode, but no input stream has > been configured for this MavenInvoker instance. > Picked up JAVA_TOOL_OPTIONS: -Dfoo > [WARNING] Creating fake javadoc directory to prevent repeated invocations: > /home/yrodiere/workspaces/main/hibernate-search-parent/util/internal/test/target/site/apidocs > [ERROR] Error fetching link: > /home/yrodiere/workspaces/main/hibernate-search-parent/util/internal/test/target/site/apidocs/package-list. > Ignored it. > [WARNING] Javadoc Warnings > [WARNING] Picked up JAVA_TOOL_OPTIONS: -Dfoo > {noformat} > (see the last line, the message appears in the list of warnings) > No big deal... until you enable the > [failOnWarnings|https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-no-fork-mojo.html#failOnWarnings] > option. Then the whole build will fail just because some JVM detected an > environment variable... > I couldn't find any workaround, except disabling the {{failOnWarnings}} > options, but that's more a surrender than a workaround. > Note that the definition of {{_JAVA_OPTIONS}} or {{JAVA_TOOL_OPTIONS}} is not > exactly an exotic use case, especially on Continuous Integration platforms. > [Travis CI uses {{_JAVA_OPTIONS}} > |https://docs.travis-ci.com/user/build-environment-updates/2017-09-06/#added] > to set JVM memory limits in its containerized environments, and [the Jenkins > CI Pipeline Maven plugin uses > {{JAVA_TOOL_OPTIONS}}|https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-WhydoIseemessages%22[WARNING]PickedupJAVA_TOOL_OPTIONS...%22inthebuildlogs?] > to pass options to Maven processes transparently. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (MJAVADOC-538) JVM "JAVA_TOOL_OPTIONS" or "_JAVA_OPTIONS" message detected as javadoc warning, triggers failure
[ https://issues.apache.org/jira/browse/MJAVADOC-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16685880#comment-16685880 ] Kevin Risden commented on MJAVADOC-538: --- Created a pull request: https://github.com/apache/maven-javadoc-plugin/pull/11 > JVM "JAVA_TOOL_OPTIONS" or "_JAVA_OPTIONS" message detected as javadoc > warning, triggers failure > - > > Key: MJAVADOC-538 > URL: https://issues.apache.org/jira/browse/MJAVADOC-538 > Project: Maven Javadoc Plugin > Issue Type: Bug >Affects Versions: 3.0.1 > Environment: Maven 3.5.4 > Java 1.8.0_181 >Reporter: Yoann Rodière >Priority: Major > > When an environment variable {{_JAVA_OPTIONS}} or {{JAVA_TOOL_OPTIONS}} is > defined, every JVM that starts will output a message to inform users of these > options being picked up: > {noformat} > $ export JAVA_TOOL_OPTIONS=-Dfoo > $ java -version > Picked up JAVA_TOOL_OPTIONS: -Dfoo > java version "1.8.0_181" > Java(TM) SE Runtime Environment (build 1.8.0_181-b13) > Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode){noformat} > Apparently this message cannot be suppressed, that's on purpose an won't > change: [https://bugs.openjdk.java.net/browse/JDK-8039152] > > Unfortunately, this message seems to be interpreted by the > maven-javadoc-plugin as a warning: > {noformat} > [INFO] --- maven-javadoc-plugin:3.0.1:javadoc-no-fork (generate-javadoc) @ > hibernate-search-util-internal-common --- > [INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:javadoc' > has not been previously called for the module: > 'org.hibernate.search:hibernate-search-util-internal-test:jar:6.0.0-SNAPSHOT'. > Trying to invoke it... > [WARN] Maven will be executed in interactive mode, but no input stream has > been configured for this MavenInvoker instance. > Picked up JAVA_TOOL_OPTIONS: -Dfoo > [WARNING] Creating fake javadoc directory to prevent repeated invocations: > /home/yrodiere/workspaces/main/hibernate-search-parent/util/internal/test/target/site/apidocs > [ERROR] Error fetching link: > /home/yrodiere/workspaces/main/hibernate-search-parent/util/internal/test/target/site/apidocs/package-list. > Ignored it. > [WARNING] Javadoc Warnings > [WARNING] Picked up JAVA_TOOL_OPTIONS: -Dfoo > {noformat} > (see the last line, the message appears in the list of warnings) > No big deal... until you enable the > [failOnWarnings|https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-no-fork-mojo.html#failOnWarnings] > option. Then the whole build will fail just because some JVM detected an > environment variable... > I couldn't find any workaround, except disabling the {{failOnWarnings}} > options, but that's more a surrender than a workaround. > Note that the definition of {{_JAVA_OPTIONS}} or {{JAVA_TOOL_OPTIONS}} is not > exactly an exotic use case, especially on Continuous Integration platforms. > [Travis CI uses {{_JAVA_OPTIONS}} > |https://docs.travis-ci.com/user/build-environment-updates/2017-09-06/#added] > to set JVM memory limits in its containerized environments, and [the Jenkins > CI Pipeline Maven plugin uses > {{JAVA_TOOL_OPTIONS}}|https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-WhydoIseemessages%22[WARNING]PickedupJAVA_TOOL_OPTIONS...%22inthebuildlogs?] > to pass options to Maven processes transparently. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Comment Edited] (MJAVADOC-538) JVM "JAVA_TOOL_OPTIONS" or "_JAVA_OPTIONS" message detected as javadoc warning, triggers failure
[ https://issues.apache.org/jira/browse/MJAVADOC-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16685871#comment-16685871 ] Kevin Risden edited comment on MJAVADOC-538 at 11/13/18 11:07 PM: -- I think the JavadocUtil JavadocOutputStreamConsumer class is only getting utilized by JavadocUtil#getJavadocVersion. AbstractJavadocMojo#executeJavadocCommandLine creates two StringStreamConsumers. It looks like this might be where the issue with the warning is not being filtered out. was (Author: risdenk): I think the JavadocUtil JavadocOutputStreamConsumer class is only getting utilized by JavadocUtil#getJavadocVersion. AbstractJavadocMojo#executeJavadocCommandLine creates two StringStreamConsumers. It looks like this might be where the issue with the warning is not being filtered out. > JVM "JAVA_TOOL_OPTIONS" or "_JAVA_OPTIONS" message detected as javadoc > warning, triggers failure > - > > Key: MJAVADOC-538 > URL: https://issues.apache.org/jira/browse/MJAVADOC-538 > Project: Maven Javadoc Plugin > Issue Type: Bug >Affects Versions: 3.0.1 > Environment: Maven 3.5.4 > Java 1.8.0_181 >Reporter: Yoann Rodière >Priority: Major > > When an environment variable {{_JAVA_OPTIONS}} or {{JAVA_TOOL_OPTIONS}} is > defined, every JVM that starts will output a message to inform users of these > options being picked up: > {noformat} > $ export JAVA_TOOL_OPTIONS=-Dfoo > $ java -version > Picked up JAVA_TOOL_OPTIONS: -Dfoo > java version "1.8.0_181" > Java(TM) SE Runtime Environment (build 1.8.0_181-b13) > Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode){noformat} > Apparently this message cannot be suppressed, that's on purpose an won't > change: [https://bugs.openjdk.java.net/browse/JDK-8039152] > > Unfortunately, this message seems to be interpreted by the > maven-javadoc-plugin as a warning: > {noformat} > [INFO] --- maven-javadoc-plugin:3.0.1:javadoc-no-fork (generate-javadoc) @ > hibernate-search-util-internal-common --- > [INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:javadoc' > has not been previously called for the module: > 'org.hibernate.search:hibernate-search-util-internal-test:jar:6.0.0-SNAPSHOT'. > Trying to invoke it... > [WARN] Maven will be executed in interactive mode, but no input stream has > been configured for this MavenInvoker instance. > Picked up JAVA_TOOL_OPTIONS: -Dfoo > [WARNING] Creating fake javadoc directory to prevent repeated invocations: > /home/yrodiere/workspaces/main/hibernate-search-parent/util/internal/test/target/site/apidocs > [ERROR] Error fetching link: > /home/yrodiere/workspaces/main/hibernate-search-parent/util/internal/test/target/site/apidocs/package-list. > Ignored it. > [WARNING] Javadoc Warnings > [WARNING] Picked up JAVA_TOOL_OPTIONS: -Dfoo > {noformat} > (see the last line, the message appears in the list of warnings) > No big deal... until you enable the > [failOnWarnings|https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-no-fork-mojo.html#failOnWarnings] > option. Then the whole build will fail just because some JVM detected an > environment variable... > I couldn't find any workaround, except disabling the {{failOnWarnings}} > options, but that's more a surrender than a workaround. > Note that the definition of {{_JAVA_OPTIONS}} or {{JAVA_TOOL_OPTIONS}} is not > exactly an exotic use case, especially on Continuous Integration platforms. > [Travis CI uses {{_JAVA_OPTIONS}} > |https://docs.travis-ci.com/user/build-environment-updates/2017-09-06/#added] > to set JVM memory limits in its containerized environments, and [the Jenkins > CI Pipeline Maven plugin uses > {{JAVA_TOOL_OPTIONS}}|https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-WhydoIseemessages%22[WARNING]PickedupJAVA_TOOL_OPTIONS...%22inthebuildlogs?] > to pass options to Maven processes transparently. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (MJAVADOC-538) JVM "JAVA_TOOL_OPTIONS" or "_JAVA_OPTIONS" message detected as javadoc warning, triggers failure
[ https://issues.apache.org/jira/browse/MJAVADOC-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16685871#comment-16685871 ] Kevin Risden commented on MJAVADOC-538: --- I think the JavadocUtil JavadocOutputStreamConsumer class is only getting utilized by JavadocUtil#getJavadocVersion. AbstractJavadocMojo#executeJavadocCommandLine creates two StringStreamConsumers. It looks like this might be where the issue with the warning is not being filtered out. > JVM "JAVA_TOOL_OPTIONS" or "_JAVA_OPTIONS" message detected as javadoc > warning, triggers failure > - > > Key: MJAVADOC-538 > URL: https://issues.apache.org/jira/browse/MJAVADOC-538 > Project: Maven Javadoc Plugin > Issue Type: Bug >Affects Versions: 3.0.1 > Environment: Maven 3.5.4 > Java 1.8.0_181 >Reporter: Yoann Rodière >Priority: Major > > When an environment variable {{_JAVA_OPTIONS}} or {{JAVA_TOOL_OPTIONS}} is > defined, every JVM that starts will output a message to inform users of these > options being picked up: > {noformat} > $ export JAVA_TOOL_OPTIONS=-Dfoo > $ java -version > Picked up JAVA_TOOL_OPTIONS: -Dfoo > java version "1.8.0_181" > Java(TM) SE Runtime Environment (build 1.8.0_181-b13) > Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode){noformat} > Apparently this message cannot be suppressed, that's on purpose an won't > change: [https://bugs.openjdk.java.net/browse/JDK-8039152] > > Unfortunately, this message seems to be interpreted by the > maven-javadoc-plugin as a warning: > {noformat} > [INFO] --- maven-javadoc-plugin:3.0.1:javadoc-no-fork (generate-javadoc) @ > hibernate-search-util-internal-common --- > [INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:javadoc' > has not been previously called for the module: > 'org.hibernate.search:hibernate-search-util-internal-test:jar:6.0.0-SNAPSHOT'. > Trying to invoke it... > [WARN] Maven will be executed in interactive mode, but no input stream has > been configured for this MavenInvoker instance. > Picked up JAVA_TOOL_OPTIONS: -Dfoo > [WARNING] Creating fake javadoc directory to prevent repeated invocations: > /home/yrodiere/workspaces/main/hibernate-search-parent/util/internal/test/target/site/apidocs > [ERROR] Error fetching link: > /home/yrodiere/workspaces/main/hibernate-search-parent/util/internal/test/target/site/apidocs/package-list. > Ignored it. > [WARNING] Javadoc Warnings > [WARNING] Picked up JAVA_TOOL_OPTIONS: -Dfoo > {noformat} > (see the last line, the message appears in the list of warnings) > No big deal... until you enable the > [failOnWarnings|https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-no-fork-mojo.html#failOnWarnings] > option. Then the whole build will fail just because some JVM detected an > environment variable... > I couldn't find any workaround, except disabling the {{failOnWarnings}} > options, but that's more a surrender than a workaround. > Note that the definition of {{_JAVA_OPTIONS}} or {{JAVA_TOOL_OPTIONS}} is not > exactly an exotic use case, especially on Continuous Integration platforms. > [Travis CI uses {{_JAVA_OPTIONS}} > |https://docs.travis-ci.com/user/build-environment-updates/2017-09-06/#added] > to set JVM memory limits in its containerized environments, and [the Jenkins > CI Pipeline Maven plugin uses > {{JAVA_TOOL_OPTIONS}}|https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-WhydoIseemessages%22[WARNING]PickedupJAVA_TOOL_OPTIONS...%22inthebuildlogs?] > to pass options to Maven processes transparently. -- This message was sent by Atlassian JIRA (v7.6.3#76005)