Building JIRA 5.1 from Source - Build Error - Failed to resolve artifact.
Symptoms
When building JIRA from source, after install all of the following restricted third party (.jar
) libraries to local Maven repository (.m2
). The build should be successful.
However, if the build is failed due to the missing file with the error message as below:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
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 -D
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 -Dpa
ckaging=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 -D
packaging=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
Cause
The resource in the following repository is missing.
- repository atlassian-contrib (https://m2proxy.atlassian.com/contrib)
- repository atlassian-proxy (https://m2proxy.atlassian.com/repository/public)
- repository central (http://repo1.maven.org/maven2)
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
Last modified on Feb 19, 2016
Powered by Confluence and Scroll Viewport.