Maven - Plugin Execution

Card Puncher Data Processing

About

A plugin execution

Example

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-assembly-plugin</artifactId>
	<executions>
		<execution>
			<id>Parent Create Zip Windows Distribution</id>
			<phase>package</phase>
			<goals>
				<goal>single</goal>
			</goals>
			<configuration>
				<descriptorRefs>
					<descriptorRef>windows-x64</descriptorRef>
				</descriptorRefs>
			</configuration>
		</execution>
	</executions>
</plugin>

where:

Management

Execution

mvn prefix:goal@executionId

where:

Id

Default ???

  • default in the POM model
  • default-cli from the command line
  • default-goalName mojo bound to the build lifecycle via the default lifecycle mapping

You can see it at the console:

Maven Execution Id

Configuration

http://maven.apache.org/guides/mini/guide-default-execution-ids.html





Discover More
Card Puncher Data Processing
Maven

is a build tool. It is declarative build tool whereas ant is a procedural build tool. You can then change the build process by changing the process not the declaration. Most of the project declaration...
Card Puncher Data Processing
Maven - Plugin (Mojo)

A plugin (in Maven 2.0) groups together goals by code. It's an independent unit of code for Maven. It look like a dependency. In Maven, there are: Build plugins. They will be executed during the...



Share this page:
Follow us:
Task Runner