代码之家  ›  专栏  ›  技术社区  ›  Candy Chiu

在Eclipse中升级AspectJ运行时库

  •  1
  • Candy Chiu  · 技术社区  · 15 年前

    I am trying to upgrade to a newer version of aspectjrt than the one that comes with Eclipse. I updated the version number in maven pom.xml. Eclipse doesn't seem to pick it up, it still displays the built-in version on its classpath.

    Which version of the library does m2eclipse uses?

    1 回复  |  直到 15 年前
        1
  •  1
  •   Espen    15 年前

    When you add AspectJ nature to your Eclipse project, then you by default also get the AspectJ plugin's aspectjrt.jar file on the project's build path.

    删除这个并让maven pom文件引用首选版本。

    您可以删除 AspectJ Runtime Library

    它可以与源文件夹下或项目的其他库一起找到 Java Build Path 菜单。