azure-maven-plugins
azure-maven-plugins copied to clipboard
Ability to specify staging directory in configuration
Plugin name and version
azure-functions-maven-plugin:1.16.0
Plugin configuration in your pom.xml
<plugin>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-functions-maven-plugin</artifactId>
<version>1.16.0</version>
<configuration>
<appName>${functionAppName}</appName>
<resourceGroup>${resourceGroup}</resourceGroup>
<appServicePlanName>${appServicePlanName}</appServicePlanName>
<runtime>
<os>linux</os>
<javaVersion>8</javaVersion>
</runtime>
<auth>
<type>service_principal</type>
<serverId>azure-auth</serverId>
</auth>
</configuration>
<executions>
<execution>
<id>package-functions</id>
<goals>
<goal>package</goal>
</goals>
</execution>
</executions>
</plugin>
Expected behavior
Sometimes names of the function app and staging directory are different and it would be good to have ability to specify staging directory manually in plugin configuration
Actual behavior
Currently it's not possible to specify staging directory in azure-functions-maven-plugin configuration
@jshaptic Thanks a lot for your feedback, I agree that staging directory should be customized, I've added this item to the back log.
Besides, currently maven toolkit will use <appName>
in plugin configuration as the name of staging folder, could you please help share the project that app name diffs from staging folder name if possible?
I don't think I will be able to find some open-source project with such needs, but I can share some details regarding my current project. We have a multi-environment setup, where each environment has its own function instance and each one has diffferent name, e.g. function-dev, function-stage, function-prod etc. So, it would be really good to have ability to build only once, but deploy many times to different environments - in this case staging folder will have environment-agnostic name, whereas app name will have environment prefix.
I see this has been open for a year now. Any idea when this issue will be worked on? We have the exact same need as the OP.