Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin should declare these Maven artifacts in provided scope #2305

Open
vitalijr2 opened this issue May 30, 2023 · 0 comments
Open

Plugin should declare these Maven artifacts in provided scope #2305

vitalijr2 opened this issue May 30, 2023 · 0 comments

Comments

@vitalijr2
Copy link

Plugin name and version

Name: com.microsoft.azure:azure-functions-maven-plugin
Version: 1.26.0

Plugin configuration in your pom.xml

      <plugin>
        <artifactId>azure-functions-maven-plugin</artifactId>
        <configuration>
          <!-- function app name -->
          <appName>${functionAppName}</appName>
          <!-- function app resource group -->
          <appServicePlanName>java-functions-app-service-plan</appServicePlanName>
          <!-- function app service plan name -->
          <appSettings>
            <property>
              <name>FUNCTIONS_EXTENSION_VERSION</name>
              <value>~4</value>
            </property>
          </appSettings>
          <!-- function app region-->
          <!-- refers https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Functions:-Configuration-Details#supported-regions for all valid values -->
          <region>westus</region>
          <!-- function pricingTier, default to be consumption if not specified -->
          <!-- refers https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Functions:-Configuration-Details#supported-pricing-tiers for all valid values -->
          <!-- <pricingTier></pricingTier> -->
          <!-- Whether to disable application insights, default is false -->
          <!-- refers https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Functions:-Configuration-Details for all valid configurations for application insights-->
          <!-- <disableAppInsights></disableAppInsights> -->
          <resourceGroup>java-functions-group</resourceGroup>
          <runtime>
            <!-- runtime os, could be windows, linux or docker-->
            <javaVersion>${java.version}</javaVersion>
            <os>windows</os>
          </runtime>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>package</goal>
            </goals>
            <id>package-functions</id>
          </execution>
        </executions>
        <groupId>com.microsoft.azure</groupId>
        <version>1.26.0</version>
      </plugin>

Expected behavior

There are no warnings

Actual behavior

Maven warns about issues in the plugin.

Steps to reproduce the problem

To get details run Maven with option maven.plugin.validation:

./mvnw -Dmaven.plugin.validation=VERBOSE

Maven shows next warnings:

[WARNING] 
[WARNING] Plugin validation issues were detected in 2 plugin(s)
[WARNING] 
[WARNING]  * com.microsoft.azure:azure-functions-maven-plugin:1.26.0
[WARNING]   Declared at location(s):
[WARNING]    * abc.qwerty:xyz:1.0.0-SNAPSHOT (pom.xml) @ line 18
[WARNING]   Used in module(s):
[WARNING]    * abc.qwerty:xyz:1.0.0-SNAPSHOT (pom.xml)
[WARNING]   Plugin issue(s):
[WARNING]    * Plugin should declare these Maven artifacts in `provided` scope: [org.apache.maven:maven-plugin-api:3.3.3, org.apache.maven:maven-model:3.3.3, org.apache.maven:maven-settings:3.3.3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant