Hello. I want to use aspects for logging tests. There is a class AspectLogger in which a pointcut is defined and advice is defined. When I run the aspectj:test-compile plugin aspectj:test-compile , in the console I see that the tips are added to the tests, for example:

 [INFO] Join point 'method-execution(void Back_end_task.APITest.test())' in Type 'Back_end_task.APITest' (APITest.java:22) advised by before advice from 'AspectLogger' (AspectLogger.java:26) 

But the problem begins when I run the mvn clean test , namely

 java.lang.NoSuchMethodError: AspectLogger.aspectOf()LAspectLogger; at Back_end_task.APITest.test(APITest.java:23) 

type, could not find the method from the aspect that was added to the test ...?

Finding a solution to the problem led to how I realized that I had to add to the plug-in configuration, in the <aspectLibraries> section, the dependence of my project. And you also need to add a dependency of my project to the <dependencies> section of the project. But because of this error

 [FATAL] 'dependencies.dependency MyTraining:project:1.0-SNAPSHOT' for MyTraining:project:1.0-SNAPSHOT is referencing itself 

Here is a link to my project

Can you please tell me how to configure the plugin? so that the tests go through mvn clean test

    0