plaid-java
plaid-java copied to clipboard
Plaid Client 9 uses retired Apache Oltu project, which is not supported
The new Plaid client brings in org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.1.
This causes our build to fail, as there are duplicate classes in org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.1 and org.apache.oltu.oauth2:org.apache.oltu.oauth2.common:1.0.1, which is a bug in the Oltu project.
While attempting to report this bug to them to get it fixed, I found that the project is retired and not maintained:
https://attic.apache.org/projects/oltu.html
Please do not depend on unsupported libraries. Consider removing this dependency before taking this library out of beta.
@stephenjayakar FYI -- do we have this on the to-do list for GA?
FWIW it looks like was fixed on the OpenAPI generator side in February, with version 5.0.1 -- I assume we will get the fix the next time we update the version of the OpenAPI generator we are using, although I don't know when we are currently scheduled to do that.
looking at our build script, I see we actually do now use openapi generator 5.1 for Java, which means this issue should now be resolved. @stevenschlansker, are you still seeing this with the latest libraries?
going to close this -- feel free to reopen / refile if it's not fixed
@phoenixy1 , I am not sure how the OpenAPI generator relates; I am simply looking at the declared dependencies of plaid-java and even at version 9.0.0 you can see that it still depends on an outdated version of the abandoned Oltu library: https://search.maven.org/artifact/com.plaid/plaid-java/9.0.0/jar
<dependency>
<groupId>org.apache.oltu.oauth2</groupId>
<artifactId>org.apache.oltu.oauth2.client</artifactId>
<version>${oltu-version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.oltu.oauth2</groupId>
<artifactId>common</artifactId>
</exclusion>
</exclusions>
</dependency>
So I do not think this issue is fixed.
It's even still present directly in the source code: https://github.com/plaid/plaid-java/blob/master/pom.xml#L220 I think this issue was closed quite prematurely and would recommend reopening.
@stevenschlansker this relates to openapi generator because I believe the dependency is being added by openapi generator (https://github.com/OpenAPITools/openapi-generator/pull/8318). according to their release notes, openapi generator fixed this, and we have since upgraded to create the libraries using a version of the generator that has the fix, so I'm not quite sure why this is still happening -- possibly the dependency is just left over and we need to remove it? cc: @stephenjayakar to take a look.
@otherchen do you know why this is happening -- is it just left over / can we manually remove it?