We will create a simple Azure Java project as follows:.
- Create a new directory for the project and run the mvn archetype:generate command, given as follows:
mvn archetype:generate \ -DarchetypeGroupId=com.microsoft.azure \ -DarchetypeArtifactId=azure-functions-archetype
Note: If you are using Windows, you may replace \ with ^.
Provide values for the variables, as follows:
-
- Define the value for the 'groupId': tech.heartin.books.serverless-cookbook property
- Define the value for the 'artifactId' : helloworld-azure-fn property
- Define the value for the 'version' 1.0-SNAPSHOT : : property
- Define the value for the 'package': tech.heartin.books.serverlesscookbook property
- Define the value for the 'appName' : HelloWorldAzureFn ...