<?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>ch.sbb.polarion.extensions</groupId>
        <artifactId>ch.sbb.polarion.extension.generic</artifactId>
        <version>16.2.0</version>
    </parent>

    <name>Versatile extension for developing additional extensions within Polarion ALM: common code and resources</name>
    <artifactId>ch.sbb.polarion.extension.generic.app</artifactId>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <!-- combine.self="override" drops the parent's OSGi manifest entries on purpose: this jar is a
                     plain library, not a bundle. It ships inside every extension's WEB-INF/lib and is listed on
                     that extension's Bundle-ClassPath, so its classes are wired by the extension's bundle - which
                     is where Import-Package (including the jakarta.annotation pin) belongs and is applied. -->
                <configuration combine.self="override">
                    <excludes>
                        <exclude>**/*Test.class</exclude>
                    </excludes>
                    <archive>
                        <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
                        <manifestEntries>
                            <Version>${maven-jar-plugin.Bundle-Version}</Version>
                            <Timestamp>${maven-jar-plugin.Bundle-Build-Timestamp}</Timestamp>
                        </manifestEntries>
                    </archive>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>
