gpt4 book ai didi

java - Aspectj maven插件错误

转载 作者:行者123 更新时间:2023-11-30 04:11:25 35 4
gpt4 key购买 nike

我收到这个错误

[ERROR] can't determine superclass of missing type org.springframework.aop.interceptor.AsyncExecutionAspectSupport
when batch building BuildConfig[null] #Files=18 AopXmls=#0
[Xlint:cantFindType]

这是我使用aspectj插件的POM部分spectj.版本是1.6.11

        <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.4</version>

<configuration>
<showWeaveInfo>false</showWeaveInfo>
<verbose>false</verbose>
<source>1.7</source>
<target>1.7</target>
<complianceLevel>1.7</complianceLevel>

<aspectLibraries>
<aspectLibrary>
<groupId>ru.sofitlabs</groupId>
<artifactId>ngutil</artifactId>
</aspectLibrary>

<aspectLibrary>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
</aspectLibrary>
</aspectLibraries>
</configuration>

<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>

<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>

我将不胜感激任何帮助。

最佳答案

缺少的类型 org.springframework.aop.interceptor.AsyncExecutionAspectSupport 应该位于依赖于 spring-aspects 的 spring-aop 中。

您确定执行时 jar spring-aop 位于您的类路径中吗?

关于java - Aspectj maven插件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19519604/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com