Dashboard > GreenPepper Open Documentation Refactoring > ... > 3. Use GreenPepper Maven plugin > Maven plugin goals
  GreenPepper Open Documentation Refactoring Log In View a printable version of the current page.  
  Maven plugin goals
Added by Laurent Cobos, last edited by Laurent Cobos on Aug 13, 2009  (view change)
Labels: 
(None)

Goals

greenpepper:compile

It compiles fixtures of an application.

Mojo attributes:

  • Requires a Maven 2.0 project to execute
  • Requires dependency resolution of artifacts in scope: test
  • Automatically executes within the lifecycle phase: preintegration test

Required parameters

Name Type Description
fixtureSourceDirectory File The source directory containing the fixture sources to be compiled.
fixtureOutputDirectory File The output directory into which to copy the resources.

Optional parameters

Same as Maven compiler plugin.

Parameter details

fixtureSourceDirectory: The source directory containing the fixture sources to be compiled.

  • Type: java.io.File
  • Required: Yes
  • Expression:


fixtureOutputDirectory: The output directory into which to copy the resources.

  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/fixture-test-classes

greenpepper:resources

It copies resources for the main source code to the main output directory.

Mojo attributes:

  • Requires a Maven 2.0 project to execute
  • Automatically executes within the lifecycle phase: preintegration test

Required parameters

Name Type Description
fixtureOutputDirectory File The output directory into which to copy the resources.
resources List The list of resources to be transfered.

Optional parameters

Same as Maven 2 resources plugin

Parameter details

fixtureOutputDirectory: The output directory into which to copy the resources.

  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/fixture-test-classes


Resources: The list of resources we want to transfer.

  • Type: java.util.List
  • Required: Yes
  • Expression:

greenpepper:run

It executes the GreenPepper specifications.

Mojo attributes:

  • Requires a Maven 2.0 project to execute
  • Requires dependency resolution of artifacts in scope: test
  • Automatically executes within the lifecycle phase: integration test

Required parameters

Name Type Description
basedir File The base directory of the project being tested. This can be obtained in your unit test by System.getProperty("basedir").
classesDirectory File The directory containing generated classes of the project being tested.
fixtureOutputDirectory File The directory containing generated fixture classes of the project being tested.
repositories Repository Suite or test uri of specifications to test.
reportsDirectory File Output directory of the generated reports.
stopOnFirstFailure Boolean Stop the execution of the specification on the first failure
testFailureIgnore Boolean Set this to true to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion.

Parameter details

basedir: The base directory of the project being tested. This can be obtained in your unit test by System.getProperty("basedir").

  • Type: java.io.File
  • Required: Yes
  • Expression: ${basedir}


classesDirectory: The directory containing generated classes of the project being tested.

  • Type: java.util.List
  • Required: Yes
  • Expression: ${project.build.outputDirectory}


fixtureOutputDirectory: The output directory into which to copy the resources.

  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/fixture-test-classes


reportsDirectory: Output directory of the generated reports.

  • Type: java.io.File
  • Required: yes
  • Expression: ${project.build.directory}/greenpepper-reports

greenpepper:fixture-jar

It builds the fixture jar.

Mojo attributes:

  • Requires a Maven 2.0 project to execute
  • Requires dependency resolution of artifacts in scope: test
  • Automatically executes within the lifecycle phase: postintegration test

Required parameters

Name Type Description
fixtureOutputDirectory File The directory containing generated fixture classes of the project being tested.

Parameter details

fixtureOutputDirectory: The output directory into which to copy the resources.

  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/fixture-test-classes

greenpepper:freeze

It downloads specification files from the remote repositories and stores them locally.

Have a look at this blog post : Put your specifications in the freezer

Mojo attributes:

  • Requires a Maven 2.0 project to execute
  • Requires dependency resolution of artifacts in scope: test
  • Is not bound to any lifecycle phase

Required parameters

Name Type Description
specsDirectory File The directory where specification files should be downloaded. Default value: ${basedir}/src/specs
repositories Repository Suite or test uri of specifications to download.

Parameter details

specsDirectory: The destination directory for specifications. Specification files will be stored under a sub-directory named after the repository and optionally a sub-directory named after the suite.

  • Type: java.io.File
  • Required: Yes
  • Expression: ${basedir}/src/specs
Maven plugin compile (GreenPepper Open Documentation Refactoring )
Maven plugin fixture-jar (GreenPepper Open Documentation Refactoring )
Maven plugin freeze (GreenPepper Open Documentation Refactoring )
Maven plugin resources (GreenPepper Open Documentation Refactoring )
Maven plugin run (GreenPepper Open Documentation Refactoring )

DEMONSTRATION LICENSE - This Confluence site is for demonstration purposes only. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.4.3 Build:#705 Mar 21, 2007) - Bug/feature request - Contact Administrators