I use the maven-plugin-for-azure-functions
to create a Java Function App with a custom Trigger Binding. The custom trigger is created by another .Net project and publishs its artifacts via an Azure Devops Artifacts feed as an universal package.
I consume the custom trigger as universal package to get rid of the .Net dependencies during my Java Function App build.
While I download the package and copy its content into the stagingDirectory
, the maven-plugin-for-azure-functions
tries to install some extensions, too.
[INFO] Step 8 of 8: Installing function extensions if needed
...
[INFO] Function extension installation done.
The step creates a extensions.csproj
with some default extensions and overrides the files of my custom extension. I tried to remove the PackageReference
elements, but it's reverted with every package
run.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<WarningsAsErrors></WarningsAsErrors>
<DefaultItemExcludes>**</DefaultItemExcludes>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.EventGrid" Version="2.1.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator" Version="1.1.3" />
</ItemGroup>
</Project>
How can I disable the function extensions installation?