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

Timothy Klim Feb 05, 2013

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

0 votes
Herberts Markūns Oct 14, 2015

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

794 views 0 12
Read article

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