~ubuntu-branches/ubuntu/precise/surefire/precise

« back to all changes in this revision

Viewing changes to maven-surefire-report-plugin/src/site/apt/examples/report-custom-location.apt

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2011-10-10 20:42:16 UTC
  • mfrom: (2.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20111010204216-cemva69wkagf4fay
Tags: 2.10-1
* Team upload.
* New upstream release.
* Refresh and remove unneccesary patches.
* Add Build-Depends on libsurefire-java and
  libmaven-common-artifact-filters-java.
* Drop outdated Maven artifact surefire-junit.
* Provide new Maven artifacts: surefire-junit3, maven-surefire-common,
  common-junit3, common-junit4, surefire-junit47 and surefire-testng-utils.
* Fix clean target to allow "two in a row" builds.
* Update Vcs-Browser field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
  ------
2
 
  Custom Location of the Surefire Report
3
 
  ------
4
 
  Allan Ramirez
5
 
  ------
6
 
  July 2006
7
 
  ------
8
 
 
9
 
~~ Copyright 2006 The Apache Software Foundation.
10
 
~~
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
14
 
~~
15
 
~~      http://www.apache.org/licenses/LICENSE-2.0
16
 
~~
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.
22
 
 
23
 
~~ NOTE: For help with the syntax of this file, see:
24
 
~~ http://maven.apache.org/guides/mini/guide-apt-format.html
25
 
 
26
 
Configuring the Output Location as part of the Project Reports
27
 
 
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}}.
33
 
 
34
 
+----+
35
 
<project>
36
 
  [...]
37
 
  <reporting>
38
 
    <plugins>
39
 
      <plugin>
40
 
        <groupId>org.apache.maven.plugins</groupId>
41
 
        <artifactId>maven-surefire-report-plugin</artifactId>
42
 
        <version>2.4.2</version>
43
 
        <configuration>
44
 
           <outputDirectory>${basedir}/target/newsite</outputDirectory>
45
 
        </configuration>
46
 
      </plugin>
47
 
      <plugin>
48
 
        <groupId>org.apache.maven.plugins</groupId>
49
 
        <artifactId>maven-site-plugin</artifactId>
50
 
        <version>2.0-beta-5</version>
51
 
        <configuration>
52
 
           <outputDirectory>${basedir}/target/newsite</outputDirectory>
53
 
        </configuration>
54
 
      </plugin>
55
 
    </plugins>
56
 
  </reporting>
57
 
  [...]
58
 
</project>
59
 
+----+
60
 
 
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
63
 
  be the default.
64
 
 
65
 
* Configuring the Output Location using Standalone Goal
66
 
 
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.
69
 
 
70
 
+---+
71
 
mvn surefire-report:report -DoutputDirectory=newpath
72
 
+---+