Configure oldVersion and newVersion for comparison
masterTo perform a comparison, you must specify which two versions are being compared using the <oldVersion> and <newVersion> elements. Both elements support two types of identification:
<dependency>: Specifies an existing Maven dependency. You can optionally include a<classifier>inside the<dependency>element.<file>: Specifies a direct path to a file (e.g., a JAR file in the build directory).
Example of using a dependency for the old version and a local file for the new version:
<oldVersion>
<dependency>
<groupId>japicmp</groupId>
<artifactId>japicmp-test-v1</artifactId>
<version>0.26.1</version>
<type>jar</type>
</dependency>
</oldVersion>
<newVersion>
<file>
<path>${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging}</path>
</file>
</newVersion>