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 votes

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
Community showcase
Published 50m ago in Jira Ops

Jira Ops Early Access Program Update #2: Let’s talk severity levels

Welcome to your weekly Jira Ops Early access program update, where we’re sharing news and updates on Jira Ops' progress as we work toward our 1.0 release. If you ever want to drop us feedback or idea...

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