Re: Eclipse Build Classpath not updated with pom.xml dependencies

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Eclipse Build Classpath not updated with pom.xml dependencies

by Igor Fedorenko-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are you able to reproduce the problem with latest 0.9.9 dev build? Also,
try to remove maven-eclipse-plugin from your pom.xml.
maven-eclipse-plugin overrides m2eclipse configuration and may interfere
with normal m2e operations.

--
Regards,
Igor

gotobarry wrote:

> Hi! I'm using maven eclipse plugin: My pom.xml
> plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-eclipse-plugin</artifactId>
>         <version>2.7</version>
>         <configuration>
>           <downloadSources>false</downloadSources>
>           <wtpversion>1.5</wtpversion>
>         </configuration>
>       </plugin>
>
> And I added spring-aspects dependency to my pom.xml
>
>     <dependency>
>       <groupId>org.springframework</groupId>
>       <artifactId>spring-aspects</artifactId>
>       <version>2.5.6</version>
>     </dependency>
>
> Spring-aspects has it's own dependency on aspectjrt. spring-aspects pom.xml
>                 <dependency>
>                         <groupId>org.aspectj</groupId>
>                         <artifactId>aspectjweaver</artifactId>
>                         <version>1.6.1</version>
>                 </dependency>
>
> mvn eclipse:eclipse
>        List of artifacts without a javadoc archive:
>          o org.springframework:spring-aop:2.5.6
>          o org.springframework:spring-beans:2.5.6
>          o org.springframework:spring-core:2.5.6
>          o org.springframework:spring-aspects:2.5.6
>          o org.aspectj:aspectjrt:1.6.1
>          o org.aspectj:aspectjweaver:1.6.1
>          o org.springframework:spring-mock:2.0.
> So it downloaded aspectrjt 1.6.1 in my respository
>
> Eclipse isn't adding aspectjrt to build path and as a consequence:
> java.lang.NoClassDefFoundError: org/aspectj/lang/NoAspectBoundException
>
> Any ideas appreciated.
> Thanks
> Barry
>
>
>
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email