How to change artifactID

I have run mvn clover2:instrument command on my project . I creates caplan snpashot 9.10 -clover.jar and war.

snpashot 9.10 is the name added by my pom. -clover gets added when we run above trget.

How can i get the same version of artifact i.e. snpashot 9.10 when I run above command. I do not need -clover which is getting appeneded after this when I run cl;over2:instrument

1 answer

0 vote

If you use the clover2:instrument goal, then Clover forks a custom lifecycle in order to instrument files (it was designed in such way for safety reasons so that developer won't deploy or publish instrumented code by accident). That's why an instrumented JAR file has a "-clover" suffix.

There is a second goal available - clover2:setup which works similarly to clover2:instrument, but it does not fork a custom lifecycle and puts instrumented sources into ${build.directory}/clover/src-optimized and test-src-optimized directories. These directories are later set as the project's source and test source directories used for subsequent maven phases.

Using clover2:setup you will get a JAR file without -clover suffix, but please keep in mind that clover2:setup shall not be used during a release build - unless you want to give customer a "cloverized" code :-)

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 Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

52 views 0 4
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