If you want to use the Java Runtime for Azure in your Java microservice projects, you can! Here's how you can create your own App Host:
- Clone this repository onto your machine.
- From the root of the repository, run
mvn -f azure-runtime/azure-runtime-maven-tools clean install
. - Go to your existing Java project and run the following:
mvn archetype:generate \
-DarchetypeGroupId=com.azure \
-DarchetypeArtifactId=azure-runtime-maven-tools \
-DarchetypeVersion=1.0-SNAPSHOT
- Follow the prompts to create your new App Host project.
- You will see a new directory created in your project with the name you provided in the prompt. Inside this directory you will find a new
AppHost
Java class that you can use to define your infrastructure as code.