title: Update Maven Project to Java 17 in Eclipse 2022-03 is not working
body: <p>I have a pristine <code>Eclipse 2022-03</code> with <code>JRE's 1.8 &amp; 17</code> defined under <code>Windows 10</code>.</p>
  <p>Having created a new Maven Project I tried <code>Maven/Update Project...</code> but it has no effect: the JDK remains 1.8.</p>
  <p>My pom.xml looks like this:</p>
  <pre><code>&lt;project
          xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;
          xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
          xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;de.domain&lt;/groupId&gt;
      &lt;artifactId&gt;jdk17.project&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;JDK 17 Project&lt;/name&gt;
  
      &lt;properties&gt;
          &lt;maven.compiler.source&gt;17&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;17&lt;/maven.compiler.target&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;/properties&gt;
  &lt;/project&gt;
  </code></pre>
  <p>I then changed it to:</p>
  <pre><code>&lt;project
          xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;
          xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
          xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;de.domain&lt;/groupId&gt;
      &lt;artifactId&gt;jdk17.project&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;JDK 17 Project&lt;/name&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;/properties&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.8.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;release&gt;17&lt;/release&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  <p>This worked, the JDK was updated to 17. However, I find it rather long-winded.</p>
  <p>Anyone know why the other pom is not working?</p>
  <p>Addendum: the following 2 JRE's are configuered<br></p>
  <ul>
  <li>1.8 Oracle + unlimited Crypto<br></li>
  <li>17 openJDK (Zulu Release with JavaFX bundled)<br></li>
  </ul>
  <p><a href="https://i.stack.imgur.com/TatV5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TatV5.png" alt="JRE's" /></a></p>
  <p>Addendum: Maven settings.xml</p>
  <pre><code>&lt;settings xmlns=&quot;http://maven.apache.org/SETTINGS/1.0.0&quot;
    xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
    xsi:schemaLocation=&quot;http://maven.apache.org/SETTINGS/1.0.0
                        http://maven.apache.org/xsd/settings-1.0.0.xsd&quot;&gt;
    &lt;localRepository/&gt;
    &lt;interactiveMode/&gt;
    &lt;usePluginRegistry/&gt;
    &lt;offline/&gt;
    &lt;pluginGroups/&gt;
    &lt;servers/&gt;
    &lt;mirrors/&gt;
    &lt;profiles&gt;
      &lt;profile&gt;
          &lt;id&gt;java8&lt;/id&gt;
          &lt;activation&gt;
              &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
          &lt;/activation&gt;
          &lt;properties&gt;
              &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
              &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
          &lt;/properties&gt;
      &lt;/profile&gt;
    &lt;/profiles&gt;
    &lt;activeProfiles/&gt;
  &lt;/settings&gt;
  </code></pre>
  <p>Addendum: Project/Java Compiler</p>
  <p><a href="https://i.stack.imgur.com/y7bOD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y7bOD.png" alt="Project/Java Compiler" /></a></p>