Using the Veracode SCA agent
Requirements
Scanning a repository that uses Java and one of its build or package managers requires the ability to build the code within the environment in which you scan the project.
Your environment must meet these requirements.