project with clover war file and without clover

alex z November 29, 2012

Hello, I would like build two war files from maven. First will be contain clover instrumentation, second will be simple war file(without clover). I create clover profile in the my pom.xml, but i had one war file with clover. How i can do two different war files?

1 answer

0 votes
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 7, 2013

The best option is to run two builds, actually. For instance:

  • mvn clean install
  • mvn clean install -Pwith-clover

Instead of using a profile you could also run Clover goals directly, e.g.:

  • mvn clean clover2:setup install clover2:aggregate clover2:clover

You could also use maven-invoker-plugin and define an invoker.properties file with 'invoker.goals' and 'invoker.goals.2'. Thanks to this you could call build twice internally. See maven-invoker-plugin documentation for more details.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events