title: How can I register an event spy with a Maven job that is run by a Jenkins?
body: <p>I want to profile Maven builds. Maven's event spies make profiling possible (spies listen to events). Usually the user puts the jar file containing an event spy in the folder maven-3.x.x/lib/ext or uses -Dmaven.ext.class.path on the command line to add the jar to the container classpath.</p>
  
  <p>Both approaches work with the Maven command line but not with Jenkins because Jenkins seems to bypass some maven command line logic. Therefore, my question:</p>
  
  <p>How can I register an EventSpy with a Maven job that is run by a Jenkins?</p>