/regex-copy-plugin

A Maven copy plugin on steroids

Primary LanguageJavaMIT LicenseMIT

Gitpod Ready-to-Code Build BCH compliance Maven Central

regex-copy-plugin

forked from ggtools/regex-copy-plugin

Description

The maven resource plugins lacks the possibility of renaming the resources during the copy process. This plugin aims at fixing this by providing a versatile renaming system. In a nutshell a regular expression will be used to match the source resources and the groups from this regular expression will be used to build the destination.

Configuration

<plugin>
                <groupId>com.github.zg2pro.copy</groupId>
                <artifactId>regex-copy-maven-plugin</artifactId>
                <version>0.1</version><!-- check latest version on maven central -->
                <configuration>
                    <sourceDirectory>target/dependency/wsdl-examples/</sourceDirectory>
                    <destinationDirectory>target/classes/WEB-INF/services/</destinationDirectory>
                    <source>([a-zA-Z]+)/resources/(.+)</source>
                    <destination>{1}/META-INF/{2}</destination>
                </configuration>
</plugin>