Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ No files were downloaded for xyz

I've created a new project in IntelliJ. When I go in to: Project Structure -> Libraries -> Add -> From Maven -> 'com.atlassian.seraph:atlassian-seraph:3.0.3' I get the error message 'No files were downloaded for com.atlassian.seraph:atlassian-seraph:3.0.3'

Backstory: I'm using IntelliJ to write a custom SSO authenticator for JIRA. This is not a JIRA plugin, it's just a class that a custom JSP will use.

I intend to produce a JAR and put it in WEB-INF/lib.

I'm not sure what I've missed here. This is my first exposure to maven and I've googled this extensively.

like image 234
A. Rich Avatar asked Jan 28 '16 01:01

A. Rich


People also ask

How do I fix dependency not found in IntelliJ?

If the dependencies weren't imported correctly (IntelliJ IDEA highlights them), try to perform the following actions: You can check your local maven repository in the Maven | Repositories settings and try to update it. You can check the jar file of the local . m2 repository to see if it was downloaded correctly.

How install Maven settings XML in IntelliJ?

Alternatively, from the main menu, select File |New Project Setup | Preferences for New Projects. In the Settings/Preferences dialog, select Build, Execution, Deployment | Build Tools | Maven. In the Maven settings dialog, select the Show settings dialog for new Maven projects. Click OK to save the changes.


1 Answers

If you did not change the default remote repository of your maven, it should be this . It seems that the artifact (com.atlassian.seraph:atlassian-seraph:3.0.3), you are looking for, is not in the default remote repository. There are two solutions for your case,

1.Add a new remote repository, which has this artifact, to your project.

2.Find the jar file somewhere on internet, add it to your project as an external jar file. Here is a great tutorial about this.

like image 75
Bernhard Colby Avatar answered Oct 02 '22 03:10

Bernhard Colby