slavkap commented on pull request #6007:
URL: https://github.com/apache/cloudstack/pull/6007#issuecomment-1085820131


   Hi @rohityadavcloud, thank you for your advice! I was thinking about the 
samе and did some tests. Unfortunately, there are few CloudStack limitations on 
this. I've built a fat jar with the StorPool driver in it and tried to shade 
it, but I got this error:
   
   > java.io.IOException: Resource 
[jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.17.0.0-SNAPSHOT.jar!/META-INF/cloudstack/storage-volume-storpool/module.properties]
 and [jar:file:/usr/share/cloudstack-m
   
anagement/cloud-plugin-storage-volume-storpool-4.17.0.0-SNAPSHOT.jar!/META-INF/cloudstack/storage-volume-storpool/module.properties]
 do not appear to be the same resource, please ensure the name property is corr
   ect or that the module is not defined twice
   
   I had to remove the resource directory (all the module information) from the 
new jar, and it worked but is this the correct way to shade the StorPool driver 
from the fat jar?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to