Ronnie76er/jmeter-maven-plugin — pull request #49 by jribble (2012-04-13 20:06:21+00:00)
Title: jmeter:gui goal

Thanks for this maven plugin, it's been very helpful to me. I've been using it to develop test plans using custom java samplers. My samplers are dependent on a project that's dependent on a project, etc, etc. All of that is handled easily in Maven with the classpath being resolved by Maven for test runs.

However, I found it a problem to develop test plans in the GUI because I had to manually resolve the dependencies in order to get my custom java samplers to appear as an option. It seemed like it would be a lot easier to just use the maven plugin to launch the GUI, leveraging the classpath resolution through Maven.

That's what my changes do. They create a jmeter:gui goal that launches the GUI through maven with the same classpath resolution as is used for the jmeter goal. With this change it's no longer necessary to download and install jmeter separately - it can all be done through maven.

I also added a new plugin parameter "extensions". Custom java samplers are only searched for in jars that are considered extensions by jmeter. This new parameter allows the user to specify a list of artifact ids that will be considered extensions and searched for java samplers. This is done by copying the artifact file to lib/ext, the same as is done with the base jmeter jars.