Fork me on GitHub

Comparing against a specific version

By default, the Clirr Maven Plugin compares the current code against the latest released version, which is lower than the current version. This is, because the parameter comparisonVersion has the default value (,${project.version}). This parameter can be changed, if you want to compare your code against a particular version:

<project>
  <build>
    <plugins>
      ...
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>clirr-maven-plugin</artifactId>
        <version>2.8</version>
        <configuration>
          <!-- Compare the current code against version 1.2 -->
          <comparisonVersion>1.2</comparisonVersion>
        </configuration>
      </plugin>
      ...
    </plugins>
  </build>
</project>

Likewise, for generating the report:

<project>
  <reporting>
    <plugins>
      ...
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>clirr-maven-plugin</artifactId>
        <version>2.8</version>
        <configuration>
          <!-- Compare the current code against version 1.2 -->
          <comparisonVersion>1.2</comparisonVersion>
        </configuration>
      </plugin>
      ...
    </plugins>
  </reporting>
</project>