On Mon, 19 Jan 2009, zorro2b wrote:


I have a trivial aspectj example I am using for testing with Maven. The
aspectj compiler appears to be called at the correct times, but the
resulting surefire plugin run does not give the correct results. It works
fine when run under eclipse using the eclipse aspectj plugin.

How can I configure the plugin the weave the test code with aspects defined
in src/main?

Currently my plugin configuration is exactly as specified on the plugin docs
page:

               <plugin>
                       <groupId>org.codehaus.mojo</groupId>
                       <artifactId>aspectj-maven-plugin</artifactId>
                       <version>1.1</version>
                       <executions>
                               <execution>
                                       <goals>
                                               <goal>compile</goal>
                                               <goal>test-compile</goal>
                                       </goals>
                               </execution>
                       </executions>
                </plugin>

aspects in src/main/java?

Just noticed that the sites does have the default "goals" report/documentation.

That would reveal that the properties aspectDirectory and testAspectDirectory points to src/main/aspec

--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to