Hi everyone, I'm developing an Artifactory plugin and I decided to write most of it in Java. I created a Gradle project that compiles the Java code into a jar archive and deploys it on the filesystem of the Artifactory server (under ~/repo) . This directory is also defined as a filesystem resolver in Grape configuration file so I'm able to resolve the jar using a Grape annotation in my Artifactory plugin script (gets deployed to /etc/plugin directory).
I also configured Artifactory to reload the plugin scripts by setting a positive value for the 'artifactory.plugin.scripts.refreshIntervalSec' system property. However, it seems that though the plugin script is successfully reloaded and Grape does retrieve the new version of my jar into its Ivy cache, at runtime still the old version of the jar is used. I suppose that the ClassLoader that Grape adds the jar url is not getting re-created when plugin scripts are reloaded. I saw that Grape has some options about configuring the classloader, but I'm not sure how to use them and whether it is possible to do this at all. I'll appreciate any advice on how to handle this. I'm using Artifactory 2.6.4. Thanks, Detelin -- View this message in context: http://forums.jfrog.org/Reload-of-Artifactory-plugin-scripts-tp7578369.html Sent from the Artifactory - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
