/
Sealights Maven plugin - Command reference

Sealights Maven plugin - Command reference

Build Scanner

Integrating into the pom.xml files

java -jar sl-build-scanner.jar -pom -configfile <arg> -workspacepath <arg> [-pluginversion <arg>]

Parameter

Description

Parameter

Description

configfile

The path to the JSON configuration you created with the parameters to be provided to the SeaLights Maven Plugin

workspacepath

The base path to the location of the pom.xml files to update

pluginversion

(Optional) Version of the Maven SeaLights Plugin to insert into the pom.xml

Restoring the pom.xml file to its previous state

java -jar sl-build-scanner.jar -restorePom -workspacepath <arg>

Parameter

Description

Parameter

Description

workspacepath

The base path to the location of the pom.xml files to update

Maven tool

Command line flags passed to Sealights maven plugin

mvn <arg> [{-DrunTestsOnly=<arg> | -DrunFunctionalTests=<arg>}] [-Dsl.modulesToSkip=<arg>]

Parameter

Default

Description

Parameter

Default

Description

runTestsOnly

false

Set to true to skip build-scanner
Note: when working with the Jenkins plugin this flag will not work, and you should use the runFunctionalTests=true

runFunctionalTests

false

(Deprecated: prefer including this flag in your JSON config file instead)
Set to true to skip build-scanner and only validate partially build session data (for example packages included are not mandatory)

sl.modulesToSkip



(Optional) A comma separated list of modules to skip. 

 

Related content

Running Tests (Only) using Sealights Maven plugin
Running Tests (Only) using Sealights Maven plugin
More like this
SeaLights CD Agent for Java Application
SeaLights CD Agent for Java Application
Read with this
SeaLights Jenkins plugin for Maven Project job - Scanning Builds and running Unit Tests using Maven
SeaLights Jenkins plugin for Maven Project job - Scanning Builds and running Unit Tests using Maven
More like this
Surefire integration
Surefire integration
Read with this
Scanning Builds and Capturing Unit Tests using the SeaLights Maven plugin
Scanning Builds and Capturing Unit Tests using the SeaLights Maven plugin
More like this
Running Tests with unittest, unittest2, pytest, nose or behave
Running Tests with unittest, unittest2, pytest, nose or behave
Read with this