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

Reply via email to