The Exec Maven Plugin runs system programs and Java programs from a build: exec:exec starts a
program in a separate process, and exec:java runs a main class in the Maven JVM. It requires
Maven 3.9.0 or later and Java 8 or later.
mvn exec:java -Dexec.mainClass="com.example.Main"The plugin site lists the goals and has a usage page and examples. Contributor and agent notes are in AGENTS.md.
Execute
mvn -P run-its clean verifyRunning a single test:
mvn -P run-its clean verify "-Dinvoker.test=setup-parent,<TEST-PROJECT-NAME>"- Make sure
gpg-agentis running. - Execute
mvn -B release:prepare release:perform
For publishing the site do the following:
cd target/checkout
mvn verify site site:stage scm-publish:publish-scm