@Mojo(name="generate-patch",
defaultPhase=GENERATE_RESOURCES)
public class PatchGenMojo
extends org.apache.maven.plugin.AbstractMojo
All options from PatchGenerator are supported. The configuration option names are the same as for the CLI
options, but without hyphens and camel-cased. E.g. use appliesToDist as counterpart to
--applies-to-dist.
Example usage:
<plugin>
<groupId>org.jboss.as</groupId>
<artifactId>patch-gen-maven-plugin</artifactId>
<version>2.1.1.Final-SNAPSHOT</version>
<executions>
<execution>
<id>create-patch-file</id>
<phase>prepare-package</phase>
<goals>
<goal>GenPatch</goal>
</goals>
<configuration>
<appliesToDist>path/to/source/dist</appliesToDist>
<updatedDist>path/to/updated/dist</updatedDist>
<patchConfig>path/to/patch.xml</patchConfig>
<outputFile>path/to/my-patch.zip</outputFile>
<includeVersion>true</includeVersion>
</configuration>
</execution>
</executions>
</plugin>
| Modifier and Type | Field and Description |
|---|---|
protected List<org.apache.maven.artifact.Artifact> |
pluginArtifacts |
| Constructor and Description |
|---|
PatchGenMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
@Parameter(property="plugin.artifacts") protected List<org.apache.maven.artifact.Artifact> pluginArtifacts
Copyright © 2021 JBoss by Red Hat. All rights reserved.