diff --git a/maven-plugin/src/main/java/org/infinispan/plugins/proto/compatibility/ProtoCompatibilityMojo.java b/maven-plugin/src/main/java/org/infinispan/plugins/proto/compatibility/ProtoCompatibilityMojo.java index c5c1c7e6..4735f480 100644 --- a/maven-plugin/src/main/java/org/infinispan/plugins/proto/compatibility/ProtoCompatibilityMojo.java +++ b/maven-plugin/src/main/java/org/infinispan/plugins/proto/compatibility/ProtoCompatibilityMojo.java @@ -127,7 +127,7 @@ private void checkRemoteCompatibility(ProtoLock currentState) throws IOException getLog().info(String.format("Checking backwards compatibility check against remote file '%s'", file)); try (InputStream is = new URL(file).openStream()) { ProtoLock remoteLockFile = ProtoLock.readLockFile(is); - currentState.checkCompatibility(remoteLockFile, true); + remoteLockFile.checkCompatibility(currentState, true); } getLog().info(String.format("Backwards compatibility check against remote file '%s' passed", file)); }