To enable automatic YourKit profiling as part of the Maven build, specify the profiler in the plugin configuration to be 'yourkit'.

Further, add a 'profilerContext' element, refering to the net.sourceforge.basher.YourKitProfilerContext in your BasherContext.

A sample is shown below:

...
<configuration>
  ...
  <!-- This configures Basher to enable the YourKit profiling agent 
  <profiler>yourkit</profiler>
  ...
  <basherContexts>
    <basherContext implementation="net.sourceforge.basher.BasherContext">
      ...
      <!-- This controls the YourKit profiling agent -->
      <profilerContext implementation="net.sourceforge.basher.YourKitProfilerContext"/>
      ...
    </basherContext>
  </basherContexts>
</configuration>
...