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
0 answers

Error:Execution failed for task ':app:compileDebugAspectJ'. > build config error: bad sourceroot

I am using aspectj with maven and i am getting this error : Error:Execution failed for task ':app:compileDebugAspectJ'. build config error: bad sourceroot: /Users/yosomite/Desktop/Workspace/AndroidWorkspace/HomeDecore/app/src/debug/java My Gradle…
Kunal Parikh
  • 463
  • 4
  • 15
0
votes
1 answer

How to configure AspectJ working with in Weblogic 12c in a war package

I can't configure Weblogic 12c to work with AspectJ. Reading some posts I have done something to try to configure it, but I can't reach a result. My project works with maven and aspectj maven plugin. My configuration it's the…
0
votes
1 answer

Adding aspectJ language to define joinpoints

I'd like to define aspectj joinpoints not using annotations and string constants like this: @Before("execution(* my.class.getText(..))") but using aspecj language, like in this example: pointcut myMethod(): myClass() && execution(* *(..)); or…
Bohdan Nesteruk
  • 794
  • 17
  • 42
0
votes
1 answer

Is it possible to create an AspectJ pointcut around an class level variable?

What I'm looking for is a way to specify a pointcut around a class level variable. Something like: @Target(ElementType.METHOD) @Retention(RetentionPolicy.FIELD) @interface MyPointCut { } public class Foo { @MyPointCut BarAPI api = new…
mdzh
  • 1,030
  • 2
  • 17
  • 34
0
votes
0 answers

SWF workflow using @Asynchronous fails even after using aspectj plugins and other dependencies

Here is my sample workflow implementation: public class GreeterWorkflowImpl implements GreeterWorkflow { private helloWorld.HelloWorldWorkflow.GreeterActivitiesClient operations = new…
Kumar Deepak
  • 473
  • 4
  • 18
0
votes
1 answer

Convert Inter-Type declaraton from .aj to .java with Aspect annotations

I have this situation. This is my Village.java: public class Village{ private Integer vid; private String villageName; private String district; public Integer getVid() { return vid; } public void setVid(Integer vid)…
madx
  • 6,723
  • 4
  • 55
  • 59
0
votes
1 answer

Advice AspectJ a method call from different Maven project

I am trying to create an advice of a method of a project (test5) being called from another project (testMaven). I already included the project test5 as dependency in testMaven's pom.xml and set up an advice in testMaven's class but still it doesn't…
Ihsan Haikal
  • 1,085
  • 4
  • 16
  • 42
0
votes
2 answers

Weave external aspect with new pointcut

I'm pretty new to AOP in general, but I have the following problem. I have 2 projects. One containing an aspect that does some performance testing and another project which has a dependency to the previous one. What I'd like to achieve is weave the…
Jaims
  • 1,515
  • 2
  • 17
  • 30
0
votes
1 answer

aspectj-maven-plugin could not create ***$AjcClosure*.class

my maven project used spring aop, everything worked fine.now because blablabla, i need to use aspectj, i add aspectj dependency and aspectj maven plugin in config 1.8.2
Jadic
  • 33
  • 1
  • 7
0
votes
1 answer

AspectJ: Issue on Weblogic 12

I worked on a Java EE application with following configs: JDK 1.7 AspectJ 1.7 Weblogic 12.1.3 However, after upgrading the configs to followings, all aspects with "call" wildcards have not worked properly and as a result, no joinpoints, which…
saeedj
  • 2,179
  • 9
  • 25
  • 38
0
votes
1 answer

Spring 4 Java Config Transactions Proxy and Aspecj

I am creating a new project that uses aspectj transactions. It also uses legacy jars that contain services that are using the proxy method where an interface is required. I am using java config and when I set…
Rian
  • 1,243
  • 2
  • 17
  • 22
0
votes
0 answers

aspectj issue after update to java 8

Trying to upgrade a multi-repository project to java 8... We use aspectj, via the maven plugin. First problem was obvious, needed to update aspectj runtime (and the maven plugin) because the old version didn't understand the new class files. One of…
Rad Haring
  • 905
  • 7
  • 7
0
votes
0 answers

AspectJ is not working for non spring classes inside internal jar

I am new to AspectJ. I have a Parent.jar which contains @Aspect annotated class with aspect logging say MyAspect.java. This is working fine when i mention the package of Parent.jar in MyAspect pointcut. Parent.jar contains a child.jar as a…
0
votes
2 answers

aspectj - Intertype method declaration not working with Maven

I'm having troubles compiling a project with Maven and AspectJ. This the POM excerpt for aspectj-maven-plugin (taken from effective POM): org.codehaus.mojo aspectj-maven-plugin
Stefano Cazzola
  • 1,597
  • 1
  • 20
  • 36
0
votes
0 answers

aspectj error while compiling with Maven

I just checked out a project from SVN, built with maven and aspectj. When I try to compile with Maven (tried with original version 3.2.5 and with the latest 3.3.3), I get the following error (just an excerpt of the long log I get with the -X…
Stefano Cazzola
  • 1,597
  • 1
  • 20
  • 36