how to install a confluence plugin by copying jar file?

hanwenguo January 8, 2018

Hi

I am writing a script of automatic confluence installation. I have found out how to install it with unattended mode.

 

Base on this, I was wondering that if it is possible to encapsulate some plugins by writing some script. Like copying jar file to certain place?

 

Many thanks.

2 answers

0 votes
Savvas Radevic May 12, 2024

https://confluence.atlassian.com/confkb/automate-plugin-installation-in-confluence-1018271880.html

 

Purpose

If you are looking to automate Confluence deployments, you may also like to include third-party apps that are used extensively by users. This article explains steps on how to automate plugin installation in Confluence.

Solution

  • Grab the .jar files of the plugins in concern from their Atlassian Marketplace page
  • If they are in .obr format, convert it to a zip file and extract the jar file from inside this folder.
  • Copy the jar file and paste it in <Confluence-install>/confluence/WEB-INF/atlassian-bundled-plugins folder
  • Restart Confluence

 

 

These plugins will be installed as system plugins. You can disable the plugin from the UI, but cannot uninstall it. If you need to uninstall it in the future, the .jar file needs to be removed from the atlassian-bundled-plugins folder followed by Clearing the plugins cache.

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 9, 2018

You can drop add-ons into the plugins directory and restart Confluence, but there are some add-ons that don't work if you do it that way.

I would strongly recommend not doing this though, you should use the API to install add-ons (via the GUI)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events