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

Spring doesn't autowire @Configurable when running Dropwizard integration test during maven build

I'm using Spring's @Configurable to autowire a bean constructed with 'new' in a Dropwizard application. I have an integration test that uses the DropwizardAppRule to bring up the application and am using the aspectj-maven-plugin for compile time…
0
votes
1 answer

Turning off Spring Roo in STS, but still use from command line

From time to time STS seems to bog down or free while working in a Spring Root webapp. It can sometimes be ten or twenty minutes before the UI allows you to really do anything, other than go slow and queue up actions. We've traced all the the…
0
votes
1 answer

How to use weaven with aspectJ in compiletime in spring project

We are using Spring and we used Spring AOP. Due to the nature of Spring AOP which uses Proxy we reached the limitation of it when tring to warp join point on call inside a call. i.e aspect on B execution will not run if A is being call public…
oak
  • 2,898
  • 2
  • 32
  • 65
0
votes
1 answer

AspectJ + Junit + Maven + Java8

I followed this SO question and tried to implement it for java8. My project is not a spring project. Aspect @Aspect public class MethodLogger { @Pointcut("execution(@org.junit.Test * *())") public void testMethodEntryPoint() {} …
Amit Kumar Gupta
  • 7,193
  • 12
  • 64
  • 90
0
votes
0 answers

Spring-Data_Neo4j advanced mapping is not working

According to this User Guide, when using advanced mapping mode, any access to properties and relationships will in general read through down to the database. Is that means the whole object will not be fetch and only necessary properties will be…
Junbang Huang
  • 1,927
  • 19
  • 26
0
votes
0 answers

AspectJ compile time weaving throws BeanInstantiationException for spring beans with only argument constructor

I have a aspect class in maven project : my-aspect-project @Aspect public class LoggingAspect { @Autowired public MessageSource messageSource @Pointcut("within(@Log *)") public void executionOfAnyMethodInLogAnnotationClass(){} …
0
votes
1 answer

Has the source code for aspectj-maven-plugin been lost?

This is a bit of a followup to my a previous codehaus question. This time, I'm looking for the sources for the aspectj-maven-plugin. I've tried searching github.com, but the closest thing I found is a personal fork as of v1.7. Has all the source…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
0
votes
0 answers

aspectj within a maven plugin fails to call pointcut

A = maven plugin I wrote B = maven project that uses A as part of it's build process When I use maven to build A, aspectj works as expected and I hit my pointcuts during my unit tests. I use the aspectj-maven-plugin to build it because I build A…
0
votes
1 answer

Why is aspectj weaving Aspects from my test folder into my source classes (as opposed to the test classes)?

I'm running into a strange problem with aspectj-maven-plugin and Eclipse Juno. I have the following plugin defn in the build section of my pom: org.codehaus.mojo
Eric B.
  • 23,425
  • 50
  • 169
  • 316
0
votes
1 answer

Mockito's spy does not work along with AspectJ using maven

I have the following test class and I'm using Mockito's spy. By running my unit test using Eclipse (right click->Run as unit test) all tests pass which means that eclipse build process using m2e and AJDT works fine.…
0
votes
0 answers

Migration from java 7 to java 8

I have migrated my app from java 7 to java 8 but pom.xml build fails because of aspectj-maven complier. I have tried till 1.7 version but no luck. Please provide aspectj-maven-plugin support for java 8. I have used till 1.7 but its not working.
sridhar
  • 303
  • 5
  • 26
0
votes
1 answer

Detect and weave dependencies automatically with AspectJ

We have a Maven project with multiple compile dependencies and every time a new is added, we need to create an equivalent entry in org.codehaus.mojo
cahen
  • 15,807
  • 13
  • 47
  • 78
0
votes
1 answer

Spring AOP + AspectJ maven plugin - Internal method call doesn't work

Java + Spring + Maven application. Unable to make Internal call from annotation based public method. Prerequisite Java-Version: 1.7. Project: AspectProject > Post build it will create jar file. Client: AspectClient : which has dependency of…
JavaDev
  • 3
  • 1
  • 2
0
votes
1 answer

Aspect in java not being weaved correctly

I have the following method: public class MonitorInterface { // this is the method you have to call to trigger the monitor public static void event(String eventName, HashMap params) { System.out.println("Entering event method"); …
mangusbrother
  • 3,988
  • 11
  • 51
  • 103
0
votes
2 answers

Aspect weaving at compile-time doesn't work

I use Eclipse Kepler, Java 1.7. Part of my pom.xml is below. As I see during maven compile, no logs about weaving at all. Neither I have any errors. Aspect doesn't work neither. What am I doing wrong? As I see in some examples, this pom should…
Battle_Slug
  • 2,055
  • 1
  • 34
  • 60