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

AspectJ advice not getting applied in multi maven module and getting NullPointerException in jBoss6

I am using aspectJ and facing a problem "nullPointerException" in jBoss6 as advices of aspect is not getting applied. I have a multi maven modules project and each module is separated out as mentioned below. "maven - submodule1": Below FieldAspect…
sridhar
  • 1,117
  • 5
  • 31
  • 59
0
votes
1 answer

How to use AspectJ for Loggin in a maven project?

I have a maven Java EE 6 project and I have into every methods a Logger information to show in the console the beginning with parameters and the end too. In some methods i forgot the make that so i want to use aspectJ to manage the beginning and the…
Abder KRIMA
  • 3,418
  • 5
  • 31
  • 54
0
votes
1 answer

Getting error in AspectJ sample project

I am new to aspectJ. I am getting compilation errors in Aspect class. When I run the project, I am getting the compilation error. Please help me. Placing the code snippet and error obtained below: Project structure: MannersAspect.java package…
sridhar
  • 1,117
  • 5
  • 31
  • 59
0
votes
2 answers

aop.xml not getting picked by Maven

Maven is not able to package the aop.xml file when we are using spring-agent.jar file. We are using Surefire for running unit test cases and jacoco for getting the code coverage. We are not seeing any issues with spring-agent but aspects are not…
shan
  • 101
  • 10
0
votes
2 answers

Spring 3.2.12 looking for Spring 4.0 classes?

I have an application that currently compiles correctly with Spring 3.2.3. Wanting to be more currently (but not ready to take the plunge to 4.x yet) I tried upgrading to 3.2.12. When I go that, I get a curious compilation error from…
Steve
  • 692
  • 1
  • 7
  • 18
0
votes
2 answers

Java + Spring + Maven - AspectJ implementation instead of SpringAOP

Java + Spring + Maven application: Can somebody provide me with the link or advise me on a pure AspectJ implementation without proxy-based Spring AOP? My application is purely Spring + Maven based. I have currently implemented aspects with Spring…
Chuck
  • 1
  • 1
0
votes
2 answers

Spring AOP @DeclareParents conditionally

There is a method for create an Aspect introduction conditionally? what i want is to extend a class using Spring AOP conditionally: @Aspect public class Test1Aspect { @DeclareParents(value="com.test.testClass",defaultImpl=Test1Impl.class) …
0
votes
1 answer

How to make aspectj-maven-plugin include filename and line number in warnings

I use AspectJ via its plugin in a Java8 project, with this configuration in my pom.xml file: org.codehaus.mojo aspectj-maven-plugin 1.6
rydnr
  • 51
  • 3
0
votes
1 answer

Error using perf4j with aspectj (NoSuchMethodError)

I'm trying to use CTW with aspectj to profile my application (cumulusrdf) with perf4j. I can compile everything with maven just fine. The console output contains the entry for the method I'm using for getting the profiling to work: [INFO] ---…
Sibbo
  • 3,796
  • 2
  • 23
  • 41
0
votes
1 answer

Maven configuration: pass file inside a classpath jar as an argument

Several maven plugins need/support passing a java.io.File as a configuration parameter, wherein we specify the relative/absolute location of the file for the plugin to locate and use. Is there a way I can specify a property file in the plugin…
mystarrocks
  • 4,040
  • 2
  • 36
  • 61
0
votes
0 answers

Autowiring of Spring Beans within objects created with new keyword

I found following solution but unfortunately I am not able to get it working. https://stackoverflow.com/a/10998044/2182503 I can successfully compile, but when I test the application, my Spring Beans are always null. Environment: Tomcat 7 JDK 1.7…
Tunguska
  • 1,205
  • 3
  • 18
  • 37
0
votes
2 answers

How to increase aspectj-maven-plugin's memory limit

I'm trying to build project with Maven, but I'm getting this error: [INFO] --- aspectj-maven-plugin:1.4:compile (default) @ core --- [ERROR] ABORT [ERROR] AspectJ 1.6.1 ran out of memory during compilation: Please increase the memory available to…
uncle Lem
  • 4,954
  • 8
  • 33
  • 53
0
votes
1 answer

eclipse aspectj nature : maven webapp project not compiling

I want to start using aspectj for my webapp project with maven in eclipse. My first step was adding the AspectJ nature. Before the I added the aspect the project was compiling fine, and I saw *.class files in the target/classed directory. After…
0
votes
1 answer

Can I weave aspect into same maven module it was defined in and into a 3rd party dependency?

I have a multimodule maven project with the following setup of relevant modules: root commons-app backend frontend Module frontend is built into war and deployed on Tomcat. Module backend is a standard Java application packaged as jar. All I…
thegeko
  • 1,382
  • 1
  • 13
  • 18
0
votes
1 answer

AspectJ weaving into jar vs. reflective calls

Hei. In our Java-project we are trying to use AspectJ to clean some Exceptions from the serverlogs. What we need is to weave advices into a jar-file such that it also triggers (also on reflective calls). We are using maven and the…
alzamon
  • 1
  • 4
1 2 3
14
15