Maven Setup
For Java-based Overture services
Prerequisites
Before you begin, ensure you have the following installed on your system:
- JDK version (e.g., JDK11)
- Docker (version X or higher)
- [Any other project-specific prerequisites]
Developer Setup
This guide will walk you through setting up a complete development environment for [Software Name], including its complementary services.
Setting up supporting services
We'll use Conductor to spin up [Software Name]'s complementary services.
-
Clone the Conductor repository and move into its directory:
git clone [orchestration-tool-repo-url]
cd [orchestration-tool-directory] -
Run the appropriate start command for your operating system:
Operating System Command Unix/macOS [unix-command]
Windows [windows-command]
Click here for a detailed breakdown
This command will set up all complementary services for [Software Name] development as follows:
Service Port Description Purpose in [Software Name] Development [Service 1] [Port] [Description] [Purpose] [Service 2] [Port] [Description] [Purpose] [Service 3] [Port] [Description] [Purpose] - Ensure all ports are free on your system before starting the environment.
- You may need to adjust the ports in the configuration file if you have conflicts with existing services.
For more information, see our Conductor documentation
Running the Development Server
-
Clone [Software Name] and move into its directory:
git clone [project-repo-url]
cd [project-directory] -
Build the application locally:
./mvnw clean install -DskipTests
Click here for an explanation of the command above
./mvnw
: This is the Maven wrapper script, which ensures you're using the correct version of Maven.clean
: This removes any previously compiled files.install
: This compiles the project, runs tests, and installs the package into your local Maven repository.-DskipTests
: This flag skips running tests during the build process to speed things up.
tipEnsure you are running the correct JDK version. To check, you can run
java --version
. You should see something similar to the following:[Expected Java version output]
-
Start the [Software Name] Server:
[command-to-start-server]
infoIf you are looking to configure [Software Name] for your specific environment, the server configuration file can be found here. A summary of the available Spring profiles is provided below:
Click here for a summary of the server spring profiles
[Software Name] Profiles
Profile Description [profile1]
[Description] [profile2]
[Description] [profile3]
[Description]
Verification
After installing and configuring [Software Name], verify that the system is functioning correctly:
-
Check Server Health
[health-check-command]
- Expected result: [Expected result]
- Troubleshooting:
- [Troubleshooting step 1]
- [Troubleshooting step 2]
-
Check the API Documentation
- Navigate to
[api-docs-url]
in a web browser - Expected result: [Expected result]
- Troubleshooting:
- [Troubleshooting step 1]
- [Troubleshooting step 2]
- Navigate to
-
Test [Key API Endpoint]
- Using API Documentation UI:
- [Step 1]
- [Step 2]
- [Step 3]
- Alternatively, use curl:
[curl-command]
- Expected result: [Expected result]
- Using API Documentation UI:
For further assistance, open an issue on GitHub.
This guide is meant to demonstrate the configuration and usage of [Software Name] for development purposes and is not intended for production. If you ignore this warning and use this in any public or production environment, please remember to use appropriate Spring profiles and security measures.