Can we exclude some of the OSS Java SDK dependencies
Monday, May 23, 2022 at 02:29pmWe 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?
Reply to: Can we exclude some of the OSS Java SDK dependencies
Tuesday, May 24, 2022 at 09:15amHi 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:
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
Reply to: Can we exclude some of the OSS Java SDK dependencies
Tuesday, May 24, 2022 at 09:18amThank you Duo! Will do that and fully test.