# Diffblue Maven Repository

As of release 2025.07.01, Diffblue uploads the following release artifacts to a Diffblue-hosted Maven repository:

Jars for using as a Maven dependency:

* Cover Annotations
* Cover Buildsystem Ant
* Maven and Gradle plugins for Cover Optimize

Zip files for product distribution:

* Cover Cli
* Cover Plugin
* Cover Reports (application only)

## Artifactory

In order to utilize this you can add this Maven repository to your Artifactory instance.\
In Artifactory:

* Add a new Remote, Maven repository and assign a sensible key such as `maven.diffblue.com`
* Use the url `https://maven.diffblue.com/release`, no credentials are needed.
* Ensure only the "Handle Releases" checkbox is checked, and that "Handle Snapshots" is un-checked. Other options can be left as the default in all other tabs as shown below.

  <figure><img src="/files/IAEs2dOgQNG7PfSKF22t" alt=""><figcaption></figcaption></figure>
* Save the changes and the repository is now ready to use.
* You can now add this repository to your project as an external repository using a configurations such as the following for an artifact configured in your pom.xml:

  ```xml
    <repositories>
      <repository>
        <id>artifactory</id>
        <name>Diffblue</name>
        <url>http://my-artifactory-domain:8082/artifactory/maven.diffblue.com</url>
      </repository>
    </repositories>
  ```

  \
  Or this configuration for a plugin:

  ```xml
    <pluginRepositories>
      <pluginRepository>
        <id>artifactory</id>
        <name>Diffblue</name>
        <url>http://my-artifactory-domain:8082/artifactory/maven.diffblue.com</url>
      </pluginRepository>
    </pluginRepositories>
  ```

  \
  \
  Then you can add a plugin or dependency to your pom file such as this example for the cover-maven-plugin used for Cover Optimize:

  ```xml
        <plugin>
          <groupId>com.diffblue.cover</groupId>
          <artifactId>cover-maven-plugin</artifactId>
          <version>[diffblue-cover-version]</version>
          ...
        </plugin>
  ```

### API

To retrieve artifacts from Artifactory that are not distributed as dependencies you can use the Artifactory API. You will need authentication with your own Artifactory server and know the exact path to the artifact. Here is an example command to download the 2025.07.01 CLI from an Artifactory instance hosted at `my-artifactory-domain` :\
`curl -u admin:password "http://my-artifactory-domain:8082/artifactory/maven.diffblue.com/com/diffblue/cover/cover-cli/2025.07.01/cover-cli-2025.07.01.zip"`` ``--output cover-cli-2025.07.01.zip`

The repository is not browsable so you will need to know the exact paths for specific artifacts.

The paths for artifacts likely to be downloaded via the API are:

* CLI: `com/diffblue/cover/cover-cli/<CoverVersionNumber>/cover-cli-<CoverVersionNumber>.zip`
* IntelliJ Plugin: `com/diffblue/cover/cover-plugin/`\
  `intellij-<IntelliJVersionNumber>/<CoverVersionNumber>/intellij-<IntelliJVersionNumber>-<CoverVersionNumber>.zip` , e.g. for IntelliJ 2025.1 and Cover 2025.08.01: `com/diffblue/cover/cover-plugin/`\
  `intellij-2025.1/2025.08.01/intellij-2025.1-2025.08.01.zip` Note that not all IntelliJ versions are supported by every Cover version. More information [here](/get-started/specs-and-reqs.md#supported-intellij-versions).
* Cover Reports: `com/diffblue/cover/cover-reports/<CoverVersionNumber>/cover-reports-<CoverVersionNumber>.zip`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cover-docs.diffblue.com/updates-and-upgrades/diffblue-maven-repository.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
