Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.52 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.52 KB

MojoHaus Exec Maven Plugin

Apache License, Version 2.0, January 2004 Maven Central GitHub CI

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.

Running integration tests

Execute

mvn -P run-its clean verify

Running a single test:

mvn -P run-its clean verify "-Dinvoker.test=setup-parent,<TEST-PROJECT-NAME>"

Releasing

  • Make sure gpg-agent is 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