project with clover war file and without clover

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

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
Community showcase
Posted Dec 10, 2018 in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

193 views 5 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you