Building JIRA from source

Timothy Klim February 5, 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 October 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