We have developed a plugin which is using a jar file. On eclipse I added the jar file on the build path. But that won’t work if I develop the confluence plugin (if it does, please advise how). So I added to Installation Directory/confluence/WEB-INF/atlassian-bundled-plugins. It works, but intermittently and I have to restart the service. Could you please advise how to add the jar file?
Are you using Maven? You should just add the jar in your pom.xml, with
<scope>compile</scope>. Maven will unzip your jar and mix its classes with the other classes of your plugin.
Since your jar is not a plugin, it shouldn’t work when you put it into confluence/WEB-INF/atlassian-bundled-plugins.