2
Custom Location of the Surefire Report
9
~~ Copyright 2006 The Apache Software Foundation.
11
~~ Licensed under the Apache License, Version 2.0 (the "License");
12
~~ you may not use this file except in compliance with the License.
13
~~ You may obtain a copy of the License at
15
~~ http://www.apache.org/licenses/LICENSE-2.0
17
~~ Unless required by applicable law or agreed to in writing, software
18
~~ distributed under the License is distributed on an "AS IS" BASIS,
19
~~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
~~ See the License for the specific language governing permissions and
21
~~ limitations under the License.
23
~~ NOTE: For help with the syntax of this file, see:
24
~~ http://maven.apache.org/guides/mini/guide-apt-format.html
26
Configuring the Output Location as part of the Project Reports
28
To change the location of the generated output report along with other
29
project reports. The <<outputDirectory>> property of both
30
<<<maven-site-plugin>>> and <<<maven-surefire-report-plugin>>> should be set to the
31
new path. For more information, see the documentation of the
32
{{{http://maven.apache.org/plugins/maven-site-plugin/}Maven Site Plugin}}.
40
<groupId>org.apache.maven.plugins</groupId>
41
<artifactId>maven-surefire-report-plugin</artifactId>
42
<version>2.4.2</version>
44
<outputDirectory>${basedir}/target/newsite</outputDirectory>
48
<groupId>org.apache.maven.plugins</groupId>
49
<artifactId>maven-site-plugin</artifactId>
50
<version>2.0-beta-5</version>
52
<outputDirectory>${basedir}/target/newsite</outputDirectory>
61
Please take note that if the <<outputDirectory>> of the Site Plugin
62
is not configured, the output location of the Surefire report will still
65
* Configuring the Output Location using Standalone Goal
67
To change the location of the generated output report using the standalone
68
goal, the <<outputDirectory>> property should be set to the new path.
71
mvn surefire-report:report -DoutputDirectory=newpath