# Step 2 – Generate the API Client
source: https://developer.mastercard.com/account-catalog-services/tutorial/build-end-to-end-app/step2/index.md

## Step 2 -- Generate the API Client {#step-2--generate-the-api-client}

Now you have all the dependencies; you can generate the source code. You can navigate to the project root directory within a terminal window and run `mvn clean compile`.

A new folder named **target** is created within the root directory, which contains classes generated for the schemas and API calls defined within the OpenAPI Specification. The generated classes can be found in the target folder as shown below:

![](https://static.developer.mastercard.com/content/account-catalog-services/uploads/images/3.PNG)
