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 Error

xinan liu Sep 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
Jonas Andersson Sep 21, 2015
xinan liu Sep 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"

1 vote
Herberts Markūns Oct 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

0 votes
Jonas Andersson Sep 21, 2015

Which maven version are you using?

xinan liu Sep 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
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...

2,708 views 6 15
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