Spring, AspectJ and Maven troubles

Eclipse, Java, Software Add comments

In one of the applications I am currently working on I am using the following combination:

  • Eclipse IDE with AJDT
  • Spring
  • Maven

This week I upgraded Spring to version 2.5.5 and had some troubles with compiling my aspects in the maven build.I always encountered the following error message when trying to compile my project:

Unable to continue, this version of AspectJ supports classes built with weaver version 3.0 but the class org.springframework.beans.factory.aspectj.AbstractBeanConfigurerAspect is version 5.0

After doing some web search I found this JIRA entry for Spring about the changes in AspectJ dependencies. Then I found out that the aspectj-maven-plugin 1.0-beta-2 had dependencies to to AspectJ 1.5.2a in his pom file. To override this I did as described in this blog post and added the dependencies in my pom to AspectJ 1.6.0 - now I was able to do a build again.

Leave a Reply



WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in