Get 'mvn clean site' to work.
[commons-testing.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 -->
18 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20 <parent>
21 <groupId>org.apache.commons</groupId>
22 <artifactId>commons-parent</artifactId>
23 <version>43</version>
24 </parent>
25 <modelVersion>4.0.0</modelVersion>
26 <artifactId>commons-testing-parent</artifactId>
27 <version>1.0.0-SNAPSHOT</version>
28 <packaging>pom</packaging>
29 <name>Apache Commons Testing Parent POM</name>
30
31 <inceptionYear>2017</inceptionYear>
32 <description>
33 Apache Commons Testing, a package of Java utility classes for testing.
34 </description>
35
36 <url>http://commons.apache.org/proper/commons-testing/</url>
37
38 <issueManagement>
39 <system>jira</system>
40 <!-- WIP -->
41 <url>http://issues.apache.org/jira/browse/TESTING</url>
42 </issueManagement>
43
44 <scm>
45 <connection>scm:git:http://git-wip-us.apache.org/repos/asf/commons-testing.git</connection>
46 <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/commons-testing.git</developerConnection>
47 <url>https://git-wip-us.apache.org/repos/asf?p=commons-testing.git</url>
48 <tag>TESTING-1.0.0</tag>
49 </scm>
50
51 <developers>
52 <developer>
53 <name>Gary Gregory</name>
54 <id>ggregory</id>
55 <email>ggregory@apache.org</email>
56 <timezone>-5</timezone>
57 <roles>
58 <role>Java Developer</role>
59 </roles>
60 </developer>
61 </developers>
62
63 <contributors>
64 </contributors>
65
66 <dependencyManagement>
67 <dependencies>
68 <dependency>
69 <groupId>junit</groupId>
70 <artifactId>junit</artifactId>
71 <version>4.12</version>
72 </dependency>
73 <dependency>
74 <groupId>org.apache.commons</groupId>
75 <artifactId>commons-lang3</artifactId>
76 <version>3.7</version>
77 </dependency>
78 </dependencies>
79 </dependencyManagement>
80
81 <distributionManagement>
82 <site>
83 <id>apache.website</id>
84 <name>Apache Commons Testing Site</name>
85 <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-testing/</url>
86 </site>
87 </distributionManagement>
88
89 <properties>
90 <argLine>-Xmx512m</argLine>
91 <project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
92 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
93 <maven.compiler.source>1.7</maven.compiler.source>
94 <maven.compiler.target>1.7</maven.compiler.target>
95 <!--
96 This is also used to generate download_xxx file name.
97 To override this when generating the download page:
98
99 mvn commons:download-page -Dcommons.componentid=testing
100
101 The above seems to change the download page name but not any other
102 properties that depend on the componentid.
103 -->
104 <commons.componentid>testing</commons.componentid>
105 <commons.module.name>org.apache.commons.testing</commons.module.name>
106 <!-- Current 1.x release series -->
107 <commons.release.version>1.0.0</commons.release.version>
108 <commons.release.desc>(Java 7)</commons.release.desc>
109 <commons.jira.id>TESTING</commons.jira.id>
110 <commons.jira.pid>????</commons.jira.pid>
111
112 <commons.site.path>testing</commons.site.path>
113 <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-testing</commons.scmPubUrl>
114 <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
115 <commons.encoding>utf-8</commons.encoding>
116
117 <!-- Override clirr version to be able to build the site on Java 7 -->
118 <commons.clirr.version>2.8</commons.clirr.version>
119 <checkstyle.plugin.version>3.0.0</checkstyle.plugin.version>
120 <findbugs.plugin.version>3.0.5</findbugs.plugin.version>
121
122 </properties>
123
124
125 <build>
126 <defaultGoal>clean verify apache-rat:check clirr:check checkstyle:check findbugs:check javadoc:javadoc</defaultGoal>
127 <pluginManagement>
128 <plugins>
129 <plugin>
130 <groupId>org.apache.rat</groupId>
131 <artifactId>apache-rat-plugin</artifactId>
132 <configuration>
133 <excludes>
134 <exclude>site-content/**</exclude>
135 </excludes>
136 </configuration>
137 </plugin>
138 <plugin>
139 <groupId>org.apache.maven.plugins</groupId>
140 <artifactId>maven-surefire-plugin</artifactId>
141 <executions>
142 <execution>
143 <id>plain</id>
144 <configuration>
145 <includes>
146 <include>**/*Test.java</include>
147 </includes>
148 <runOrder>random</runOrder>
149 </configuration>
150 </execution>
151 <!-- <execution> <id>security-manager-test</id> <phase>integration-test</phase> <goals> <goal>test</goal> </goals>
152 <configuration>
153 <includes> <include>**/*Test.java</include> </includes> <argLine>-Djava.security.manager -Djava.security.policy=${basedir}/src/test/resources/java.policy</argLine>
154 </configuration> </execution> -->
155 </executions>
156 </plugin>
157 <plugin>
158 <artifactId>maven-assembly-plugin</artifactId>
159 <configuration>
160 <descriptors>
161 <descriptor>src/assembly/bin.xml</descriptor>
162 <descriptor>src/assembly/src.xml</descriptor>
163 </descriptors>
164 <tarLongFileMode>gnu</tarLongFileMode>
165 </configuration>
166 </plugin>
167 <plugin>
168 <groupId>org.apache.maven.plugins</groupId>
169 <artifactId>maven-scm-publish-plugin</artifactId>
170 <configuration>
171 <ignorePathsToDelete>
172 <ignorePathToDelete>javadocs</ignorePathToDelete>
173 </ignorePathsToDelete>
174 </configuration>
175 </plugin>
176 <plugin>
177 <artifactId>maven-checkstyle-plugin</artifactId>
178 <version>${checkstyle.plugin.version}</version>
179 <configuration>
180 <configLocation>${basedir}/checkstyle.xml</configLocation>
181 <includeTestSourceDirectory>true</includeTestSourceDirectory>
182 <enableRulesSummary>false</enableRulesSummary>
183 </configuration>
184 </plugin>
185 <plugin>
186 <groupId>org.codehaus.mojo</groupId>
187 <artifactId>findbugs-maven-plugin</artifactId>
188 <!-- Use version from parent pom as that is adjusted according to the Java version used to run Maven -->
189 <version>${commons.findbugs.version}</version>
190 <configuration>
191 <excludeFilterFile>${basedir}/findbugs-exclude-filter.xml</excludeFilterFile>
192 </configuration>
193 </plugin>
194 </plugins>
195 </pluginManagement>
196 <plugins>
197 </plugins>
198
199 </build>
200
201 <reporting>
202 <plugins>
203 <!-- Requires setting 'export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m" ' -->
204 <plugin>
205 <artifactId>maven-pmd-plugin</artifactId>
206 <version>3.9.0</version>
207 <configuration>
208 <targetJdk>${maven.compiler.target}</targetJdk>
209 </configuration>
210 </plugin>
211 <plugin>
212 <groupId>org.codehaus.mojo</groupId>
213 <artifactId>taglist-maven-plugin</artifactId>
214 <version>2.4</version>
215 <configuration>
216 <tagListOptions>
217 <tagClasses>
218 <tagClass>
219 <displayName>Needs Work</displayName>
220 <tags>
221 <tag>
222 <matchString>TODO</matchString>
223 <matchType>exact</matchType>
224 </tag>
225 <tag>
226 <matchString>FIXME</matchString>
227 <matchType>exact</matchType>
228 </tag>
229 <tag>
230 <matchString>XXX</matchString>
231 <matchType>exact</matchType>
232 </tag>
233 </tags>
234 </tagClass>
235 <tagClass>
236 <displayName>Noteable Markers</displayName>
237 <tags>
238 <tag>
239 <matchString>NOTE</matchString>
240 <matchType>exact</matchType>
241 </tag>
242 <tag>
243 <matchString>NOPMD</matchString>
244 <matchType>exact</matchType>
245 </tag>
246 <tag>
247 <matchString>NOSONAR</matchString>
248 <matchType>exact</matchType>
249 </tag>
250 </tags>
251 </tagClass>
252 </tagClasses>
253 </tagListOptions>
254 </configuration>
255 </plugin>
256 <plugin>
257 <groupId>org.codehaus.mojo</groupId>
258 <artifactId>javancss-maven-plugin</artifactId>
259 <version>2.1</version>
260 </plugin>
261 </plugins>
262 </reporting>
263
264 <modules>
265 <module>commons-testing-generic</module>
266 <module>commons-testing-junit4</module>
267 <!--<module>commons-testing-junit5</module> -->
268 <!--<module>commons-testing-junit4-mongodb</module> -->
269 </modules>
270
271 <profiles>
272 <profile>
273 <id>java9</id>
274 <activation>
275 <jdk>9</jdk>
276 </activation>
277 <properties>
278 <!-- LANG-1265: allow tests to access private fields/methods of java.base classes via reflection -->
279 <argLine>-Xmx512m --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens
280 java.base/java.lang=ALL-UNNAMED</argLine>
281 <!-- versions below 3.0.0 do not work with java 9 -->
282 <commons.javadoc.version>3.0.0</commons.javadoc.version>
283 <!-- coverall version 4.3.0 does not work with java 9, see https://github.com/trautonen/coveralls-maven-plugin/issues/112 -->
284 <coveralls.skip>true</coveralls.skip>
285 </properties>
286 </profile>
287
288 </profiles>
289
290 </project>