Maven eclipse does not add a dependency
Posted
by Calm Storm
on Stack Overflow
See other posts from Stack Overflow
or by Calm Storm
Published on 2010-03-30T10:28:21Z
Indexed on
2010/03/30
10:33 UTC
Read the original article
Hit count: 345
I have the following snippet in my pom.xml
<dependency>
<groupId>aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.5.3</version>
</dependency>
and in one of my Java files I refer a class org.aspectj.lang.ProceedingJoinPoint
. When I do a "mvn clean install" it compiles and builds fine but when I do an eclipse:eclipse, and import the project in eclipse it gives me an error The import org.aspectj cannot be resolved
. I checked the .classpath file that was generated and it does not have an entry to this file. I tried a "mvn dependency:tree" and it lists this fine.
Can someone tell me what is going wrong here?
© Stack Overflow or respective owner