On 1/14/23 02:22, Mark Eggers wrote:
Frank,

That's a very old version of the maven-compiler-plugin.

From version 3.6 of the compiler plugin, you can use the maven.compiler.release property, which sets the JDK >=9 --release option.

So the configuration would look something like this:

<properties>
    <maven.compiler.release>11</maven.compiler.release>
</properties>

<build>
    <plugins>
                <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
                    <version>3.10.1</version>
                    <configuration>
<release>${maven.compiler.release}</release>
            <!-- other configuration arguments -->
                    </configuration>
                </plugin>
    </plugins>
</build>

Does that help?

. . . just my two cents
/mde/

Hi Mark,

Thanks for the reply.  That worked a treat !

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to