title: Maven compiler plugin Unsupported class file major version 60
body: <p>I am updating a Spigot (Minecraft) plugin and the newest version of Spigot requires Java 16. In my pom I changed the maven compiler plugin target to 16 and the source is still 1.8. Now I am getting the following errors:</p>
  <pre><code>Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.2.4:shade (default) on project Plugin: Error creating shaded jar: Problem shading JAR C:\Users\Trent\workspace\Stocks\Plugin\target\Plugin-1.0-SNAPSHOT.jar entry com/tchristofferson/stocks/commands/StockbrokerCommand.class: java.lang.IllegalArgumentException: Unsupported class file major version 60
  </code></pre>
  <p>pom:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  </code></pre>
  <p>
  4.0.0</p>
  <pre><code>&lt;groupId&gt;com.tchristofferson&lt;/groupId&gt;
  &lt;artifactId&gt;Stocks&lt;/artifactId&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;modules&gt;
      &lt;module&gt;API&lt;/module&gt;
      &lt;module&gt;Plugin&lt;/module&gt;
  &lt;/modules&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;source&gt;1.8&lt;/source&gt;
                  &lt;target&gt;16&lt;/target&gt;
                  &lt;release&gt;16&lt;/release&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  
  &lt;distributionManagement&gt;
      &lt;snapshotRepository&gt;
          &lt;id&gt;ossrh&lt;/id&gt;
          &lt;url&gt;https://oss.sonatype.org/content/repositories/snapshots&lt;/url&gt;
      &lt;/snapshotRepository&gt;
      &lt;repository&gt;
          &lt;id&gt;ossrh&lt;/id&gt;
          &lt;url&gt;https://oss.sonatype.org/service/local/staging/deploy/maven2/&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/distributionManagement&gt;
  </code></pre>