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

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 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