RFR: 7526: JMC not buildable with jdk17 [v5]

Brice Dutheil duke at openjdk.java.net
Fri Jan 21 11:18:55 UTC 2022


On Fri, 21 Jan 2022 07:58:54 GMT, Johannes Bechberger <duke at openjdk.java.net> wrote:

>> My version is 3.8.4 which is the current version of maven. But it works for me with JDK 11. So the culprit (in my opinion) is the p2-maven-plugin, which is the only other thing I changed besides the JDK version, or of course, the JDK itself, but this seems to be unlikely.
>
> It's weird: the problem does not occur on JDK 11 with the newer p2-maven-plugin. So it might the JDK itself?

Could it be a tycho issue, again. Tycho overrides many lifecycle of Maven:

https://github.com/eclipse/tycho/blob/5c83ecd968eae37aa328020d228c8f03b2a3168c/tycho-maven-plugin/src/main/resources/META-INF/plexus/components.xml#L27-L29


<compile>
  org.eclipse.tycho:tycho-compiler-plugin:${project.version}:compile
</compile>


_By the way tycho 2.6.0 seems to be [around the corner](https://github.com/eclipse/tycho/releases/tag/tycho-2.6.0), I haven't checked the changelog though._

It can't be `p2-maven-plugin` anyway as it is only used to generate a p2 repository (that is used in the `.target` files), and it is only used in `releng/third-party`.

-------------

PR: https://git.openjdk.java.net/jmc/pull/363


More information about the jmc-dev mailing list