<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>com.mulesoft.connectors</groupId>
    <artifactId>mule-connectivity-parent</artifactId>
    <version>3.3.1-RUNTIME.4.2.1</version>
  </parent>

  <groupId>com.mulesoft.emu</groupId>
  <artifactId>ms-sfci-helloworld-upstream</artifactId>
  <version>2.6.2</version>
  <packaging>mule-extension</packaging>
  <name>ms-sfci-helloworld-upstream</name>
  <description>Upstream fork of ms-sfci-helloworld for W-23575568 dynamic downstream pilot.</description>

  <properties>
    <maven.compiler.source>11</maven.compiler.source>
    <maven.compiler.target>11</maven.compiler.target>
    <mule.sdk.api>0.12.0</mule.sdk.api>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.mule.sdk</groupId>
      <artifactId>mule-sdk-api</artifactId>
      <version>${mule.sdk.api}</version>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <!--
        Pin munit-extensions-maven-plugin to 1.5.0 AND suppress the parent-inherited
        default-test execution. The parent (mule-connectivity-parent) binds
        munit-extensions-maven-plugin:1.0.0 to the integration-test phase, and its
        transitive chain resolves mule-runtime-bom:4.3.1-SNAPSHOT which has been
        purged from Nexus (see Build #5 mvn-deploy failure). Overriding via
        <pluginManagement> was ineffective because the parent declares the plugin
        directly in <plugins>. We declare it in child <plugins> here so the pin
        takes effect, and we also disable the default-test execution because this
        project ships no munit tests.
      -->
      <plugin>
        <groupId>com.mulesoft.munit</groupId>
        <artifactId>munit-extensions-maven-plugin</artifactId>
        <version>1.5.0</version>
        <executions>
          <execution>
            <id>default-test</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>connector-analyze</id>
            <configuration>
              <ignoredUnusedDeclaredDependencies combine.children="append">
                <ignoredUnusedDeclaredDependency>com.mulesoft.connectors:mule-connector-commons:jar:2.1.0</ignoredUnusedDeclaredDependency>
              </ignoredUnusedDeclaredDependencies>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <repositories>
    <repository>
      <id>mule-releases</id>
      <name>Mule Public Releases</name>
      <url>https://repository-master.mulesoft.org/nexus/content/repositories/releases/</url>
    </repository>
  </repositories>
</project>
