'ProGuard - Obfuscation working in only one development machine

We are using the proguard-maven-plugin to obfuscate a jar file. After some trials we managed to make it work and produced a fully working obfuscated jar file with the command: mvn clean package

Now the weird part: when launching the same project with the same maven version and the same java version in any another machine proguard always fails with this error

[proguard] ProGuard, version 7.2.0-beta4
[proguard] Exception in thread "main" java.lang.NoSuchMethodError: 'void proguard.io.ClassReader.<init>(boolean, boolean, boolean, boolean, proguard.classfile.util.WarningPrinter, proguard.classfile.visitor.ClassVisitor)'


Definitions
A: the Windows 10 machine where proguard works
B: a Windows 10 machine (same version and same model of A)

What we tried:

  • Fresh clone from git in new directory for both A and B. A still worked, B didn't work
  • Deleting maven repository folder.m2/repository in both A and B and let maven redownload dependencies. A worked, B didn't
  • Copying over the jdk folder from A to B, referencing the new jdk. B didn't work
  • Copying over the maven folder from A to B, referencing the new maven folder. B didn't work
    The first time the project was launched through IntelliJ Idea but launching the maven command yielded the same results so im not including the attempts relative to Idea.

I don't think that including the pom.xml would be of any help giving the fact that we tried cloning the project fresh from git and the issue persisted.

We also tried most of these steps in a newly installed ubuntu VM

I don't have any other idea on how to try to solve this issue.
Is there anything we overlooked and that we can check?
Any help would be greatly apprecciated
Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source