Maven is deploying instrumented jars

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

A Maven project with clover-maven-plugin configured with the clover:setup goal.

When "mvn deploy" command is used, Maven deploys a JAR which contains classes instrument by Clover.

 

原因

The clover:setup goal performs instrumentation in the main life cycle build. This is normal behavior.

 

ソリューション

You can use:

  • "clover:instrument" goal, which forks a parallel build life cycle and creates a second set of artifacts with "-clover" suffix; thanks to this non-instrumented and instrumented code is separated; however artifacts having custom classifiers may not be installed correctly (see CLOV-1668)
  • "clover:instrument-test" goal, which forks a parallel life cycle, but runs it till the "test" phase; thus instrumented artifacts are not installed
  • "clover:setup" goal configured in a profile and execute two separate builds (for example "mvn clean install -Pwith.clover" and "mvn clean deploy")

 

最終更新日: 2015 年 12 月 8 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.