It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to modify jira source?

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

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)

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)

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
Community showcase
Posted in Jira

Calling all Jira Cloud users! Give us feedback on our exploration of a new navigation.

Hi everyone! My name’s Matt and I’m a product manager at Atlassian. I work in the navigation & findability space for all our Jira Cloud products. We’ve been working on trying to improve the exp...

811 views 13 12
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you