Platform: debian 9.9 "stretch", amd64 eclipse 2019-03 (4.11.0) m2e 1.11.0.20190220-2119
I have created profiles to set the source and target levels of the compiler plugin, depending on the JRE used. However, m2e always picks Java-11, even though: 1. Eclipse has just a single JRE, which is openjdk-8 2. both openjdk-8 and openjdk-11 is installed on the debian system I'm testing on 3. "update-alternatives --config java" has been used to make the java command be java 8: sb@lorenzo:~/workspaces/ws03/authservice$ java -version openjdk version "1.8.0_212" OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-2~deb9u1-b03) OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode) sb@lorenzo:~/workspaces/ws03/authservice$ 4. JAVA_HOME has been set to point to java-8: export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 Does anyone know why m2e doesn't pick the java8 profile below, but always picks the java11 profile? Thanks! The pom file is https://github.com/steinarb/authservice/blob/master/pom.xml The profiles setting the compiler versions, look like this: <profiles> <profile> <id>java8</id> <activation> <jdk>1.8</jdk> </activation> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>java11</id> <activation> <jdk>11</jdk> </activation> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>11</source> <target>11</target> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> </profiles> _______________________________________________ m2e-users mailing list m2e-users@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-users