Configured JDK runtime not used for implicit maven profile activation #3818
caymaynard
started this conversation in
General
Replies: 1 comment 1 reply
-
m2e/maven uses the runtime jdk (>=17) to check the jdk property. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not entirely sure whether something is missing in my configuration, or whether there is an issue in how the plugin calls maven (or m2e)
I have my project configured for Java 11, with the settings like
This works for most of my projects, but I have one which has a dependency on
com.helger:ph-jaxb-pom:pom:1.0.0
. That particular version does not work on anything past JDK 11. It has a maven profile with the activation<jdk>[9,12)</jdk>
(https://github.com/phax/ph-jaxb-pom/blob/ph-jaxb-pom-1.0.0/pom.xml#L93C9-L93C26)I would expect this to work with my configuration, but instead, it fails to load this dependency, because the maven profile is not activated.
Is this failing to activate because my runtime is not used, or does the language server use its own configured runtime for all the maven tasks?
Beta Was this translation helpful? Give feedback.
All reactions