Documentation for JIRA 5.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 and deploying this to your Application Server.
The information on this page does not apply to JIRA OnDemand.
This guide describes how to make a source code modification to a single class file.
PATH
and M2_HOME
environment variables where you install Maven (and its /bin directory for the PATH).jira-project
subdirectory.Run one of the following, depending on your preferred IDE:
mvn idea:idea
または
mvn eclipse:eclipse
target/classes
directory of the maven module that you are working on. If you are working with JIRA's core classes, this is likely to be in /jira-project/jira-components/jira-core/target/classes
To deploy a patch, drop the file in the classpath from <jira-install>/WEB-INF/classes
. For example, if you compile the class:
com.atlassian.jira.appconsistency.integrity.check.SearchRequestRelationCheck
...it will be available from:
/jira-project/jira-components/jira-core/target/classes/com/atlassian/jira/appconsistency/integrity/check/SearchRequestRelationCheck.class
To deploy this class, place it in:
<jira-install>/WEB-INF/classes/com/atlassian/jira/appconsistency/integrity/check/SearchRequestRelationCheck.class
...then restart JIRA.