desruisseaux commented on PR #1062:
URL:
https://github.com/apache/maven-compiler-plugin/pull/1062#issuecomment-4649195427
Actually the section saying that we need to run `javac` twice could be
updated. It should not be needed any more since the addition of the
multi-release support, although we would need to test for making sure. But in
principle, a configuration like below should work with Java 8, with the
`module-info.java` file in the `src/main/java_9` directory:
```xml
<sources>
<source>
<directory>src/main/java</directory>
<targetVersion>8</targetVersion>
</source>
<source>
<directory>src/main/java_9</directory>
<targetVersion>9</targetVersion>
</source>
</sources>
```
We could amend the pull request so that instead of being "two compilations
versus one compilation", make it "explicit module-info versus module-info
derived from the pom.xml". We may need to test the above snippet first for
making sure that it works in this context too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]