Table of Contents
The Java-Wrapper is part of the AST-CLI project that provides a shared infrastructure across the AST projects. It contains technology neutral repository interfaces as well as a metadata model for persisting Java classes.
Add the Maven dependency:
<dependency>
<groupId>com.checkmarx.ast</groupId>
<artifactId>ast-cli-java-wrapper</artifactId>
<version>1.0.14</version>
</dependency>
To be able to build the code you should have:
-
Java (version above 1.8)
-
Maven (version above 3)
In your terminal, run:
- mvn clean install
To run integrations tests, you need to set up environment variables:
- In Linux systems run in terminal:
export CX_CLIENT_ID="{value}"
export CX_CLIENT_SECRET="{value}"
export CX_APIKEY="{value}"
export CX_BASE_URI="{value}"
export CX_BASE_AUTH_URI="{value}"
export CX_TENANT="{value}"
export PATH_TO_EXECUTABLE="{value}"
- In Windows systems run in powershell:
setx CX_CLIENT_ID {value}
setx CX_CLIENT_SECRET {value}
setx CX_APIKEY {value}
setx CX_BASE_URI {value}
setx CX_BASE_AUTH_URI {value}
setx CX_TENANT {value}
setx PATH_TO_EXECUTABLE {value}
Checkmarx - AST Integrations Team
Project Link: https://github.com/CheckmarxDev/ast-cli-java-wrapper
© 2021 Checkmarx Ltd. All Rights Reserved.