Building JIRA from Source Error

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

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"

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

Which maven version are you using?

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
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

1,071 views 11 10
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