Skip to content

Repository files navigation

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.

About

Maven plugin to apply Unified Diffs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages