Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] Transitive dependencies not added to the classpath

Good Morning!
I try to import a simple maven project in Eclipse Photon 4.8.0 - JEE,
but I can not work with it because of the following error:
The transitive dependencies of the 'javax.enterprise:cdi-api:2.0'
artifact are not added to the classpath.
Besides if I have a look at the 'Dependency Hierarchy' view of the pom
editor, they do not appear either.

But If use the 'mvn dependency:tree' command, everything works perfectly:
...
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @
mvn-dependency-pb ---
[INFO] test.bug:mvn-dependency-pb:war:1.0
[INFO] +- javax.faces:javax.faces-api:jar:2.3-pfd:provided
[INFO] \- javax.enterprise:cdi-api:jar:2.0:provided
[INFO]    +- javax.el:javax.el-api:jar:3.0.0:provided
[INFO]    +- javax.interceptor:javax.interceptor-api:jar:1.2:provided
[INFO]    \- javax.inject:javax.inject:jar:1:provided

Concerning my configuration, I use maven v3.3.9 and the JDK8 on a
Windows 10 PC.
Thank you in advance for any answer.

Attachment: test-photon.zip
Description: test-photon.zip


Back to the top