/
GreenPepper Maven Plugin - compile

GreenPepper Maven Plugin - compile

greenpepper:compile

Compiles fixture test sources.

Mojo Attributes

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

Required Parameters

Name

Type

Description

fixtureOutputDirectory

File

The directory where compiled fixture classes go. Default value is ${project.build.directory}/fixture-test-classes

fixtureSourceDirectory

File

The source directory containing the fixture sources to be compiled. Default value is ${basedir}/src/fixture/java

Optional Parameters

Name

Type

Description

compilerArguments

Map

Arguments to be passed to the compiler if fork is set to true.
<p/>
This is because the list of valid arguments passed to a Java compiler
varies based on the compiler version.

compilerId

String

The compiler id of the compiler to use. Default value is javac

compilerVersion

String

Version of the compiler to use, ex. "1.3", "1.5" Default value is 1.6

debug

boolean

Whether to include debugging information in the compiled class files.
The default value is true. Default value is true

encoding

String

The -encoding argument for the Java compiler

executable

String

The executable of the compiler to use.

fork

boolean

Runs the compiler in a separate process.
<p/>
If not set the compiler will default to a executable. Default value is false

optimize

boolean

Optimize compiled code using the compiler's optimization methods Default value is false

outputFileName

String

Used to control the name of the output file when compiling a set of
sources to a single file.

showDeprecation

boolean

Output source locations where deprecated APIs are used Default value is false

showWarnings

boolean

Output warnings Default value is false

skip

boolean

Set this to 'true' to bypass greenpepper fixture compilation process entirely.
Its use is NOT RECOMMENDED, but quite convenient on occasion. Default value is false

source

String

The -source argument for the Java compiler Default value is 1.6

staleMillis

int

The granularity in milliseconds of the last modification
date for testing whether a source needs recompilation Default value is 0

target

String

The -target argument for the Java compiler Default value is 1.6

testExcludes

Set

A list of exclusion filters for the compiler.

testIncludes

Set

A list of inclusion filters for the compiler.

verbose

boolean

Whether to output messages about what the compiler is doing Default value is false

Parameter Details

compilerArguments

Arguments to be passed to the compiler if fork is set to true.
<p/>
This is because the list of valid arguments passed to a Java compiler
varies based on the compiler version.

Type

java.util.Map

Required

No

compilerId

The compiler id of the compiler to use.

Type

java.lang.String

Required

No

Default

javac

compilerVersion

Version of the compiler to use, ex. "1.3", "1.5"

Type

java.lang.String

Required

No

Default

1.6

debug

Whether to include debugging information in the compiled class files.
The default value is true.

Type

boolean

Required

No

Expression

${maven.compiler.debug}

Default

true

encoding

The -encoding argument for the Java compiler

Type

java.lang.String

Required

No

executable

The executable of the compiler to use.

Type

java.lang.String

Required

No

fixtureOutputDirectory

The directory where compiled fixture classes go.

Type

java.io.File

Required

Yes

Default

${project.build.directory}/fixture-test-classes

fixtureSourceDirectory

The source directory containing the fixture sources to be compiled.

Type

java.io.File

Required

Yes

Default

${basedir}/src/fixture/java

fork

Runs the compiler in a separate process.
<p/>
If not set the compiler will default to a executable.

Type

boolean

Required

No

Default

false

optimize

Optimize compiled code using the compiler's optimization methods

Type

boolean

Required

No

Default

false

outputFileName

Used to control the name of the output file when compiling a set of
sources to a single file.

Type

java.lang.String

Required

No

Expression

${project.build.finalName}

showDeprecation

Output source locations where deprecated APIs are used

Type

boolean

Required

No

Default

false

showWarnings

Output warnings

Type

boolean

Required

No

Default

false

skip

Set this to 'true' to bypass greenpepper fixture compilation process entirely.
Its use is NOT RECOMMENDED, but quite convenient on occasion.

Type

boolean

Required

No

Expression

${maven.greenpepper.test.skip}

Default

false

source

The -source argument for the Java compiler

Type

java.lang.String

Required

No

Default

1.6

staleMillis

The granularity in milliseconds of the last modification
date for testing whether a source needs recompilation

Type

int

Required

No

Expression

${lastModGranularityMs}

Default

0

target

The -target argument for the Java compiler

Type

java.lang.String

Required

No

Default

1.6

testExcludes

A list of exclusion filters for the compiler.

Type

java.util.Set

Required

No

testIncludes

A list of inclusion filters for the compiler.

Type

java.util.Set

Required

No

verbose

Whether to output messages about what the compiler is doing

Type

boolean

Required

No

Default

false

Related content

GreenPepper Maven Plugin - fixture-jar
GreenPepper Maven Plugin - fixture-jar
More like this
GreenPepper Maven Plugin - run
GreenPepper Maven Plugin - run
More like this
GreenPepper Maven Plugin - generate-fixtures
GreenPepper Maven Plugin - generate-fixtures
More like this
GreenPepper Maven Plugin - resources
GreenPepper Maven Plugin - resources
More like this
GreenPepper Maven Plugin - Usage
GreenPepper Maven Plugin - Usage
More like this
GreenPepper Maven Plugin - Generate Fixtures
GreenPepper Maven Plugin - Generate Fixtures
More like this