Set Up a Local Developer Environment
A local development environment creates an isolated workspace for testing and debugging applications. If they work in a local environment, external factors (such as changes in shared dev or test environments, or updates to the cluster) do not interfere with the developer’s work. A local environment can be tailored to individual developer needs and provides a faster feedback loop through live-reloading supported in local Quarkus runtimes.If you need a remote sandbox instead, see Set up a remote sandbox.
Prerequisites
Before you set up a local environment, complete the following tasks:Java JDK 17
Install Eclipse Temurin JDK distribution
Apache Maven
Install Maven for project management
Git
Install Git for version control
IDE
Install IntelliJ IDEA or VS Code
Install Java Development Kit (JDK)
Grand Central uses the Eclipse Temurin JDK distribution. The supported Java runtime version is 17.- Download the JDK specific for your operating system and architecture
- Install according to the installation guide
- Verify installation:
Install Maven
All connectors, API projects, and Grand Central SDKs use Apache Maven as a software project management tool.- Follow the Maven installation guide
- Verify installation:
Configure Your Local Developer Environment
Step 1: Configure Maven Credentials
Set the credentials that Maven requires to retrieve artifacts from repositories.1
Create Maven Settings File
Create
~/.m2/settings.xml if it doesn’t exist2
Encrypt Master Password
Encrypt credentials with a Maven master password and store in
~/.m2/settings-security.xmlStep 2: Create Personal API Keys
GitHub Personal Access Token
1
Generate Token
Generate a GitHub access tokenMake sure to select the
read:packages scope2
Authorize Token
Authorize the token for use with SAML SSO in your organization
Backbase Artifactory Token
1
Access Artifactory
Go to repo.backbase.com
2
Generate Token
- Click your profile image in the top right corner
- Select Set Me Up
- Select Maven
- Click Generate Token & Create Instructions
Encrypt Your Tokens
Encrypt your access tokens:You don’t need to pass the token as a parameter; the secret will be read from standard input.
Step 3: Configure Maven Settings
Create or update~/.m2/settings.xml with your encrypted credentials:
Step 4: Configure Git
Set Up Git User Configuration
Replace the following values with your own and run in your terminal:Generate SSH Key for GitHub
Configure GPG Signing
To ensure you correctly sign off your commits:1
Generate GPG Key
Create and configure a GPG signatureUse any PGP implementation (e.g., GNU Privacy Guard)
2
Add GPG Key to GitHub
3
Configure Git for Signing
List keys and configure Git to use your GPG key:
Verify Your Setup
To verify that your setup is successful, build the Grand Central connector template:Expected Output
If your setup is correct, these commands generate:Quarkus Application
Ready-to-use Quarkus application with Camel routes in
target/quarkus-app directoryOpenAPI Spec
OpenAPI specification implemented by the connector in
target/generated-resources directoryTroubleshooting
Maven can't download artifacts
Maven can't download artifacts
- Verify your GitHub token has
read:packagesscope - Ensure tokens are correctly encrypted in
settings.xml - Check that SSO is authorized for your tokens
- Verify repository URLs match your organization
Git authentication fails
Git authentication fails
- Verify SSH key is added to GitHub account
- Ensure SSH key is authorized for SSO
- Check Git configuration with
git config --list
GPG signing issues
GPG signing issues
- Verify GPG key is added to GitHub
- Check GPG agent is running
- Ensure correct key ID is configured in Git
Build fails with Java version error
Build fails with Java version error
- Verify Java 17 is installed:
java -version - Set JAVA_HOME environment variable
- Ensure Maven is using correct Java version