Announcement Announcement Module
No announcement yet.
Spring-AOP Maven Repo Dependency Problem Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.


  • #2
    Originally posted by ankeet.maini
    Spring AOP does requires Cglib, as it needs to create a proxy class, which in turn does the advising on your join points.
    I'm not sure what you were trying to add to the discussion here.


    • #3
      The key to any successful website is knowing your visitors. Site Analytics gives you the valuable, real-time data you need – information you can use to spotlight popular products, target new customers, track offer responses and much more. With over 30 detailed reports, you can find out where your visitors are coming from, what paths they take through your site, even where in the world they live.