JIRA plugins with the archetype plugin

JIRA is an issue-tracking system developed by Atlassian. It is quite popular among many open source projects. One of the extension points in JIRA is its plugins. Here, we will see how to generate a skeleton JIRA plugin using jira-plugin-archetype developed by Atlassian:

$ mvn archetype:generate -B
         -DarchetypeGroupId=com.atlassian.maven.archetypes
         -DarchetypeArtifactId=jira-plugin-archetype
         -DarchetypeVersion=3.0.6
         -DgroupId=com.packt.samples 
         -DartifactId=my-jira-plugin 
         -Dpackage=com.packt.samples.jira 
         -Dversion=1.0.0 
         -DarchetypeRepository=
      http://repo.jfrog.org/artifactory/libs-releases/

This command will produce the following project template:

my-jira-plugin |-pom.xml |-README |-LICENSE |-src/main/java/com/packt/samples/jira/MyPlugin.java ...

Get Mastering Apache Maven 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.