Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading a Custom Macro to Confluence

Neha Sharma
Contributor
February 3, 2019

Hi,

I've created a new custom macro following the link - https://developer.atlassian.com/server/confluence/creating-a-wikipedia-macro/ .

According to the instructions in the above link, the macro is tested using the "atlas-run" command which installs a confluence locally and runs the macro.

Now my requirement is - I want to install it to my existing confluence application. Can someone please suggest how it can be done ? 

 

Thanks,

Neha

2 answers

1 accepted

1 vote
Answer accepted
Rambabu Patina _Appfire_
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.
February 3, 2019

Hi @Neha Sharma

Either you can install the developed custom macro through:

In Confluence Admin GUI:

Confluence Administration --> Manage apps --> Upload App --> Choose your add-on jar file and install

(or)

In the command line:

atlas-install-plugin  -p 80 --server <your_server_url> --context-path “<if_contextpath_any>” --username <admin_user> --password <admin_password>

I recommend to first install and check your macro in the development environment.

Thanks,
Ram.

Neha Sharma
Contributor
February 3, 2019

Thanks @Rambabu Patina _Appfire_ for that quick response. I'll try it. I thought that method was only for uploading add-ons or plugins.

Thanks again. :) 

Neha Sharma
Contributor
February 5, 2019

It worked. Thanks @Rambabu Patina _Appfire_

0 votes
Tobias Anstett _K15t_
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.
February 3, 2019

Hi @Neha Sharma,

a) If you want to build the app for a production instance, you should use "atlas-mvn package" to create a build.

b) If you want to use a standalone instance for development, I suggest to configure quick-reload -> https://developer.atlassian.com/server/framework/atlassian-sdk/automatic-plugin-reinstallation-with-quickreload/ to speed up your development.

Best, Tobias

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events