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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Trello

Get inspired with Trello & earn free Gold

A blank Trello board can be both a beautiful and intimidating thing. How many lists should I have? Is creating 10 labels overkill? How can I best track my progress? Is there a way...

31 views 0 3
Read article

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