Results 1 to 3 of 3

Thread: Spring-AOP Maven Repo Dependency Problem

  1. #1
    Join Date
    Aug 2010
    Location
    Broomfield, CO
    Posts
    20

    Default 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

  2. #2
    Join Date
    Aug 2010
    Location
    Broomfield, CO
    Posts
    20

    Default

    Quote Originally Posted by ankeet.maini View Post
    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. #3
    Join Date
    Dec 2011
    Posts
    1

    Default

    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.
    Create A Server, http://createaserver.com

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
  •