jcabi-aspects
jcabi-aspects copied to clipboard
Can You please share working Maven project with @Loggable
Hi there, i'm trying to use jcabi-aspects in my project and have spent a lot of time trying to make it work, but it doesn't. Please be so kind to share any simple Maven prject with using @Loggable. I'm interested in pom.xml .classpath etc.
Thank You in advance, Mark
@yegor256 please pay attention to this issue
@nachtighall this project, for example: https://github.com/yegor256/rultor
@nachtighall here is jcabi-aspects annotation: https://github.com/yegor256/rultor/blob/1.56.2/src/main/java/com/rultor/Entry.java#L125
@nachtighall @Loggable
is not used in Rultor though. This project is using @Loggable
: https://github.com/yegor256/netbout (almost each class is annotated)
Thank you @yegor256 , i will have a look. Hope it would help me.
Now i get javascript java.lang.RuntimeExeption: Cannot register non aspect com$jcabi$aspects$aj$MethodLogger$class , com.jcabi.aspects.aj.MethodLogger.class.
Where should i put aop-ajc.xml? with
<aspectj>
<aspects>
<aspect name="com.jcabi.aspects.aj.MethodLogger.class"/>
</aspects>
</aspectj>
@nachtighall you don't need this XML file anywhere. everything should work without any additional configuration. just jcabi-maven-plugin
in pom.xml
and that's it. see how it works in the projects I mentioned.
@nachtighall
You can also look at https://github.com/jcabi/jcabi-aspects/issues/159
@nachtighall About these previous comments, did it solve your issue? If yes please close the issue #170.
Thanks, MC
@nachtighall did you check #159 ? If so, please close this issue.
Thanks, MC