Building JIRA 5.1 from Source - Build Error - Failed to resolve artifact.

Still need help?

The Atlassian Community is here for you.

Ask the community

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.

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
Last modified on Feb 19, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.