JPsOneSpan

Can we exclude some of the OSS Java SDK dependencies

0 votes

We put below in our application pom.xml:

    <dependency>         <artifactId>sdk</artifactId>         <groupId>com.silanis.esl</groupId>         <version>11.47</version>     </dependency>  

The resulting Maven WAR file is quite large. We already have WebLogic. Can we exclude some of the below 10 dependencies?

SDK Dependencies

Regards,

Jianping Xu (J.P.)

Bonterra (formerly, CyberGrants)


Approved Answer

Reply to: Can we exclude some of the OSS Java SDK dependencies

0 votes

Hi Jianping,

 

Thanks for your post! From my test, if I defined the OSS Java SDK like below in a pom file:

        <dependency>             <groupId>com.silanis.esl</groupId>             <artifactId>sdk</artifactId>             <version>11.47</version>                               </dependency>

I can find below assembly dependencies via IDE:

5-24-1

PS: I think it's slightly different from what you saw from maven website, as the artifact suggested to use is sdk (vs esl-java-sdk).

Hence if you add a exclusion tag to the pom file, it should exclude the dependency:

        <dependency>             <groupId>com.silanis.esl</groupId>             <artifactId>sdk</artifactId>             <version>11.47</version>             <exclusions>                 <exclusion>                     <groupId>io.netty</groupId>                     <artifactId>netty-all</artifactId>                 </exclusion>             </exclusions>         </dependency>

Please fully test to make sure these potential changes won't affect your code and let me know if this works for you!

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Can we exclude some of the OSS Java SDK dependencies

0 votes

Thank you Duo! Will do that and fully test.

Regards,

Jianping Xu (J.P.)

Bonterra (formerly, CyberGrants)


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off