mvn:mvn

Full name:

org.kuali.maven.plugins:mvn-maven-plugin:1.0.2:mvn

Description:

Invoke mvn from Maven.

Attributes:

  • Requires a Maven project to be executed.

Required Parameters

Name Type Since Description
args List - Arguments to supply to the new mvn invocation eg "clean install"
basedir File - The base directory for the new mvn invocation.
Default value is: ${project.build.directory}/mvn.
deleteTempPom boolean - If true, any temp pom copied to basedir will be deleted when the plugin exeuction is complete
Default value is: true.
failOnError boolean - If true, the original Maven build will fail if the new mvn invocation returns a non-zero exit value, otherwise the Maven build will continue
Default value is: true.
workingDir File - The working directory where the plugin makes a local copy of the pom (if a pom is supplied)
Default value is: ${project.build.directory}/mvn.

Optional Parameters

Name Type Since Description
addEnvironment boolean - If true, the current environment is passed to the new mvn invocation
Default value is: false.
addMavenOpts boolean - If true, the environment variable MAVEN_OPTS (if set) is passed to the new mvn invocation
Default value is: true.
executable String - The Maven executable. By default, the executable to use is located via the ${maven.home} system property. This causes the new mvn invocation to mirror the one that is currently executing (same version, etc). You can override this behavior by supplying your own executable
filterPom boolean - If true, the pom will be filtered using properties from the current project before being invoked
Default value is: false.
pom String - The pom to supply to the new mvn invocation. This can be a file or any url Spring resource loading can understand eg classpath:pom.xml
properties List - List of properties from the current project to propagate to the new mvn invocation

Parameter Details

addEnvironment:

If true, the current environment is passed to the new mvn invocation
  • Type: boolean
  • Required: No
  • Expression: ${mvn.addEnvironment}
  • Default: false

addMavenOpts:

If true, the environment variable MAVEN_OPTS (if set) is passed to the new mvn invocation
  • Type: boolean
  • Required: No
  • Expression: ${mvn.addMavenOpts}
  • Default: true

args:

Arguments to supply to the new mvn invocation eg "clean install"
  • Type: java.util.List
  • Required: Yes

basedir:

The base directory for the new mvn invocation.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${mvn.basedir}
  • Default: ${project.build.directory}/mvn

deleteTempPom:

If true, any temp pom copied to basedir will be deleted when the plugin exeuction is complete
  • Type: boolean
  • Required: Yes
  • Expression: ${mvn.deleteTempPom}
  • Default: true

executable:

The Maven executable. By default, the executable to use is located via the ${maven.home} system property. This causes the new mvn invocation to mirror the one that is currently executing (same version, etc). You can override this behavior by supplying your own executable
  • Type: java.lang.String
  • Required: No
  • Expression: ${mvn.executable}

failOnError:

If true, the original Maven build will fail if the new mvn invocation returns a non-zero exit value, otherwise the Maven build will continue
  • Type: boolean
  • Required: Yes
  • Expression: ${mvn.failOnError}
  • Default: true

filterPom:

If true, the pom will be filtered using properties from the current project before being invoked
  • Type: boolean
  • Required: No
  • Expression: ${mvn.filterPom}
  • Default: false

pom:

The pom to supply to the new mvn invocation. This can be a file or any url Spring resource loading can understand eg classpath:pom.xml
  • Type: java.lang.String
  • Required: No
  • Expression: ${mvn.pom}

properties:

List of properties from the current project to propagate to the new mvn invocation
  • Type: java.util.List
  • Required: No

workingDir:

The working directory where the plugin makes a local copy of the pom (if a pom is supplied)
  • Type: java.io.File
  • Required: Yes
  • Expression: ${mvn.workingDir}
  • Default: ${project.build.directory}/mvn