/
pom.xml
128 lines (128 loc) · 3.86 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<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>net.officefloor.maven</groupId>
<artifactId>maven</artifactId>
<version>${revision}</version>
</parent>
<artifactId>woof-archetype</artifactId>
<packaging>maven-archetype</packaging>
<name>WoOF Archetype</name>
<description>Archetype to generate a WoOF project</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<archetype.version>3.2.0</archetype.version>
<!-- Properties for reporting and site generation -->
<basedir>${basedir}</basedir>
<projectGroupId>${project.groupId}</projectGroupId>
<projectArtifactId>${project.artifactId}</projectArtifactId>
<projectVersion>${project.version}</projectVersion>
</properties>
<dependencies>
<!-- To keep generated archetype dependencies up to date -->
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>${archetype.version}</version>
</extension>
</extensions>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<version>${archetype.version}</version>
</plugin>
<plugin>
<!-- Allow escaping archetype filtering -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<escapeString>\</escapeString>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<resources>
<!-- Allow filtering on archetype POM to include dependency versions -->
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>archetype-resources/pom.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>archetype-resources/pom.xml</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<!-- Fix line endings to obtain matching files -->
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>fix-crlfs</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<fixcrlf srcdir="${project.build.testOutputDirectory}" fixlast="false" excludes="**/*.png" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- Only license tutorial and verification. Developers may use tutorial code as seed. -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration>
<roots>
<root>src/site</root>
<root>src/test/verifier</root>
</roots>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<!-- Generate Maven plug-in documentation -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
</plugin>
</plugins>
</reporting>
</project>