Hi @iragudo, thanks for the tip!
I tried several combinations, none of them worked so far
If I add the
org.springframework.aop package into
Import-Package it says
missing requirement [...] (osgi.wiring.package=org.aspectj.lang.annotation). I tried to add that package too but nothing happened, so I suppose it’s not exposed as an OSGi bundle, right?
After that I tried to add
aspectjweaver as a
compile dependency: in that case it said
missing requirement [...] (osgi.wiring.package=com.bea.jvm) and again there’s no way to import that package.
So I tried with the
aspectjrt dependency instead and the error changed a bit: now it says
java.lang.ClassNotFoundException: org.aspectj.lang.annotation.Around not found by org.apache.servicemix.bundles.spring-aop.
I’m out of ideas… It looks like there’s always a missing piece that doesn’t get exported by Confluence therefore there’s no way to use AOP inside a plugin (but I hope I’m wrong )
If you have any other suggestions I’m all hears!
P.S: i’m using Spring Scanner v2, since I’m targetting Confluence 6.0+… I don’t know if it matters.