cancel
Showing results for 
Search instead for 
Did you mean: 

how to update libraries in Nuxeo IDE, so that the server will update its sources as well?

patco_
Champ in-the-making
Champ in-the-making

Hi,

I developed some jar library, and put it as user library in Nuxeo IDE.

Now, when I update my library, and replace the previous one, the changes are not taken into account by the server (even though I restarted it).

What should I do to force Nuxeo to take the new library into account?

Thanks,

Patrick

9 REPLIES 9

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

Did you

patco_
Champ in-the-making
Champ in-the-making

Hi,

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

So you have to reinstall your Eclipse 😄

More seriously. A 3rd part library is considered as immutable and is put in static classloader. If you want reload it you can try to remove it from the preferences and add it again and restart the server.

But you can try also to just add the nuxeo nature on your project :

  • right click on the project > Nuxeo > Add Nuxeo nature
  • Add it into your deployment definition

It should hot reloads your project. But a next version of Nuxeo IDE should break this.

I stopped, removed the library from the user preferences, started the server (with errors). Put the library back in the user preferences. Restarted ... it still uses the old library!

I even tried to give a new name to the library ... without sucess!

Did you try to reinstall your sdk ?

Yes, I tried ... but even that was not enough.

Really strange.

patco_
Champ in-the-making
Champ in-the-making

It may be only for openJdk (I'm on linux), as apparently there is no cache for libraries with the jdk from Oracle.

I started this morning, and the new version was automatically taken into account. So maybe jar are refreshed every day.

Something else that seemed to work was to refresh the folder in eclipse, but I have to try it out again.