Hi, I have one library with 4 aspects, I want to select one of them to weave
my source code. Can I do it with AspectJ Maven Plugin?

Another question maybe pertinent: Is it possible to enable or disable an
aspect at runtime??

I was expecting something like this:

<plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>aspectj-maven-plugin</artifactId>
      <configuration>
            <aspectLibraries>
                  <aspectLibrary>
                        <groupId>my.group.id</groupId>
                        <artifactId>my.aspect.library</artifactId>
                  </aspectLibrary>
            </aspectLibraries>
            <include>**/MySpecificAspect.class</include>
            <exclude>**/AnotherAspect.class</exclude>
      </configuration>
....
</plugin>

Thanks in advance!
Paulo

Reply via email to