Documentation for JIRA 4.0. Documentation for other versions of JIRA is available too.

To make any substantial modifications or additions to JIRA's source, you should read Building JIRA from Source. This implies building a WAR distribution and deploying this to your Application Server.

Making a Single Class Patch

This guide describes how to make a source code modification to a single class file.

  1. Download and install maven 1. Make sure to use 1.0.1, not 1.1.
  2. Download JIRA source
  3. CD to the expanded directory, then into the jira directory
  4. Run one of the following, depending on your preferred IDE:
    maven idea
    
    OR
    maven eclipse
    
  5. Open the resulting project
  6. From your IDE, build the project.
  7. From your IDE, open and compile a file. The compiled file will appear in the /target/classes... directory.

Deploying the Patch

To deploy a patch, drop the file in the classpath from <jira-install>/atlassian-jira/WEB-INF/classes. For example, if you compile the class:

com.atlassian.jira.appconsistency.integrity.check.SearchRequestRelationCheck

It'll be available from:

/target/classes/com/atlassian/jira/appconsistency/integrity/check/SearchRequestRelationCheck.class

And to deploy it, place it in:

<jira-install>/atlassian-jira/WEB-INF/classes/com/atlassian/jira/appconsistency/integrity/check/SearchRequestRelationCheck.class

The restart JIRA.

  • No labels