How to configure your Clover license

このページの内容

お困りですか?

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

コミュニティに質問

Clover has been open-sourced and it's no longer possible to generate new evaluation licences. The following instruction is applicable for customers who obtained a license key (commercial, academic or community one) prior to open-sourcing Clover. In such case the license can downloaded from my.atlassian.com.

In case you would like to use an open-sourced Clover (which does not require a license key) you can build it from sources or search for binaries prepared by the community.

Configuring your Clover license

This page contains instructions for configuring the license file in all versions of Clover.

Installing a license for Clover-for-Ant

  1. To configure your clover.license file, do one of the following:
    • Place your clover.license file in CLOVER_HOME/lib; or
    • Place the license file on the Java Classpath that will be used to run Clover; or
    • Place the license file on the file system somewhere, and then set the Java System Property clover.license.path to the absolute path of the license file.
  2. If you are not finished, carry on with the Clover-for-Ant installation. Enjoy using Clover.

Installing a license for the Clover-for-Maven plugin

  1. Configure your license. You can either:

    1. add it in your .m2/settings.xml file (so that it will become available for all projects running on a given machine): 

      <profiles>
          <profile>
            <id>my-clover-profile</id>
            <activation>
              <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
               <!-- You can define the path to a license file: -->
               <maven.clover.licenseLocation>/path/to/clover.license</maven.clover.licenseLocation>
      
      		 <!-- Or you can embed license key (remember to keep newline characters): -->
               <maven.clover.license><![CDATA[
                  ...
               ]]></maven.clover.license>
            </properties>
         </profile>
      </profiles>
      
    2. or add it in your pom.xml file:

      <build>
          <plugins>
              <plugin>
                  <groupId>com.atlassian.maven.plugins</groupId>
                  <artifactId>maven-clover2-plugin</artifactId>
                  <configuration>
                      <!-- Define a path to a license file: -->
                      <licenseLocation>/path/to/clover.license</licenseLocation>
          
                      <!-- Or embed a license key (remember to keep newline characters): -->
                      <license><![CDATA[
                          ...
                      ]]></license> 
                  </configuration>
              </plugin>
          </plugins>
      </build>
  2. If you are not finished, carry on with the Clover-for-Maven configuration. Enjoy using Clover.

Installing a license for the Clover-for-Eclipse plug-in

  1. Open your valid trial, purchased or Open Source license file for Clover.
  2. Within Eclipse, select from the menu "Window | Preferences" and click on Clover > License.
  3. Paste the contents of your license file into the license text area or select your license file by clicking "Load...".
  4. Click Apply. The license summary should now display status, type and message consistent with the type of license you entered.
  5. Click OK to close the window.
  6. If you are not finished, carry on with the Clover-for-Eclipse Installation. Enjoy using Clover.


Installing a license for the Clover-for-IDEA plug-in

  1. Open the Clover license dialog in IDEA. Go to 'File > Settings > IDE Settings > Clover License'. Click 'Load' and select the 'clover.license' file you just downloaded. Close the window.
  2. You're ready to use Clover-for-IDEA. See Clover-for-IDEA User's Guide to learn Clover's features.
最終更新日: 2018 年 1 月 16 日

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

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