How to modify jira source?

srinivasp
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2012

Till now i worked on custom plugin development but this time i need to modify the following file /jira-project/jira-components/jira-core/src/main/java/com/atlassian/jira/web/action/util/sharing/SharedEntitySearchViewHelper.java in order to increase the dashboard filter search limit from 10 to more.

Appreciate if someone could let me know the approach to modify the above jira source and to deploy it as i never did that before.

1 answer

1 accepted

3 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2012

Start at http://confluence.atlassian.com/display/JIRA/Building+JIRA+from+Source

While it's possible to compile individual classes or groups of classes and replacing them in your Jira install, it's worth looking through this page to get a good feel for the build in general (and if you hack stuff in this way, you also get tests run and so on)

srinivasp
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2012

I am getting the following error.

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Unable to execute mojo

Embedded error: Missing:

----------

1) com.sun.jmx:jmxri:jar:1.2.1

Try downloading the file manually from the project website.

Then, install it using the command:

mvn install:install-file -DgroupId=com.sun.jmx -DartifactId=jmxri -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:

mvn deploy:deploy-file -DgroupId=com.sun.jmx -DartifactId=jmxri -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:

1) com.atlassian.support:stp:atlassian-plugin:2.9.3

2) log4j:log4j:jar:1.2.15

3) com.sun.jmx:jmxri:jar:1.2.1

2) com.sun.jdmk:jmxtools:jar:1.2.1

Try downloading the file manually from:

http://java.sun.com/products/JavaManagement/download.html

Then, install it using the command:

mvn install:install-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:

mvn deploy:deploy-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:

1) com.atlassian.support:stp:atlassian-plugin:2.9.3

2) log4j:log4j:jar:1.2.15

3) com.sun.jdmk:jmxtools:jar:1.2.1

----------

2 required artifacts are missing.

for artifact:

com.atlassian.support:stp:atlassian-plugin:2.9.3

from the specified remote repositories:

atlassian-plugin-sdk (file://C:/atlassian-plugin-sdk-3.7.2/repository),

central (http://repo1.maven.org/maven2),

atlassian-public (https://m2proxy.atlassian.com/repository/public)

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2012

Have you tried following the suggestions in the error messages?

(This happens because Sun require you to accept licenses on some stuff, so they can't be hosted in other repositories)

Suggest an answer

Log in or Sign up to answer