Thursday, June 25, 2015

Atlassian Plugin Development

My Goal is to write a Atlassian STASH plugin.
Before getting started into plugin development, I need to install Atlassian plugin SDK.

I just started with the URL https://developer.atlassian.com/docs/getting-started/set-up-the-atlassian-plugin-sdk-and-build-a-project

My development environment is Windows and it  installed Atlassian plugin SDK under C:\Users\SBGurusiddappa\atlassian-plugin-sdk
  • This has bundled a maven 3.2.1 and it got a maven repository under it.
The  SDK got wrapper bash scripts (atlas commands), which are really cool.
The below atlas command can start a test instance of Jira
    atlas-run-standalone --product jira
This really cool to deploy and test the Plugin on Jira test instance.

Jira Plugin Development Highlights


  • Install JDK
  • Install Atlassian SDK

Running Jira Test Instance

  • Mkdir c:\atlastutorial
  • atlas-run-standalone --product jira
  • Access test jira instance at http://localhost:2990/jira   (login=admin password=admin)
  • Projects -> Create New Project -> Test Project (TEST)
  • Ctrl-Z  -> Gracefully shutdown JIRA
  • Restart JIRA standalone. (  atlas-run-standalone --product jira)

Creating a Jira Plugin

  • cd c:\atlastutorial
  • atlas-create-jira-plugin (Enter groupID, artifactId, version, package,etc)
  • Examine the plugin skeleton (src\main\resources\atlassian-plugin.xml - This file is the descriptor. It defines the plugin modules your plugin uses)

Load the helloworld plugin into Jira

  • atlas-run
  •  Access http://localhost:2990/jira  -> Administration ->  Add-ons -> Manage Add-ons -> Locate the helloworld plugin listings in User-installed Add-ons category.

Setup Eclipse IDE

  • atlas-mvn eclipse:eclipse (to make helloworld ready to be imported into Eclipse)
  • File > Import > General > Existing Projects into Workspace > Next
  • Select root directory > Browse > Your Atlassian plugin folder should appear under Projects.
  • Finish

2 comments:

Unknown said...

I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Atlassian
, kindly contact us http://www.maxmunus.com/contact
MaxMunus Offer World Class Virtual Instructor led training on in Atlassian We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
For Demo Contact us:
Name : Arunkumar U
Email : arun@maxmunus.com
Skype id: training_maxmunus
Contact No.-+91-9738507310
Company Website –http://www.maxmunus.com


Ram Niwas said...

Its really nice and informative post.. Thanks for sharing

Jira Training