cancel
Showing results for 
Search instead for 
Did you mean: 

How to add external lib to Hybris

Former Member

Since project need, I need to make a cron job ftp send out a file to ftp server, so I need to import an third party lib, lets say apache common-nio for example, so what I should do?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member664713
Active Participant

Hi ,

In your custom extension , add the maven dependency in external-dependencies.xml and add the jar name in unmanaged-dependencies.txt file in your extension.

Thanks,

Venki

former_member618655
Active Participant
0 Kudos

Hi If you wish not to use maven for your project, you can download the jar file. Go to the lib directory directly under your project and copy the jar file. Then, if you are using ee, right click on that jar file, a pop-up menu will open up, from the pop-up menu, hover over Build Path and click an 'Add to Build Path'.

Alternatively, if you wish to use spring integration to copy the file on the ftp server, please look at google-local-upload-spring.xml file in acceleratorservices extension. It uses spring integration for file uploads.