cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Override platform jar with new jar in my extension

rahulverma94
Active Participant
0 Likes
990

Hi Experts,

We are trying to use xmlsec-2.0.5 jar in the extension. But the platform contains xmlsec-1.4.6 and taking precedence. Is there any way to override the platform version of the jar with my own version?

Regards Rahul

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Rahul

Put the jar in a folder called customize under config. For example xmlsec-1.4.6 is under platform/lib

Then you create a the following folder hybris/config/customize/platform/lib and add your jar xmlsec-2.0.5 in this folder and run ant customize

this will copy your jar in platform lib directory, now add this jar to classpath and remove the other one. You can write your own ant task to remove the xmlsec-1.4.6.

Please keep in mind that if any code in platform is using any class from xmlsec-1.4.6, you will start getting jar conflicts or method not available kind of exceptions.

Answers (0)