Hi,
I have successfully used
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4</version>
<configuration>
<forkMode>once</forkMode>
<argLine>-javaagent:${settings.localRepository}/salve/salve-agent/
${salve.version}/salve-agent-${salve.version}.jar</argLine>
<useSystemClassloader>true</useSystemClassloader>
</configuration>
</plugin>
in my pom.xml to instrument my classes. (This could be added to the
wikipage
http://code.google.com/p/salve/wiki/ConfiguringInstrumentation
as another option.)
Kaspar