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

Stephen Colebourne commented on MJAVADOC-499:
---------------------------------------------

I don't have anything to add. Right now, every single pom.xml I'm updating for 
Java 9 compatibility (20+ pom.xml files) will need a profile matching Java 8 to 
exclude `module-info.java`. Java 8 is the LTS, so the projects have to compile 
there, which means ignoring the module file. The plugin knows all the facts, 
but doesn't process them. If you are unwilling to do it automatically, how 
about a flag? `ignoreFilesByJdkVersion` - it could apply to the compiler plugin 
and javadoc plugin at a minimum.

> 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
>
> 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)

Reply via email to