Build tooling
Maven profiles
Activates a named profile when defined; can change build inputs. Static Maven 3 example; Maven execution unverified.
Formal Syntax & Structure
java syntaxjava
mvn -o -Pcompat17 verifyWorking Example
Example Snippetjava
<profiles> <profile> <id>compat17</id> <properties><maven.compiler.release>17</maven.compiler.release></properties> </profile></profiles>