Maven - can't see conflicts

Answered

I can't see dependecy conflicts in the Maven Projects tool and in the dependency diagram. The Maven Projects tool used to show omitted dependencies with a message, e.g.


And the dependecy diagram contained red edges to the omitted dependecies. Now, the omitted dependecies are not shown at all.

I use IDEA Ultimate 2016.1. 

Is there any way to get the conflicts marked again?

7 comments

https://youtrack.jetbrains.com/issue/IDEA-153544 may be related. Please share a sample project to reproduce this problem. Thank you.

0

Even new project with following pom doesn't show the conflicts:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>g</groupId>
<artifactId>a</artifactId>
<version>1.0-SNAPSHOT</version>

<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>19.0</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>4.0</version>
</dependency>
</dependencies>
</project>
0

I see this: 

I noticed that the conflicts were shown for some maven projects until I reimported them.

0

Try re-importing with Maven 3.3 or later:

0

Thank You. It's working.

I have one other problem. For some maven projects named version-SNAPSHOT, it doesn't update dependecies according to changes in pom until I change version in pom e.g. to version-SNAPSHO. It doesn't work with auto-import enabled and also on manual reimport. If I delete everything from the pom beside the groupId, artifactId and version, it still behaves the same way.

 

 

0

Please report a bug at https://youtrack.jetbrains.com/issues/IDEA with a sample project and the steps to reproduce.

0

Please sign in to leave a comment.