Questions tagged [aspectj-maven-plugin]

Handles AspectJ usage within Maven.

Handles AspectJ usage within Maven.

The following functionalities are provided: weaving of aspects (or existing aspects from libraries) with the test and/or main classes, weaving of pre-existing jars and ajdoc reporting.

Check the official usage page for a first look at it.

More Info

212 questions
1
vote
0 answers

Spring Boot error when AspectJ 1.8 Plugin compiles

I face an issue that seems to be resolved here Mine is an aspect that needs AspectJ. There is a > "if()" condition in my aspect. I have enabled this plugin. org.codehaus.mojo
Mohan Radhakrishnan
  • 3,002
  • 5
  • 28
  • 42
1
vote
2 answers

AspectJ module dependency with Maven - How get working the Inter-type declarations methods of a dependency module

This is my situation: I have a maven project my-project-aj-dependency composed by two jar modules: my-project-aj-dependencyJarWithAJ (where I have an Inter-type declaration, see the ahah() method below inside the aspect…
madx
  • 6,723
  • 4
  • 55
  • 59
1
vote
1 answer

Aspectj throws "org.aspectj.weaver.BCException: malformed org.aspectj.weaver.PointcutDeclaration attribute" exception after Class Relocation

I'm using AspectJ on a project I'm working on. As part of the project I was trying to use the "maven-shade-plugin" and the "jarjar-maven-plugin" in order to relocate classes from one jar to another. In both cases, when I was trying to use the…
nadavy
  • 1,755
  • 1
  • 18
  • 33
1
vote
1 answer

Maven site lifecycle failing while generating allure report

I am trying to run the "mvn site" to generate allure reports but I am getting below error due to which I am not able to generate the reports. Thanks in advance. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to…
1
vote
1 answer

Spring cache abstraction (AdviceMode.ASPECTJ) not working inside spring-data-jpa repositories

i'm using spring-data-jpa 1.9.0.RELEASE and want to use the spring caching mechanism inside my repositories, e.g. public interface LandDao extends CrudRepository { @Cacheable("laender") Land findByName(String land) } Here is my…
1
vote
1 answer

aspectj-maven-plugin error: type already defined

I'm trying to use AspectJ with Maven for Amazon SWF. I've added the plugins to generate client code and to weave aspects. I've also added the maven-compiler-plugin to disable annotation processing. When I run mvn compile I see that the client code…
Chai Nadig
  • 417
  • 1
  • 6
  • 23
1
vote
0 answers

@Autowired dependencies are null in compile time weaving of @Aspect class

I have a aspect class in maven project : my-aspect-project @Aspect public class LoggingAspect { @Autowired public MessageSource messageSource @Pointcut("execution(@Log * *(..))") public void executionOfLogAnnotationMethod(){} @Before(value=…
1
vote
0 answers

Maven compile aspectj using different jvm

I have a project using SwingUtilities2 which is available in Java 5 only. I'm trying to compile it using newer JDK (using Jenkins). When it comes to pure Java only I have no problems, I simply set the compile plugin like this:
1
vote
1 answer

aspectj-maven-plugin can't resolve java.util.stream.*

I'm trying to compile a project I recently upgraded to Java 8. Now that I'm starting to use Java 8 specific features, I find myself getting exception on the aspectj-maven-plugin. Compilation in Eclipse and normal compilation in Maven works…
Marc
  • 6,773
  • 10
  • 44
  • 68
1
vote
1 answer

Maven and AspectJ do not package well

Welcome, I have problem with packaging aspectj program. Using this piece of code in pom.xml: org.apache.maven.plugins maven-jar-plugin
1
vote
0 answers

How to kill all of the sub-processes being created under my test suite?

I'm using maven (plugin version-1.7) and Aspectj-1.8.3. My scenario is as follow: I have an installer jar that I want to test. The installer is using another jar, my-common.jar library that wraps Apache's utility commons-exec-1.3 and use it to…
Modi
  • 2,200
  • 4
  • 23
  • 37
1
vote
1 answer

aspectj-maven-plugin, declare soft how to compile

Is it possible to compile project with softened Exceptions (e.g.: declare soft: Exception : execution(* *.*());) aspects in it using only aspectj-maven-plugin ? I can't handle it... I am still getting compilation error unreported exception…
liosedhel
  • 518
  • 5
  • 14
1
vote
0 answers

How to config AspectJ in Android Studio?

I want to use .aj files in my android project, It works fine in Eclipse. But how to make it work in Android Studio? I tried the Aspectj weaver plugin but it seems cannot apply the aspects to the project.
Marvin
  • 1,726
  • 1
  • 17
  • 25
1
vote
1 answer

Spring Aop Error Can not build thisJoinPoint lazily for this advice

Pointcut declaration: @Pointcut(value="com.someapp.someservice.someOperation() && args(t,req)",argNames="t,req") private void logOperationArg(final String t,final String req) { } Advice Declaration not…
user1044173
  • 33
  • 1
  • 7
1
vote
0 answers

CTW AspectJ classes can't use @Autowiring in Spring Web

How do I get CTW classes to properly @Autowired in Spring Web applications? I've seen some odd runtime behavior wrt aspectJ woven classes, both LTW and CTW. Both LTW and CTW manifest with the same odd symptoms as noted below. They "seemed" to go…
Wendel
  • 71
  • 1
  • 6