Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.58 KB

File metadata and controls

36 lines (29 loc) · 1.58 KB

Patch Maven Plugin

Build Status Java 8 License

This is a Maven Plugin that can apply a Unified Diff to one or more files.

Example Use

<plugin>
    <groupId>com.evolvedbinary.maven.plugins</groupId>
    <artifactId>patch-maven-plugin</artifactId>
    <version>1.2.0-SNAPSHOT</version>
    <executions>
        <execution>
            <id>patch-dir-1</id>
            <phase>process-resources</phase>
            <goals>
                <goal>apply</goal>
            </goals>
            <configuration>
                <failOnFailedPatch>true</failOnFailedPatch>
                <targetDirectory>${project.build.directory}/dir-1</targetDirectory>
                <patchDirectory>${project.basedir}/src/patches/my-patches-1</patchDirectory>
            </configuration>
        </execution>
    </executions>
</plugin>

This project started as an import of the Maven Plugin: io.github.lukasmansour:patch-maven-plugin:1.0.0 which previously resided at https://github.com/LukasMansour/patch-maven-plugin before that GitHub repository was removed. As the original GitHub repository is unavailable, we imported the source code and pom.xml file from the artifacts that were available from Maven Central.