Skip to content

Azure Functions: Archetype

yucwan edited this page Nov 26, 2019 · 1 revision

In an empty folder, run the following command to generate the Functions project from a Maven archetype.

mvn archetype:generate \
    -DarchetypeGroupId=com.microsoft.azure \
	-DarchetypeArtifactId=azure-functions-archetype 

Note

If you're experiencing issues with running the command, take a look at what maven-archetype-plugin version is used. Because you are running the command in an empty directory with no .pom file, it might be attempting to use a plugin of the older version from ~/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin if you upgraded your Maven from an older version. If so, try deleting the maven-archetype-plugin directory and re-running the command.

Clone this wiki locally