Maven-Builder
Definition
The mavenbuilder is a command line tool that is used to manage dependencies of scenarios.
How to Use
To use the tool:
- Open your Command Prompt or Terminal.
- Navigate to the directory where the Maven Builder is located.
- Enter the command
mavenbuilderwith the desired commands and options:
mavenbuilder <command(s)> <option(s)>
Example:
mavenbuilder validate compile install --source=<path to source directory> --userSettings=<path to user setting file> --skipErrors=all
Supported Commands
| Command | Description |
|---|---|
compile | Compiles a PSC file from a scenario. |
validate | Validates all scenario elements. |
deploy | Deploys a PSC file to a remote repository. |
install | Installs a PSC file to the local repository. |
update | Automatically updates library imports. |
verify | Checks if imported elements were locally changed and are inconsistent with the importing scenario. |
cleanpsc | Removes test cases from the PSC file. |
Supported Options
| Options | Description |
|---|---|
--offline | Do not access remote repositories. |
--userSettings=<path> | Path to the maven user settings file. |
--target=<path> | Path to the target directory. |
--source=<path> | Path to a workspace or scenario directory. |
--skipErrors=<all / comma separated list of commands> | Specifies if the errors in the given commands should be ignored. |
--skipTransitiveUpdate | Updates only direct dependencies. Does not follow the transitive dependencies. |
--preserve | Keeps the test cases in the final PSC file. |
note
If the source directory is a workspace folder, the commands will be applied to all scenario folders. If the source directory is a scenario, only that scenario will be processed.
If a target directory is given (--target option), all generated PSC files will also be stored in the target directory. If not, a temporary target directory will be used and automatically deleted after the build.