Skip to content

About

Runs system commands and Java programs from a build

Topics

Resources

Contributing

Security policy

Stars

192 stars

Watchers

20 watching

Forks

Latest commit

 

History

786 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Runs system commands and Java programs from a build

Topics

Resources

Contributing

Security policy

Stars

192 stars

Watchers

20 watching

Forks

Releases

Used by

Contributors

Languages