Hi,
I want to use aspectj in my existing maven project. I am looking for Maven dependency for aspectj.
What code should I add to pom.xml file in order to get Maven dependency for aspectj?
Thanks
Hi,
AspectJ is a library in Java which is used for aspect-oriented programming (AOP).
If you want to use the aspect-oriented programming (AOP) in your Java program and looking for the dependency code then add following in pom.xml:
<dependency> <groupId>aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>1.5.4</version> </dependency>
This is old library and now it is moved to org.aspectj. Now you can use following dependency:
<dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjlib</artifactId> <version>1.6.2</version> </dependency>
"Check more Maven tutorials.
Thanks
Ads