Clear/unset a system property maven.compiler.release so that is is no longer present

46
June 20, 2022, at 4:00 PM

I have a project with complicated build setup (parent POM's with parent POM's) and so it happens that my compiler plugin executes with maven.compiler.release=8.

This prevents me from setting source/target to Java 11 and I can't set release to 11 since I need to specify some --add-exports.

Is there a way to remove a system property in a profile so that it will not appear and my source/target switches would work? The best I could think of is setting maven.compiler.release to empty value but it won't work with compiler plugin.

How do I clear the system property in a profile? Alternatively, is there a way to trace who actually set it in the first place?

READ ALSO
Include project modules in a single jar

Include project modules in a single jar

I have a multi module maven project, the 3 modules are api, impl, allThe all module is a placeholder and has no source code, it only has a pom

32
Get process instance id for restarted process

Get process instance id for restarted process

I am using Camunda and I want to restart already completed processI am doing that using the following logic:

64
How to run relevant methods using annotation?

How to run relevant methods using annotation?

Maybe this question title is not up to my queries but I am searching for the answers for so long

71