Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ Idea: Red lines in dependency viewer

I started experimenting with the different diagram views that intellij offers and stumbled upon the dependency view. In one of my projects I've encountered that besides the blue arrows indicating dependencies there are some dependencies that are shown using a red line. What is IntelliJ trying to tell me here. Does it hint at a possible or maybe definite issue?

Intellij dependency view

like image 440
jimonthebarn Avatar asked Dec 12 '16 15:12

jimonthebarn


People also ask

Why are my Maven dependencies red?

It looks like some connection issue, Maven is not able to download the dependencies from the repository. Make sure Internet connection is available and your antivirus/firewall is not blocking the downloads. Try running mvn clean package in the command line to ensure that it completes without any errors.

How do I enable dependency analyzer in IntelliJ?

From the main menu, select Code | Analyze Code | Dependencies. Alternatively, if you want to analyze a specific item, right-click it in the Project tool window and select Analyze | Analyze Dependencies. In the dialog that opens, specify the scope of files that you want to analyze.

How do I check dependencies in IntelliJ?

If you want to check whether a dependency still exists in your project, and find its exact usages, you can run dependency analysis: From the main menu, select File | Project Structure Ctrl+Alt+Shift+S and click Modules | Dependencies. Right-click the necessary dependency and select Analyze This Dependency.


1 Answers

It looks like dependencies with a red line are conflicting or unsatisfied dependencies.

There is any explanation here. https://www.jetbrains.com/help/idea/2016.3/working-with-maven-dependencies.html

I was just looking at one of my projects and it looks like I have Guava conflict. I am bringing in version 15 but Guice is bringing in version 16.0.1. Need to fix that. Dependency graph conflict

like image 111
Will Humphreys Avatar answered Sep 21 '22 22:09

Will Humphreys