parasoft:compile

Full name:

Parasoft:maven-parasoft-plugin:3.13:compile

Description:

Compiles application sources and send results to GRS server

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Binds by default to the lifecycle phase: compile.

Required Parameters

Name Type Since Description
enableGRS boolean - flag to tell compiler to send result to GRS
Default value is: true.
grsServerName String - GRS Server Name
grsServerPort int - GRS Server port number
Default value is: 32323.

Optional Parameters

Name Type Since Description
compilerArgument String -

Unformatted argument string to be passed to the compiler if fork is set to true.

This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.


compilerArguments Map -

Arguments to be passed to the compiler (prepending a dash) if fork is set to true.

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", if fork is set to true
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
exclude String - A string containing a list of exclusion filters for the compiler delimited by commas.
excludes Set - A list of exclusion filters for the compiler.
executable String - The executable of the compiler to use when fork is true.
failOnError boolean - Indicates whether the build will continue even if there are compilation errors; defaults to true.
Default value is: true.
fork boolean - Allows running the compiler in a separate process. If "false" it uses the built in compiler, while if "true" it will use an executable.
Default value is: false.
grsAttributes ArrayList - set GRS User-defined Attributes each item should have attributename:attribute value
grsAttributesString String - set GRS User-defined Attributes each item should have attributename:attribute value
include String - A string containing a list of inclusion filters for the compiler delimited by commas.
includes Set - A list of inclusion filters for the compiler.
maxmem String - maximum size, in megabytes, of the memory allocation pool, ex. "128", "128m" if fork is set to true
meminitial String - Initial size, in megabytes, of the memory allocation pool, ex. "64", "64m" if fork is set to true
nightly boolean - attribute to set for nightly build.
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: true.
source String - The -source argument for the Java compiler
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
verbose boolean - Whether to output messages about what the compiler is doing
Default value is: false.

Parameter Details

compilerArgument:

Unformatted argument string to be passed to the compiler if fork is set to true.

This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.

  • Type: java.lang.String
  • Required: No

compilerArguments:

Arguments to be passed to the compiler (prepending a dash) if fork is set to true.

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
  • Expression: ${maven.compiler.compilerId}
  • Default: javac

compilerVersion:

Version of the compiler to use, ex. "1.3", "1.5", if fork is set to true
  • Type: java.lang.String
  • Required: No
  • Expression: ${maven.compiler.compilerVersion}

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

enableGRS:

flag to tell compiler to send result to GRS
  • Type: boolean
  • Required: Yes
  • Expression: ${project.grs.enable}
  • Default: true

encoding:

The -encoding argument for the Java compiler
  • Type: java.lang.String
  • Required: No
  • Expression: ${maven.compiler.encoding}

exclude:

A string containing a list of exclusion filters for the compiler delimited by commas.
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.build.excludes}

excludes:

A list of exclusion filters for the compiler.
  • Type: java.util.Set
  • Required: No

executable:

The executable of the compiler to use when fork is true.
  • Type: java.lang.String
  • Required: No
  • Expression: ${maven.compiler.executable}

failOnError:

Indicates whether the build will continue even if there are compilation errors; defaults to true.
  • Type: boolean
  • Required: No
  • Expression: ${maven.compiler.failOnError}
  • Default: true

fork:

Allows running the compiler in a separate process. If "false" it uses the built in compiler, while if "true" it will use an executable.
  • Type: boolean
  • Required: No
  • Default: false

grsAttributes:

set GRS User-defined Attributes each item should have attributename:attribute value
  • Type: java.util.ArrayList
  • Required: No

grsAttributesString:

set GRS User-defined Attributes each item should have attributename:attribute value
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.grs.attributes}

grsServerName:

GRS Server Name
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${project.grs.servername}

grsServerPort:

GRS Server port number
  • Type: int
  • Required: Yes
  • Expression: ${project.grs.serverport}
  • Default: 32323

include:

A string containing a list of inclusion filters for the compiler delimited by commas.
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.build.includes}

includes:

A list of inclusion filters for the compiler.
  • Type: java.util.Set
  • Required: No

maxmem:

maximum size, in megabytes, of the memory allocation pool, ex. "128", "128m" if fork is set to true
  • Type: java.lang.String
  • Required: No
  • Expression: ${maven.compiler.maxmem}

meminitial:

Initial size, in megabytes, of the memory allocation pool, ex. "64", "64m" if fork is set to true
  • Type: java.lang.String
  • Required: No
  • Expression: ${maven.compiler.meminitial}

nightly:

attribute to set for nightly build.
  • Type: boolean
  • Required: No
  • Expression: ${project.grs.nightly}
  • Default: false

optimize:

Optimize compiled code using the compiler's optimization methods
  • Type: boolean
  • Required: No
  • Expression: ${maven.compiler.optimize}
  • 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
  • Expression: ${maven.compiler.showDeprecation}
  • Default: false

showWarnings:

Output warnings
  • Type: boolean
  • Required: No
  • Expression: ${maven.compiler.showWarnings}
  • Default: true

source:

The -source argument for the Java compiler
  • Type: java.lang.String
  • Required: No
  • Expression: ${maven.compiler.source}

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
  • Expression: ${maven.compiler.target}

verbose:

Whether to output messages about what the compiler is doing
  • Type: boolean
  • Required: No
  • Expression: ${maven.compiler.verbose}
  • Default: false