Results 1 to 9 of 9

Thread: "this affected type is not exposed to the weaver" when building with maven?

  1. #1
    Join Date
    Aug 2010
    Location
    Goteborg, Sweden
    Posts
    434

    Default "this affected type is not exposed to the weaver" when building with maven?

    I seem to get some of these for my entities when I build my Spring Roo project with maven 3 from the command line:

    Code:
    this affected type is not exposed to the weaver: [path[.[Entity] [Xlint:typeNotExposedToWeaver]
    (where [path[.[Entity] is the qualified name of my entity)


    The test for the entity in question work fine. I can get all woven fields from within STS. So what does this error actually mean?

  2. #2
    Join Date
    Mar 2008
    Location
    Portland OR
    Posts
    44

    Default

    I wish I knew, because I'm seeing the same thing using Roo 1.2.0.RC1 [rev dcaa483]

  3. #3
    Join Date
    Aug 2010
    Location
    Goteborg, Sweden
    Posts
    434

    Default

    This behaviour remains even after I downgraded to Maven 2.2.1. I build with maven or in Springsource Tool Suite with AJDT. It doesn't seem to matter which way I build.

  4. #4
    Join Date
    Jun 2005
    Location
    São Paulo, Brasil
    Posts
    86

    Default

    I'm still seeing this problem with Roo 1.2.2 and Maven 3.0.4. Did you manage to find a solution for this warning?
    Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

  5. #5
    Join Date
    Aug 2010
    Location
    Goteborg, Sweden
    Posts
    434

    Default

    I'm just ignoring it as doesn't seem to mean anything.

  6. #6
    Join Date
    Jun 2005
    Location
    São Paulo, Brasil
    Posts
    86

    Default

    Yeah, it doesn't seem to mean anything, but ignoring warnings is a dangerous habit...
    Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

  7. #7
    Join Date
    Mar 2008
    Posts
    257

    Default

    I too get the warning

    this affected type is not exposed to the weaver
    I run Roo 1.2.1 on Maven 3.0.4
    Stephane

  8. #8

    Default

    I'm also seeing this and I sometimes end up with jar files containing class files that are lacking the roo added methods.

    It sounds plausible that if the type is not exposed to the weaver, then the roo aspects would get dropped.

    This is an extremely vexing problem as it happens on some build systems and not others.

  9. #9
    Join Date
    Jan 2013
    Posts
    9

    Default

    Almost 2 years outstanding on this issue? Anyone have any ideas what these warnings mean and if Roo users should be concerned about them?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •