Building JIRA from Source Error

xinan liu September 21, 2015

My JIRA's verions is 6.0.4.

I tried to build JIRA from source as the following instructions:

https://confluence.atlassian.com/display/JIRA060/Building+JIRA+from+Source

It runs for several miniutes.

Then I finally get this error:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to execute mojo
Embedded 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 -
packaging=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 -Dp
ckaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  Path to dependency:
        1) com.atlassian.jira:jira-mail-plugin:atlassian-plugin:6.0.7
        2) com.atlassian.jira:jira-core:jar:6.0.2
        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 -
packaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  Path to dependency:
        1) com.atlassian.jira:jira-mail-plugin:atlassian-plugin:6.0.7
        2) com.atlassian.jira:jira-core:jar:6.0.2
        3) jndi:jndi:jar:1.2.1
----------
2 required artifacts are missing.
for artifact:
  com.atlassian.jira:jira-mail-plugin:atlassian-plugin:6.0.7
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: 17 minutes 58 seconds
[INFO] Finished at: Tue Sep 22 15:02:09 CST 2015
[INFO] Final Memory: 100M/470M
[INFO] ------------------------------------------------------------------------

What should I do?

Thanks very much!

3 answers

1 vote
Herberts Markūns October 14, 2015

Have you completed the 6th step in the "Building From Source"? 

If so, and you still have problems:

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

1 vote
Jonas Andersson
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.
September 21, 2015
xinan liu September 21, 2015

Thanks! But is this relates to my question? Sorry I can't understand clearly about the relationship beiween those two questions. I tried this command in my cmd, it also shows error. "mvn install:install-file -DgroupId=jta -DartifactId=jta -Dversion=1.0.1 - packaging=jar -Dfile=/path/to/file" "Unable to parse command line options: Unrecognized option: -packaging=jar"

0 votes
Jonas Andersson
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.
September 21, 2015

Which maven version are you using?

xinan liu September 21, 2015

I am using maven version as below: Apache Maven 2.1.0 (r755702; 2009-03-19 03:10:27+0800)

Suggest an answer

Log in or Sign up to answer