Building JIRA from source

Hello.

I'm trying to build JIRA from source and got error:

Missing:

----------

1) jta:jta:jar:1.0.1

Try downloading the file manually from the project website.

Then, install it using the command:

mvn install:install-file -DgroupId=jta -DartifactId=jta -Dversion=1.0.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=jta -DartifactId=jta -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file -Durl= url -DrepositoryId= id

Path to dependency:

1) com.atlassian.labs:jira4-adapter:jar:0.6.1

2) com.atlassian.jira:atlassian-jira:jar:4.3.4

3) jta:jta:jar:1.0.1

2) jndi:jndi:jar:1.2.1

Try downloading the file manually from the project website.

Then, install it using the command:

mvn install:install-file -DgroupId=jndi -DartifactId=jndi -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=jndi -DartifactId=jndi -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl= url -DrepositoryId= id

Path to dependency:

1) com.atlassian.labs:jira4-adapter:jar:0.6.1

2) com.atlassian.jira:atlassian-jira:jar:4.3.4

3) jndi:jndi:jar:1.2.1

----------

2 required artifacts are missing.

for artifact:

com.atlassian.labs:jira4-adapter:jar:0.6.1

from the specified remote repositories:

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

atlassian-contrib (https://m2proxy.atlassian.com/contrib),

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

INFO ------------------------------------------------------------------------

INFO For more information, run Maven with the -e switch

INFO ------------------------------------------------------------------------

INFO Total time: 14 seconds

INFO Finished at: Wed Feb 06 11:55:37 MSK 2013

INFO Final Memory: 44M/350M

INFO ------------------------------------------------------------------------

This is really interesting because I did all steps which described in https://confluence.atlassian.com/display/JIRA/Building+JIRA+from+Source.

I'm building JIRA on Mac OS X 10.8.3 with java:

java version 1.7.0_06

Java(TM) SE Runtime Environment (build 1.7.0_06-b24)

Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)

I have files which missed in my local maven repository:

➜ atlassian-jira-5.2.5-source ls /Users/timothyklim/.m2/repository/jta/jta/1.0.1/jta-1.0.1.jar

/Users/timothyklim/.m2/repository/jta/jta/1.0.1/jta-1.0.1.jar

➜ atlassian-jira-5.2.5-source ls /Users/timothyklim/.m2/repository/jndi/jndi/1.2.1/jndi-1.2.1.jar

/Users/timothyklim/.m2/repository/jndi/jndi/1.2.1/jndi-1.2.1.jar

➜ atlassian-jira-5.2.5-source

Why this happen?

1 answer

For anyone stumbling upon this question, the solution is to:

Workaround

  1. Copy the .m2/repository/jndi and .m2/repository/jta folders
  2. Place them in to the $SOURCEFOLDER/localrepo directory. If it complains that it already exist, over ride the contents.
  3. Rebuild again

So basically, just copy and put that jta and jndi folder (with the same directory structure) into the "localrepo" folder withing the folder you build from.

Workaround source:

https://confluence.atlassian.com/pages/viewpage.action?pageId=308609470

 

 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,799 views 11 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot