Luntbuild sets the system property "artifactsDir" which you can use. Add
the following property to your pom:
<artifactsDir>${project.build.directory}</artifactsDir>
Add the following to your surefire plugin configuration:
<reportsDirectory>${artifactsDir}/surefire-reports</reportsDirectory>
For a multi-module project you could do:
<reportsDirectory>${artifactsDir}/surefire-reports/${artifactId}</reportsDirectory>
Luntbuild overrides the property in your pom, so that the reports end up
in the right place.
Reinhard
Norbert Sensen schrieb:
Hallo,
we are using maven-projects and use luntbuild for continuous integration.
So, we want to set the "Surefire report directory" while calling maven.
While reading the documentation I expected that calling maven via
mvn -DreportsDirectory=/our/report/dir test
would do the job.
But unfortunately, the argument "-DreportsDirectory=/our/report/dir" seems
to have no impact at all,
i.e. the reports are still placed inside
I have tried a couple of things but found no solution.
Can anybody help me? How can I configure the destination directory of
surefire?
What I really want is the following possibility:
Calling mvn without any special arguments, the surefire-reports should be
placed in the standard directory.
But it should be possible to set the surefire report directory by using any
argument while calling maven.
Yours,
Norbert Sensen
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]