Dashboard > GreenPepper Server > ... > Maven guide > Maven plugin usage
 GreenPepperAnonymous access is denied. You must log in to use GreenPepper.

Some brief examples on how to use this plugin.

Executing your fixture specifications

Except for the Freeze goal, the goals for the GreenPepper Maven plugin are bound to their respective phases in the build lifecycle. So, to compile your fixture sources, you only need to indicate Maven until which lifecycle to execute.

Providing you have configured your plugin (see section below):

  • The following will compile your fixture sources:
mvn greenpepper:compile
  • The following will copy your resources:
mvn greenpepper:resources
  • The following will execute your specifications:
mvn greenpepper:run
  • The following will create you fixture jar:
mvn greenpepper:fixture-jar
  • The following will download the specification files:
mvn greenpepper:freeze

Configuring your GreenPepper Maven plugin

<plugin>
	<groupId>GreenPepper</groupId>
	<artifactId>GreenPepper Maven plugin</artifactId>
	<version>2.0</version>
	<configuration>
	    <source>1.5</source>
	    <target>1.5</target>
	    <fixtureSourceDirectory><!-- put your fixture sources directory --></fixtureSourceDirectory>
	    <fixtureOutputDirectory><!-- put your fixture classes directory --></fixtureOutputDirectory>
	    <specsDirectory><!-- destination for downloaded specification files --></specsDirectory>
	    <resources>
	        <resource>
	            <directory></directory>
	            <excludes>
	                <exclude>**/*.java</exclude>
	            </excludes>
	        </resource>
	    </resources>
	    <repositories>
	        <repository>
		        <type><!-- put your suite resolver class--></type>
		        <suites>
		        	<suite><!-- put your suite uri --></suite>
		        </suites>
	        </repository>
	        <repository>
	            <type><!-- put your test resolver class--></type>
	            <tests>
	            	<test><!-- put your test uri --></test>
	            </tests>
	        </repository>
	    </repositories>
	</configuration>
<plugin>
© Pyxis Technologies Inc.. All rights reserved. GreenPepper® is registered to Pyxis Technologies inc.