-
Notifications
You must be signed in to change notification settings - Fork 1
/
pom.xml
63 lines (61 loc) · 2.4 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jboss.pressgang</groupId>
<artifactId>pressgang-parent</artifactId>
<version>1.7</version>
</parent>
<properties>
<maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
</properties>
<groupId>org.jboss.pressgang.ccms</groupId>
<artifactId>pressgang-ccms-import</artifactId>
<version>1.9</version>
<name>PressGang CCMS Import</name>
<packaging>war</packaging>
<build>
<plugins>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<file>src/main/webapp/index.html</file>
<replacements>
<replacement>
<token>Build \d+(\.\d+)*(-SNAPSHOT)? \d{12}</token>
<value>Build ${project.version} ${maven.build.timestamp}</value>
</replacement>
</replacements>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>final-build</id>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<warSourceDirectory>src/main/webapp/</warSourceDirectory>
<webappDirectory>src/main/webapp/</webappDirectory>
<packagingExcludes>**/tests/**,**/tests.html,**/asciidoc-test.zip</packagingExcludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>