Dec 13th, 2011, 03:36 PM
Spring-AOP Maven Repo Dependency Problem
Not sure if this is a bug in the central maven repo or how Spring pushes updates to the maven repo but my build is failing because the spring-apo maven dependency depends on cglib but this dependency is listed as optional in the central maven repo and thus it's not getting pulled down and I'm getting the "Cannot proxy target class because CGLIB2 is not available" error.
Specifically, the code is failing where it is trying to autowire a service. Manually adding the cglib dependency fixes the problem. Here's the link that shows the spring-aop dependencies:
It seems to me that if spring-aop requires cglib to even run, then perhaps it shouldn't be optional.
Tags for this Thread