Book Image

Mastering Apache Maven 3

Book Image

Mastering Apache Maven 3

Overview of this book

Table of Contents (16 chapters)
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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
         |-src/main/resources/atlassian-plugin.xml
         |- src/test/java/com/packt/samples/jira...