On 03/28/2012 05:46 PM, sebb wrote: > On 28 March 2012 15:46, Gilles Sadowski <gil...@harfang.homelinux.org> wrote: >>>> Hello. >>>> >>>> Please disable the default running of cobertura in "mvn site". It is >>>> unbearably slow: e.g. on my machine, "FastMathTest" takes 1,544 seconds >>>> (that's a comma there; i.e. ~25 minutes!). >>>> >>>> If on-demand disable/enable switches are not (yet) available from maven's >>>> command-line options, could we have a new target that would run those very >>>> time-consuming reports (something like "mvn full-site")? >>>> Alternatively, "mvn site" could produce the full thing, but we would have a >>>> new "mvn quick-site" for generating report like "CheckStyle" and >>>> "FindBugs". >>>> >>> >>> Did not test it (can not use mvn here :-( ), but this should help >>> >>> mvn site -Dcobertura.runtests=false >> >> Unfortunately, that's not it: Cobertura still runs the tests. :-( > > -Dcobertura.skip > > is what the documentation says. > > http://mojo.codehaus.org/cobertura-maven-plugin/instrument-mojo.html
this seams to just skip the instrumentation, but the tests are still executed, and generate an error afterwards. Skipping the tests in general also prevent the cobertura run, as it is executed as part of the test phase afaik: mvn site -Dmaven.test.skip=true -Dcobertura.skip=true worked for me now (the cobertura.skip is still necessary, otherwise the cobertura report is created as part of the site and fails). Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org