Closed P-Shivkumar closed 1 year ago
@P-Shivkumar I'm unable to reproduce your issue with this minimal POM:
<?xml version="1.0"?>
<project>
<modelVersion>4.0.0</modelVersion>
<artifactId>test</artifactId>
<groupId>example</groupId>
<version>0.0.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.openapitools.openapidiff</groupId>
<artifactId>openapi-diff-maven</artifactId>
<version>2.0.1</version>
<configuration>
<!-- Reference specification (perhaps your prod schema) -->
<oldSpec>${project.basedir}/petstore_v2_1.yaml</oldSpec>
<!-- Specification generated by your project in the compile phase -->
<newSpec>${project.basedir}/petstore_v2_2.yaml</newSpec>
<!-- Fail only if API changes broke backward compatibility (default: false) -->
<failOnIncompatible>true</failOnIncompatible>
<!-- Fail if API changed (default: false) -->
<failOnChanged>true</failOnChanged>
</configuration>
</plugin>
</plugins>
</build>
</project>
I suspect that there's something in your project's POM file which breaks the plugin (or more specifically the Apache Commons Collections 4.x dependency).
See below for the output of mvn openapi-diff:diff
:
I am also facing the same error any help on this is much appreciated @joschi
@anush0247 Again, I'm unable to reproduce the issue: https://github.com/OpenAPITools/openapi-diff/issues/408#issuecomment-1249320131
Could you post a minimal example project which reproduces the issue?
Closing due to inactivity of the reporter(s).
Hi team,
While using this plugin to get diff of the openapi specs, I am getting this error. Full stack trace I am attaching here.
I have used this plugin as below: