on ‎2018 Sep 13 9:12 AM
Hi there! Recently I noticed that external-dependencies.xml web modules doesn't work for web moduls in Hybris 1808. Has anybody faced with such isuue and maybe have approach how to fix it.
Thanks in advance for your answers!
Request clarification before answering.
To make it work (just tested with a fresh custom extension on 1808) make sure that usemaven="true" in the file customextension/extensioninfo.xml
Then add all external dependencies in customextension/web/webroot/WEB-INF/external-dependencies.xml
And they will be downloaded into the customextension/web/webroot/WEB-INF/lib folder during the next build ( ant all or ant build)
But beware:
transitive dependencies are NOT downloaded. You have to declare them, too.
the content of lib folders is deleted before downloading the dependencies. so make sure to declare all dependencies in the respective external-dependencies.xml files
Since all extensions share a common classpath ( basically all extension/lib folders), make sure you don't accidently introduce an incompatible version of a library.
But the customextension/web/webroot/WEB-INF/lib folder is not shared. Here you can do whatever you want
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for the answer! I've just figured out why it was not working for me. It was due to not passing conditions in makrodef "updateLibFolder" in mavenTasks.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Dmytro, What you had to change in mavenTasks.xml file?
I have added a external-depencies.xml file within customextension/web/webroot/WEB-INF/external-dependencies.xml.
Changed the flag, useMaven=true.
Build is successful. Downloading all required jar files into customextension/web/webroot/WEB-INF/lib directory.
when I try to use the desired class, I am getting following error:
EnableWebSocketMessageBroker cannot be resolved to a type
i didn't modify anything in mavenTasks.xml
let me know your settings.
thanks.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.