<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (C) 2006-2026 Talend Inc. - www.talend.com
   Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.talend.sdk.component.loading-analysis</groupId>
        <artifactId>loading-analysis</artifactId>
        <version>1.93.0</version>
    </parent>

    <!-- All artifacts with group starting by 'org.talend.sdk.component' are automatically excluded -->
    <!-- So we changed the group to org.talend.sdk.component.loading-analysis -->
    <artifactId>loading-dependencies-common</artifactId>
    <packaging>jar</packaging>
    <name>Component Runtime :: Sample Features :: Loading Analysis :: Loading Dependencies Common</name>

    <dependencies>
        <dependency>
            <groupId>org.talend.sdk.component</groupId>
            <artifactId>component-runtime-manager</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.resolver</groupId>
            <artifactId>maven-resolver-api</artifactId>
            <version>2.0.14</version>
            <!-- This one is provided since there is an explicit import -->
            <scope>provided</scope>
        </dependency>
        <!-- End of explicit dynamic dependencies because of an issue. -->
    </dependencies>

    <build>
        <testResources>
            <testResource>
                <!-- This is to parse the test/resources/version.properties file -->
                <directory>src/test/resources</directory>
                <filtering>true</filtering>
            </testResource>
        </testResources>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifestEntries>
                            <Automatic-Module-Name>loading.dependencies.common</Automatic-Module-Name>
                        </manifestEntries>
                    </archive>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>create-TALEND-INF/dependencies.txt</id>
                        <goals>
                            <goal>list</goal>
                        </goals>
                        <phase>none</phase>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.talend.sdk.component</groupId>
                <artifactId>talend-component-maven-plugin</artifactId>
                <version>${project.version}</version>
                <executions>
                    <execution>
                        <id>talend-component-validate</id>
                        <configuration>
                            <validateInternationalization>false</validateInternationalization>
                            <validateDataStore>false</validateDataStore>
                            <validateDataSet>false</validateDataSet>
                        </configuration>
                    </execution>
                    <execution>
                        <id>talend-dependencies</id>
                        <goals>
                            <goal>dependencies</goal>
                        </goals>
                        <phase>none</phase>
                    </execution>
                    <execution>
                        <id>talend-component-bundle</id>
                        <goals>
                            <goal>car</goal>
                        </goals>
                        <phase>none</phase>
                    </execution>
                    <execution>
                        <id>talend-scan-descriptor</id>
                        <goals>
                            <goal>scan-descriptor</goal>
                        </goals>
                        <phase>none</phase>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>