Maven, Tycho, Surefire, AspectJ and Equinox Weaving

This is a very short technical post. But since it took us some time to find the solution (there is little information on the Web), we wanted to add another possible search hit for others.

JUnit tests from within Eclipse work well with AspectJ runtime weaving in Equinox. Finding information on how to activate the same in Maven Tycho surefire was more difficult.

You have to configure the surefireplugin to use the Equinox Weaving hook and start the AspectJ Weaving Bundle:


In addition, on command line configuration, you could pass debug information. We have set the property:
and use it later on

One thought on “Maven, Tycho, Surefire, AspectJ and Equinox Weaving

  1. Hi,

    Thank you for this article, if you can share some sample project with this that would be great help.



Leave a Reply

Your email address will not be published. Required fields are marked *