[
https://issues.apache.org/jira/browse/MJAVADOC-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16248472#comment-16248472
]
Robert Scholte commented on MJAVADOC-499:
-----------------------------------------
I don't understand the reason why one would add a {{module-info.java}} if
they're not going to use it. The introduction of this magic will do more harm.
People will assume that the module-info is being compiled if it is there. If
they accidentally are using an older Java version it should not be ignored.
Instead the build must fail to make them aware they're using the wrong Java
version.
> Ignore module-info.java on earlier Java versions
> ------------------------------------------------
>
> Key: MJAVADOC-499
> URL: https://issues.apache.org/jira/browse/MJAVADOC-499
> Project: Maven Javadoc Plugin
> Issue Type: Improvement
> Affects Versions: 3.0.0-M1
> Reporter: Stephen Colebourne
> Assignee: Robert Scholte
> Fix For: 3.0.0
>
>
> Versions of the javadoc tool prior to Java 9 cannot process
> `module-info.java`. The plugin should automatically detect and exclude
> `module-info.java` if the javadoc tool is Java 8 or earlier. The alternative
> (Java version specific profiles) does work, but is very verbose for something
> that can never work (thus the plugin should deal with it)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)