The Site Plugin should be configured in the <build> section of the POM,
not in the <reporting> section.
On 2010-06-14 22:27, Anthony Jurado Jr wrote:
>
>
> I googled for an answer with no luck, so I posted this to the user list on
> June 7 but have had no response. I'm hoping somebody on the dev list can
> help.
>
> Using the following configuration, the site reports end up
> C:/opt/builds/releases/${branch}/${module}/siteReports as I expect. The
> test reports, however, keep getting placed under target/surefire-reports.
> I've tried with and without the reportsDirectory and I've tried reversing
> the order of the maven-site-plugin and the maven-surefire-report-plugin
> stanzas inside of plugins.
>
> Can somebody please tell me how I can make the maven-surefire-report-plugin
> put the test reports in a directory that I specify?
>
> <reporting>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-site-plugin</artifactId>
> <version>2.0.1</version>
> <configuration>
> <outputDirectory>C:/opt/builds/releases/${branch}/$
> {module}/siteReports</outputDirectory>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-report-plugin</artifactId>
> <version>2.5</version>
> <inherited>false</inherited>
> <configuration>
> <reportsDirectory>C:/opt/builds/releases/${branch}/$
> {module}/testReports</reportsDirectory>
> <outputDirectory>C:/opt/builds/releases/${branch}/$
> {module}/testReports</outputDirectory>
> </configuration>
> </plugin>
> </plugins>
> </reporting>
>
> Many thanks,
> Tony
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]