Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to configure JIRA codebase with Eclipse or Netbean?

Sayeed Alam
Contributor
June 27, 2011

I tried to configure JIRA with My Eclipse but failed.

Please tell me the steps to perform to configure the JIRA with Eclipes.

I am having the JIRA zip file.

Regards,

Sayeed Alam

NCR Corporation

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Sayeed Alam
Contributor
June 27, 2011

Still I am not getting the correct document (step by step) to bulid the project under Netbean or Eclipse. Please let me know any document for my help.

0 votes
Jörg Henne
Contributor
July 27, 2011

Frankly, I don't think that with the Atlassian-supplied documentation a Maven-novice has any chance of successfully building JIRA from source. I'm currently in the process of doing just that, but with quite a bit of Maven experience under my belt. First of all, you will need to add atlassian's repository to your maven setup, because the source distribution doesn't contain all the necessary POMs. POMs are essentially build meta-data. Since the files in question are rather small-ish - just some xml - it baffles me why they are not included.

Anyway: there are several options for introducing Atlassian's repository to maven:

  • by defining a repository in the top-level pom.xml:
    Add a section like this to the <project> element:
    <repositories>
    <repository>
    <id>atlassian</id>
    <name>atlassian public repository</name>
    <releases>
    <enabled>true</enabled>
    </releases>
    <snapshots>
    <enabled>false</enabled>
    </snapshots>
    <url>http://maven.atlassian.com/repository/public/</url>
    <layout>default</layout>
    </repository>
    </repositories>
  • by defining a repository in your settings.xml:
    Just add a section like this to your ~/.m2/settings.xml
    <settings...
    ...
    <repositories>
    <repository>
    <id>atlassian</id>
    <name>atlassian public repository</name>
    <releases>
    <enabled>true</enabled>
    </releases>
    <snapshots>
    <enabled>false</enabled>
    </snapshots>
    <url>http://maven.atlassian.com/repository/public/</url>
    <layout>default</layout>
    </repository>
    </repositories>
    ...
    If you have other maven-built projects, it is probably better not to add this repository as a global repository, but nest it in a profile and activate the profile only when you need it. Please see the maven documentation for details.
  • only if you operate your own maven proxy: by adding the repository as a proxy repository.
Fabrice Porcher July 31, 2011

Dont forget, with eclipse, to add M2_REPO variable in eclipseOtherwise,

CF : http://maven.apache.org/guides/mini/guide-ide-eclipse.html

mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo


Eclipse will not found jars in your classpath

0 votes
Colin Goudie
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.
June 27, 2011

How did it faily exactly?

Netbeans, with its maven support, should be able to open the parent pom.xml in the JIRA source directly.

For eclipse, you'd have to generate the eclipse project files using mvn eclipse:eclipse, then open the project in eclipse.

I would recommend utilsing the Atlassian SDK so you have the required maven repositories in your maven settings.xml in order to build the project.

Also check out this link - http://confluence.atlassian.com/display/DEVNET/Using+the+Atlassian+Plugin+SDK+with+a+Source+Code+License

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events