| 1 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 |
<modelVersion>4.0.0</modelVersion> |
| 4 |
|
| 5 |
<groupId>org.codehaus.mojo</groupId> |
| 6 |
<artifactId>build-helper-mbuildhelper-54</artifactId> |
| 7 |
<version>1-SNAPSHOT</version> |
| 8 |
<packaging>jar</packaging> |
| 9 |
|
| 10 |
<name>Regex valid with empty replacement</name> |
| 11 |
<description> |
| 12 |
Tests no replacement keeps original value. |
| 13 |
</description> |
| 14 |
|
| 15 |
<build> |
| 16 |
<resources> |
| 17 |
<resource> |
| 18 |
<directory>src/main/resources</directory> |
| 19 |
<excludes> |
| 20 |
<exclude>test.properties</exclude> |
| 21 |
</excludes> |
| 22 |
<filtering>false</filtering> |
| 23 |
</resource> |
| 24 |
<resource> |
| 25 |
<directory>src/main/resources</directory> |
| 26 |
<includes> |
| 27 |
<include>test.properties</include> |
| 28 |
</includes> |
| 29 |
<filtering>true</filtering> |
| 30 |
</resource> |
| 31 |
</resources> |
| 32 |
<plugins> |
| 33 |
<plugin> |
| 34 |
<groupId>@project.groupId@</groupId> |
| 35 |
<artifactId>@project.artifactId@</artifactId> |
| 36 |
<version>@project.version@</version> |
| 37 |
<executions> |
| 38 |
<execution> |
| 39 |
<id>execution1</id> |
| 40 |
<goals> |
| 41 |
<goal>regex-property</goal> |
| 42 |
</goals> |
| 43 |
<configuration> |
| 44 |
<name>propname</name> |
| 45 |
<value>originalvalue</value> |
| 46 |
<regex>nomatch</regex> |
| 47 |
<replacement></replacement> |
| 48 |
<failIfNoMatch>false</failIfNoMatch> |
| 49 |
</configuration> |
| 50 |
</execution> |
| 51 |
</executions> |
| 52 |
</plugin> |
| 53 |
</plugins> |
| 54 |
</build> |
| 55 |
|
| 56 |
</project> |