Skip to content

Function Archetype Test Plan

Sheng Chen edited this page Jul 23, 2018 · 10 revisions

Clear local cache

  • Delete following from maven local cache (it's in your local maven repo)

    • azure-functions-maven-plugin
    • azure-maven-plugins-pom
    • azure-maven-plugin-lib
    • azure-maven-plugins
    • azure-functions-archetype
  • Add following profile to your settings.xml

<profiles>
    <profile>
      <id>archetype</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <repositories>
        <repository>
          <id>archetype</id>
          <url>https://oss.sonatype.org/content/repositories/commicrosoftazure-{id}/</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>
    </profile>
  </profiles>

Generate archetype

  1. Run mvn archetype:generate -DarchetypeGroupId=com.microsoft.azure -DarchetypeArtifactId=azure-functions-archetype -DarchetypeVersion={version}
  2. Make sure you are using the right version of the archetype from the output
Using the one from [com.microsoft.azure:azure-functions-archetype:{NEWEST_VERSION}] found in catalog local
  1. User can specify the resource group

Test according to the Test Plan for Maven plugin

Clone this wiki locally