Why are some jars not added to .classpath file in eclipse by maven?

684 views Asked by At

I would like to add the following dependency to a maven (I'm not using the m2e plugin).

<dependency>
    <groupId>uk.com.robust-it</groupId>
    <artifactId>cloning</artifactId>
    <version>1.9.0</version>
</dependency>

The problem is that the jar simply is not added to the .classpath file in eclipse when I execute mvn eclipse:clean eclipse:eclipse. It works fine for this dependency.

<dependency>
    <groupId>org.jdom</groupId>
    <artifactId>jdom2</artifactId>
    <version>2.0.5</version>
</dependency>

Maven does donwload cloning the dependency. The correct .jar file is in ~/.m2/repositories. I also tried mvn eclipse:configure-workspace before executing mvn eclipse:clean eclipse:eclipse. Didn't help either. Running mvn clean compile test integration-test works fine, even if I add imports to classes in cloning.

Any help is greatly appreciated!

1

There are 1 answers

0
René Link On

Try a

 mvn help:effective-pom

to see if the scope is provided