RFR: 7526: JMC not buildable with jdk17 [v7]
Brice Dutheil
duke at openjdk.java.net
Fri Jan 21 16:42:51 UTC 2022
On Fri, 21 Jan 2022 14:09:39 GMT, Christoph Langer <clanger at openjdk.org> wrote:
>> 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`.
>
> I played around with it further. tycho uses JDT under the covers. And it seems to be an issue between Tycho JDT and JDK17. mvn -X shows nice parameters were passed to JDT but I didn't look into it. I will try to see what happens when switching the tycho compiler to javac. Don't know whether that's possible/a good idea...
I don't think that's possible, tycho overrides many aspects of maven, typicaly for the compiler the tycho _overlay_ will get depdencies from other tycho plugin, not from maven APIs.
-------------
PR: https://git.openjdk.java.net/jmc/pull/363
More information about the jmc-dev
mailing list