The aspect/project at http://svn.davidkarlsen.com/avesvn/aspects/trunk/ works. It works correctly in windows - but not on *NIX - but I guess it's just one of the numerous surefire bugs...
Markus Umefjord-2 wrote: > > It turns out that it was my non-standard source and test-source > directories > that needed configuration with the aspectDirectory and testAspectDirectory > tags. > > However - there is another problem: > > I want to pointcut with an "after advise" at the end of the test cycle, > i.e. > when all tests have completed, on one of the following patterns: > > execute(* org.apache.maven.surefire.Surefire.run(..)) > || execute(* org.apache.maven.plugin.surefire.SurefirePlugin.execute()); > > Pointcutting the surefire and surefire-plugin jar files fails, and I have > tried using different configurations within the <weaveDependencies>-tags. > > Has anyone successfully tried this? Any ideas? > > Rgds, > > /M > > -----Original Message----- > From: Markus Umefjord [mailto:[EMAIL PROTECTED] > Sent: den 2 oktober 2007 16:45 > To: [email protected] > Subject: [mojo-user] aspectj-maven-plugin with tests launched by surefire > > Hi, > > Has anyone gotten surefire to load and launch aspectj aspects that > pointcut > the unit test classes? > > I have not been able to do this, and what I am looking to do is something > like this: > > mvn clean compiler:compile compiler:testCompile aspectj:compile > aspectj:test-compile surefire:test > > These are the relevant parts of the pom.xml: > > <plugin> > > <artifactId>maven-surefire-plugin</artifactId> > <version>2.3</version> > </plugin> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>aspectj-maven-plugin</artifactId> > <executions> > <execution> > <id>compile</id> > <goals> > <goal>compile</goal> > </goals> > </execution> > <execution> > <id>test-compile</id> > <configuration> > > <weaveDependencies> > <weaveDependency> > > <groupId>junit</groupId> > > <artifactId>junit</artifactId> > </weaveDependency> > </weaveDependencies> > </configuration> > <goals> > <goal>test-compile</goal> > </goals> > </execution> > </executions> > </plugin> > > > rgds > > /Markus > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > > ----- http://www.davidkarlsen.com -- View this message in context: http://www.nabble.com/aspectj-maven-plugin-with-tests-launched-by-surefire-tp13000282p14615529.html Sent from the mojo - user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
