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
2
votes
1 answer

aspectj maven joinpoint advised but advice not called

Before marking this question as a duplicate, please read through, as I've gone through a number of posts on SO and other places but have still failed to find a solution to my problem. I'm trying to implement a project in Spring + AspectJ and…
Binoy Dalal
  • 866
  • 10
  • 25
2
votes
2 answers

Getting org.springframework.beans.factory.SmartInitializingSingleton error after upgrading from Spring Security 2.0.2 to 3.2.5.RELEASE

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.6:compile (default) on project services: Compiler errors: error can't determine implemented interfaces of missing type…
Developer
  • 534
  • 1
  • 11
  • 21
2
votes
1 answer

AJC throws error no sources specified when compiling in Eclipse

I am trying to compile a Spring-generated Maven project in Eclipse with maven-eclipse-plugin. Maven throws the following error during compile: [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.8:test-compile (default) on…
Manuel M
  • 809
  • 1
  • 10
  • 25
2
votes
1 answer

ajc on Maven command line, but not in Eclipse in order to keep Lombok working

After successfully following this HowTo to integrate Lombok and AspectJ in a Maven build, my code doesn't compile anymore in eclipse. There are a lot of errors everywhere due to absence of getter/setter/constructors normally generated by Lombok. My…
pscheiben
  • 73
  • 1
  • 6
2
votes
2 answers

incorporating -xmlConfigured in maven

Does the maven-aspectj-plugin have an option to specify ajc's option -xmlConfigured? If not, what's the common practice for compiling aspect codes with most recent version of ajc using maven?
Candy Chiu
  • 6,579
  • 9
  • 48
  • 69
2
votes
1 answer

Self call AOP issue still persisting even after adding aspectj maven plugin for compile time weaving

I wish to do logging in our project using AOP. I am facing the issue where if a method of a class was calling another method of the same class inside it, then AOP would not work on that call because of the proxy way of doing things. To counter it, I…
Abhishek Chauhan
  • 309
  • 5
  • 15
2
votes
3 answers

Travis Maven build exits with OutOfMemoryException

I have a maven build running on Travis (dockerized) which builds just fine on my command line. Since a couple of days I get java.lang.OutOfMemoryError: GC overhead limit exceeded during the test cases. This happens always during the AspectJ test…
2
votes
1 answer

AspectJ compilation with maven/eclipse throws NoClassDefFoundError for org/aspectj/bridge/IMessageHolder

I recently upgrade from eclipse Juno to Luna on my Windows 7 box and am having problems with my aspectj compile. I'm getting this error: [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.7:compile (default) on project…
darrickc
  • 1,872
  • 6
  • 27
  • 38
2
votes
1 answer

Attempting to get aspect annotation recognized by eclipse luna while using m2e (maven) build

I'd like to start using Aspects within my Java code and found a RetryOnFailure annotation that I decided would be my first one. At first my POM file showed an error, but through some research it seems that m2e in eclipse doesn't know when to…
user2197446
  • 1,065
  • 3
  • 15
  • 31
2
votes
1 answer

Aspectj and spring security aspects - order of advice execution

I'm using spring-security 3.2.4.RELEASE , spring-security-aspects 3.2.4.RELEASE, AspectJ maven plugin version 1.6, Java 7. I using AspectJ's weaving and not SpringAOP, therefore my aspectj maven plugin looks like this:
Modi
  • 2,200
  • 4
  • 23
  • 37
2
votes
1 answer

AspectJ in Maven project, not working/weaving

I am trying get the AspectJ weaving working in a simple Maven project, and not sure where it is going wrong : when I run the code using "mvn exec:java", I dont see expected output. I am sure the code is working, because I tried the same in STS,…
Ajeet Ganga
  • 8,353
  • 10
  • 56
  • 79
2
votes
1 answer

maven aspectJ plugin compile error

I am using maven-aspectJ plugin in a maven project. I want to weave the cucumber-java library. When I run maven, I constantly get [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.5:compile (default) on project junitsampler: …
fhcat
  • 971
  • 2
  • 9
  • 28
2
votes
1 answer

Spring AOP issue with multi maven project

Hi I am using a multi maven spring project with modules in POM Bhoomi-domain-it Bhoomi-data-it Bhoomi-domain Bhoomi-data Bhoomi-presentation Bhoomi-integration-consumer Bhoomi-integration-provider With individual pom.xml I have created a…
Prashant Shah
  • 108
  • 1
  • 7
2
votes
1 answer

Using Spring AOP in a maven compiled project getting "No factory method 'aspectOf()'" found exception

I have inherited a webapps codebase that makes use of Spring AOP. Maven is used to compile it, run on Tomcat 6.x server. I have tried running the project via Eclipse's "Run As" & also by running mvn clean install on command line & then updating the…
Chantz
  • 5,883
  • 10
  • 56
  • 79
2
votes
1 answer

Unit testing compile-time weaving

I am using the aspectj maven plugin to weave Aspects at compile time. When I run the application, the class with the @Advice annotation is being instantiated just before the first time the advice is called. For example: @Aspect public class…
tgrosinger
  • 2,463
  • 2
  • 30
  • 38