-
Dec 13th, 2011, 03:36 PM
#1
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:
http://search.maven.org/#artifactdet....0.RELEASE.jar
It seems to me that if spring-aop requires cglib to even run, then perhaps it shouldn't be optional.
--adam
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules