Skip to content

The @nx/maven plugin provides various executors to help you create and configure maven projects within your Nx workspace. Below is a complete reference for all available executors and their options.

maven

The Maven executor is used to run Maven phases and goals.

Options

OptionTypeDescriptionDefault
__unparsed__arrayAdditional arguments to pass to the Maven command (automatically populated by Nx).
argsstringThe arguments to pass to the Maven command.
goalsstringThe Maven goals to execute (e.g., ‘clean:clean’, ‘compiler:compile’).
phasestringThe Maven lifecycle phase to execute (e.g., ‘compile’, ‘test’, ‘package’, ‘install’).