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!
Have you completed the 6th step in the "Building From Source"?
If so, and you still have problems:
Workaround
- Copy the .m2/repository/jndi and .m2/repository/jta folders
- Place them in to the $SOURCEFOLDER/localrepo directory. If it complains that it already exist, over ride the contents.
- 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
My bad, check this.. https://jira.atlassian.com/browse/JRA-34295
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which maven version are you using?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.