Class PatchGenMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="generate-patch",
          defaultPhase=GENERATE_RESOURCES)
    public class PatchGenMojo
    extends org.apache.maven.plugin.AbstractMojo
    Maven plug-in for creating patches for WildFly / JBoss EAP, using the patch-gen tool.

    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>
     
     
    Author:
    Gunnar Morling
    • Field Detail

      • pluginArtifacts

        @Parameter(property="plugin.artifacts")
        protected List<org.apache.maven.artifact.Artifact> pluginArtifacts
    • Constructor Detail

      • PatchGenMojo

        public PatchGenMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException