Maven instrumentation with -javaagent

988 views
Skip to first unread message

hbf

unread,
Aug 15, 2009, 11:36:43 AM8/15/09
to Salve
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

Igor Vaynberg

unread,
Aug 15, 2009, 12:40:56 PM8/15/09
to salve...@googlegroups.com
why not just use salve's maven2 plugin?

-igor
Reply all
Reply to author
Forward
0 new messages