Debian Codegraph @

src/it/timestamp-regex/pom.xml

raw
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2 <modelVersion>4.0.0</modelVersion>
3
4 <groupId>localdomain.localhost</groupId>
5 <artifactId>timestamp-jenkins</artifactId>
6 <version>1-SNAPSHOT</version>
7 <packaging>jar</packaging>
8
9 <name>Timestamp Jenkins</name>
10 <description>
11 Tests that a jenkins style timestamp can be set
12 </description>
13
14 <build>
15 <resources>
16 <resource>
17 <directory>src/main/resources</directory>
18 <excludes>
19 <exclude>test.properties</exclude>
20 </excludes>
21 <filtering>false</filtering>
22 </resource>
23 <resource>
24 <directory>src/main/resources</directory>
25 <includes>
26 <include>test.properties</include>
27 </includes>
28 <filtering>true</filtering>
29 </resource>
30 </resources>
31 <plugins>
32 <plugin>
33 <groupId>@project.groupId@</groupId>
34 <artifactId>@project.artifactId@</artifactId>
35 <version>@project.version@</version>
36 <executions>
37 <execution>
38 <id>timestamp</id>
39 <goals>
40 <goal>timestamp-property</goal>
41 </goals>
42 <configuration>
43 <name>timestamp</name>
44 <locale>en_US</locale>
45 <pattern>hh:mm dd-MM-yyyy</pattern>
46 </configuration>
47 </execution>
48 <execution>
49 <id>version</id>
50 <goals>
51 <goal>regex-property</goal>
52 </goals>
53 <configuration>
54 <name>build.version</name>
55 <value>${project.version}</value>
56 <regex>-SNAPSHOT</regex>
57 <replacement>-RC (${timestamp} private)</replacement>
58 <failIfNoMatch>false</failIfNoMatch>
59 </configuration>
60 </execution>
61 </executions>
62 </plugin>
63 </plugins>
64 </build>
65
66 </project>