<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ JBoss, Home of Professional Open Source.
  ~ Copyright 2021 Red Hat, Inc., and individual contributors
  ~ as indicated by the @author tags.
  ~
  ~ 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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.wildfly</groupId>
        <artifactId>wildfly-ee-9-parent</artifactId>
        <!--
        Maintain separation between the artifact id and the version to help prevent
        merge conflicts between commits changing the GA and those changing the V.
        -->
        <version>27.0.0.Alpha2</version>
    </parent>
    
    <artifactId>wildfly-preview-feature-pack</artifactId>

    <name>WildFly: EE 9 Preview Galleon Feature Pack</name>
    <description>Tech Preview Galleon feature pack providing full platform Jakarta EE 9 functionality</description>
    <packaging>pom</packaging>

    <properties>
        <license.directory>${project.build.directory}/resources/content/docs/licenses</license.directory>
        <mp.galleon.common.resources.directory>${basedir}/../../microprofile/galleon-common/src/main/resources</mp.galleon.common.resources.directory>
        <oidc.galleon.common.resources.directory>${basedir}/../../elytron-oidc-client/galleon-common/src/main/resources</oidc.galleon.common.resources.directory>
        <full.common.resources.directory>${basedir}/../../ee-feature-pack/common/src/main/resources</full.common.resources.directory>
        <full.galleon-common.resources.directory>${basedir}/../../ee-feature-pack/galleon-common/src/main/resources</full.galleon-common.resources.directory>
        <servlet.common.resources.directory>${basedir}/../../servlet-feature-pack/common/src/main/resources</servlet.common.resources.directory>
        <servlet.galleon-common.resources.directory>${basedir}/../../servlet-feature-pack/galleon-common/src/main/resources</servlet.galleon-common.resources.directory>

        <!-- WildFly full and ee galleon contents -->
        <full.galleon-content.resources.directory>${basedir}/../../galleon-pack/galleon-content/src/main/resources</full.galleon-content.resources.directory>
        <ee.galleon-content.resources.directory>${basedir}/../../ee-feature-pack/galleon-content/src/main/resources</ee.galleon-content.resources.directory>

        <!-- WildFly Preview modules -->
        <ee-9-api.resources.directory>${basedir}/../ee-9-api/src/main/resources</ee-9-api.resources.directory>
        <common.resources.directory>${basedir}/../common/src/main/resources</common.resources.directory>
        <common-microprofile.resources.directory>${basedir}/../common-microprofile/src/main/resources</common-microprofile.resources.directory>
        <content.resources.directory>${basedir}/../galleon-content/src/main/resources</content.resources.directory>
        <content-microprofile.resources.directory>${basedir}/../galleon-content-microprofile/src/main/resources</content-microprofile.resources.directory>

        <!-- WildFly Preview vs standard WildFly GAV expression properties. -->
        <module.jakarta.classifier>::jakarta</module.jakarta.classifier>
        <module.jakarta.suffix>-jakarta</module.jakarta.suffix>
        <module.jms.suffix>jakarta</module.jms.suffix>

        <!-- Miscellaneous properties -->
        <jakarta.transform.verbose>false</jakarta.transform.verbose>
    </properties>

    <build>
        <finalName>${server.output.dir.prefix}-galleon-pack-${server.output.dir.version}</finalName>
        <plugins>
            <plugin>
                <!-- Feature pack generation is vulnerable to leftover files in the target
                     folder from previous builds, so always clean even if the clean lifecycle is not invoked -->
                <artifactId>maven-clean-plugin</artifactId>
                <executions>
                    <execution>
                        <id>auto-clean</id>
                        <phase>initialize</phase>
                        <goals>
                            <goal>clean</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>unpack-core-common-feature-pack-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>org.wildfly.core</groupId>
                                    <artifactId>wildfly-core-feature-pack-common</artifactId>
                                    <type>zip</type>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.wildfly.core</groupId>
                                    <artifactId>wildfly-core-feature-pack-galleon-common</artifactId>
                                    <type>zip</type>
                                </artifactItem>
                            </artifactItems>
                            <outputDirectory>${basedir}/target/unpacked-wildfly-core-galleon-resources</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-unpacked-wildfly-core-galleon-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/resources</outputDirectory>
                            <escapeString>\</escapeString>
                            <resources>
                                <resource>
                                    <directory>${basedir}/target/unpacked-wildfly-core-galleon-resources</directory>
                                    <excludes>
                                        <exclude>modules/**/module.xml</exclude>
                                    </excludes>
                                </resource>
                                <resource>
                                    <directory>${basedir}/target/unpacked-wildfly-core-galleon-resources</directory>
                                    <includes>
                                        <include>modules/**/module.xml</include>
                                    </includes>
                                    <filtering>true</filtering>
                                </resource>
                            </resources>
                            <overwrite>true</overwrite>
                        </configuration>
                    </execution>
                    <execution>
                        <id>copy-servlet-common-feature-pack-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/resources</outputDirectory>
                            <escapeString>\</escapeString>
                            <resources>
                                <resource>
                                    <directory>${servlet.common.resources.directory}</directory>
                                    <excludes>
                                        <exclude>modules/**/module.xml</exclude>
                                        <exclude>license/*.xml</exclude>
                                    </excludes>
                                </resource>
                                <resource>
                                    <directory>${servlet.common.resources.directory}</directory>
                                    <includes>
                                        <include>modules/**/module.xml</include>
                                        <include>license/*.xml</include>
                                    </includes>
                                    <excludes>
                                        <exclude>**/org/jboss/as/security/main/module.xml</exclude>
                                    </excludes>
                                    <filtering>true</filtering>
                                </resource>
                            </resources>
                            <overwrite>true</overwrite>
                        </configuration>
                    </execution>
                    <execution>
                        <id>copy-servlet-galleon-common-feature-pack-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/resources</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${servlet.galleon-common.resources.directory}</directory>
                                </resource>
                            </resources>
                            <overwrite>true</overwrite>
                        </configuration>
                    </execution>
                    <execution>
                        <id>copy-full-common-feature-pack-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/resources</outputDirectory>
                            <escapeString>\</escapeString>
                            <resources>
                                <resource>
                                    <directory>${full.common.resources.directory}</directory>
                                    <excludes>
                                        <exclude>modules/**/module.xml</exclude>
                                        <exclude>license/*.xml</exclude>
                                    </excludes>
                                </resource>
                                <resource>
                                    <directory>${full.common.resources.directory}</directory>
                                    <includes>
                                        <include>modules/**/module.xml</include>
                                        <include>license/*.xml</include>
                                    </includes>
                                    <filtering>true</filtering>
                                </resource>
                            </resources>
                            <overwrite>true</overwrite>
                        </configuration>
                    </execution>
                    <execution>
                        <id>copy-full-galleon-common-feature-pack-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/resources</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${full.galleon-common.resources.directory}</directory>
                                </resource>
                            </resources>
                            <overwrite>true</overwrite>
                        </configuration>
                    </execution>
                    <execution>
                        <id>copy-mp-galleon-feature-pack-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/resources</outputDirectory>
                            <escapeString>\</escapeString>
                            <resources>
                                <resource>
                                    <directory>${mp.galleon.common.resources.directory}</directory>
                                    <excludes>
                                        <exclude>modules/**/module.xml</exclude>
                                        <exclude>license/*.xml</exclude>
                                        <exclude>layers/standalone/jaxrs</exclude>
                                    </excludes>
                                </resource>
                                <resource>
                                    <directory>${mp.galleon.common.resources.directory}</directory>
                                    <includes>
                                        <include>modules/**/module.xml</include>
                                        <include>license/*.xml</include>
                                    </includes>
                                    <excludes>
                                        <exclude>modules/**/io/opentracing/contrib/opentracing-interceptors/**/module.xml</exclude>
                                        <exclude>modules/**/io/opentracing/contrib/opentracing-jaxrs2/**/module.xml</exclude>
                                        <exclude>modules/**/io/opentracing/contrib/opentracing-tracerresolver/**/module.xml</exclude>
                                        <exclude>modules/**/io/opentracing/contrib/opentracing-web-servlet-filter/**/module.xml</exclude>
                                    </excludes>
                                    <filtering>true</filtering>
                                </resource>
                            </resources>
                            <overwrite>true</overwrite>
                        </configuration>
                    </execution>
                    <execution>
                        <id>copy-oidc-galleon-feature-pack-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/resources</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${oidc.galleon.common.resources.directory}</directory>
                                    <excludes>
                                        <exclude>modules/**/module.xml</exclude>
                                        <exclude>license/*.xml</exclude>
                                    </excludes>
                                </resource>
                                <resource>
                                    <directory>${oidc.galleon.common.resources.directory}</directory>
                                    <includes>
                                        <include>modules/**/module.xml</include>
                                        <include>license/*.xml</include>
                                    </includes>
                                    <filtering>true</filtering>
                                </resource>
                            </resources>
                            <overwrite>true</overwrite>
                        </configuration>
                    </execution>
                    <!-- WildFly preview feature pack common resources -->
                    <execution>
                        <id>copy-common-feature-pack-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/resources</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${common.resources.directory}</directory>
                                    <excludes>
                                        <exclude>modules/**/module.xml</exclude>
                                        <exclude>license/*.xml</exclude>
                                    </excludes>
                                </resource>
                                <resource>
                                    <directory>${common.resources.directory}</directory>
                                    <includes>
                                        <include>modules/**/module.xml</include>
                                        <include>license/*.xml</include>
                                    </includes>
                                    <filtering>true</filtering>
                                </resource>
                            </resources>
                            <overwrite>true</overwrite>
                        </configuration>
                    </execution>
                    <!-- WildFly preview feature pack common MicroProfile Resources -->
                    <execution>
                        <id>copy-common-microprofile-feature-pack-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/resources</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${common.resources.directory}</directory>
                                    <excludes>
                                        <exclude>modules/**/module.xml</exclude>
                                        <exclude>license/*.xml</exclude>
                                    </excludes>
                                </resource>
                                <resource>
                                    <directory>${common-microprofile.resources.directory}</directory>
                                    <includes>
                                        <include>modules/**/module.xml</include>
                                        <include>license/*.xml</include>
                                    </includes>
                                    <filtering>true</filtering>
                                </resource>
                            </resources>
                            <overwrite>true</overwrite>
                        </configuration>
                    </execution>
                    <!-- WildFly preview EE 9 API resources -->
                    <execution>
                        <id>copy-ee-9-api-feature-pack-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/resources</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${ee-9-api.resources.directory}</directory>
                                </resource>
                            </resources>
                            <overwrite>true</overwrite>
                        </configuration>
                    </execution>

                    <!-- WildFly EE Galleon Content -->
                    <execution>
                        <id>copy-ee.galleon-content-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/resources</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${ee.galleon-content.resources.directory}</directory>
                                </resource>
                            </resources>
                            <overwrite>true</overwrite>
                        </configuration>
                    </execution>

                    <!-- WildFly preview EE 9 Galleon Content -->
                    <execution>
                        <id>copy-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/resources</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${content.resources.directory}</directory>
                                </resource>
                            </resources>
                            <overwrite>true</overwrite>
                        </configuration>
                    </execution>

                    <!-- WildFly preview EE 9 Galleon Content -->
                    <execution>
                        <id>copy-content-microprofile-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/resources</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${content-microprofile.resources.directory}</directory>
                                </resource>
                            </resources>
                            <overwrite>true</overwrite>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.wildfly.maven.plugins</groupId>
                <artifactId>licenses-plugin</artifactId>
                <inherited>false</inherited>
                <configuration>
                    <sortByGroupIdAndArtifactId>true</sortByGroupIdAndArtifactId>
                    <excludedGroups>org.wildfly.galleon-plugins</excludedGroups>
                    <excludedArtifacts>wildfly-ee-galleon-pack|wildfly-jar-boot|infinispan-hibernate-cache-v51|jboss-ejb-client-legacy|wildfly-core-feature-pack-common|wildfly-core-feature-pack-galleon-common|wildfly-ee-feature-pack-common|wildfly-ee-feature-pack-galleon-common|wildfly-ee-feature-pack-pruned|wildfly-elytron\z|wildfly-preview-feature-pack-ee-9-api|wildfly-preview-feature-pack-common|wildfly-preview-feature-pack-common-microprofile</excludedArtifacts>
                </configuration>
                <executions>
                    <execution>
                        <id>update-licenses-xml</id>
                        <goals>
                            <goal>insert-versions</goal>
                        </goals>
                        <phase>process-resources</phase>
                        <configuration>
                            <licensesConfigFiles>
                                <licensesConfigFile>${basedir}/target/resources/license/core-feature-pack-common-licenses.xml</licensesConfigFile>
                                <licensesConfigFile>${basedir}/target/resources/license/servlet-feature-pack-common-licenses.xml</licensesConfigFile>
                                <licensesConfigFile>${basedir}/target/resources/license/ee-feature-pack-common-licenses.xml</licensesConfigFile>
                                <licensesConfigFile>${basedir}/target/resources/license/preview-feature-pack-licenses.xml</licensesConfigFile>
                                <licensesConfigFile>${basedir}/target/resources/license/elytron-oidc-feature-pack-licenses.xml</licensesConfigFile>
                                <licensesConfigFile>${basedir}/target/resources/license/microprofile-feature-pack-licenses.xml</licensesConfigFile>
                                <licensesConfigFile>${basedir}/target/resources/license/preview-feature-pack-ee-9-api-licenses.xml</licensesConfigFile>
                                <licensesConfigFile>${basedir}/target/resources/license/preview-feature-pack-common-licenses.xml</licensesConfigFile>
                                <licensesConfigFile>${basedir}/target/resources/license/preview-feature-pack-common-microprofile-licenses.xml</licensesConfigFile>
                            </licensesConfigFiles>
                            <licensesOutputFile>${license.directory}/microprofile-feature-pack-licenses.xml</licensesOutputFile>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.wildfly.galleon-plugins</groupId>
                <artifactId>wildfly-galleon-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>feature-pack-build</id>
                        <goals>
                            <goal>build-feature-pack</goal>
                        </goals>
                        <phase>prepare-package</phase>
                        <configuration>
                            <release-name>${preview.dist.product.release.name}</release-name>
                            <fork-embedded>${galleon.fork.embedded}</fork-embedded>
                            <task-properties>
                                <jakarta.transform.artifacts>true</jakarta.transform.artifacts>
                                <jakarta.transform.modules>false</jakarta.transform.modules>
                                <jakarta.transform.artifacts.suffix>-ee9</jakarta.transform.artifacts.suffix>
                                <product.release.version>${preview.dist.product.release.version}</product.release.version>
                            </task-properties>
                            <jakarta-transform>true</jakarta-transform>
                            <!--<jakarta-transform-configs-dir>EXTERNAL_FOLDER</jakarta-transform-configs-dir>-->
                            <jakarta-transform-verbose>${jakarta.transform.verbose}</jakarta-transform-verbose>
                            <jakarta-transform-excluded-artifacts>
                                <!-- Don't transform libs that use javax.servlet to provide side
                                     functionality (e.g. consoles or similar) that we do not support. -->
                                <exclude>com.h2database:h2\z</exclude>
                                <exclude>org.apache.thrift:libthrift\z</exclude>
                                <exclude>org.jasypt:jasypt\z</exclude>
                                <!-- Don't transform libraries that use the javax.annotation package but
                                     not the Jakarta Annotations APIs that share it with other APIs.
                                     Generally (perhaps always), this is from use of JSR 305 annotations -->
                                <exclude>com.github.fge:jackson-coreutils\z</exclude>
                                <exclude>com.github.fge:json-patch\z</exclude>
                                <exclude>com.github.fge:msg-simple\z</exclude>
                                <exclude>com.google.guava:guava\z</exclude>
                                <exclude>com.google.protobuf:protobuf-java-util\z</exclude>
                                <exclude>com.squareup.okhttp3:okhttp\z</exclude>
                                <exclude>com.squareup.okio:okio\z</exclude>
                                <exclude>io.grpc:grpc-api\z</exclude>
                                <exclude>io.grpc:grpc-context\z</exclude>
                                <exclude>io.grpc:grpc-protobuf\z</exclude>
                                <exclude>io.grpc:grpc-okhttp\z</exclude>
                                <exclude>io.grpc:grpc-core\z</exclude>
                                <exclude>io.grpc:grpc-protobuf-lite\z</exclude>
                                <exclude>io.grpc:grpc-stub\z</exclude>
                                <exclude>io.opentelemetry:opentelemetry-api\z</exclude>
                                <exclude>io.opentelemetry:opentelemetry-context\z</exclude>
                                <exclude>io.opentelemetry:opentelemetry-exporter-jaeger\z</exclude>
                                <exclude>io.opentelemetry:opentelemetry-exporter-otlp-common\z</exclude>
                                <exclude>io.opentelemetry:opentelemetry-exporter-otlp-trace\z</exclude>
                                <exclude>io.opentelemetry:opentelemetry-sdk\z</exclude>
                                <exclude>io.opentelemetry:opentelemetry-sdk-common\z</exclude>
                                <exclude>io.opentelemetry:opentelemetry-sdk-logs\z</exclude>
                                <exclude>io.opentelemetry:opentelemetry-sdk-metrics\z</exclude>
                                <exclude>io.opentelemetry:opentelemetry-sdk-trace\z</exclude>
                                <exclude>io.opentelemetry:opentelemetry-semconv\z</exclude>
                                <exclude>io.perfmark:perfmark-api\z</exclude>
                                <exclude>io.smallrye:smallrye-open-api-core</exclude>
                                <exclude>io.smallrye:smallrye-open-api-jaxrs</exclude>
                                <exclude>io.undertow:undertow-servlet\z</exclude>
                                <exclude>net.bytebuddy:byte-buddy\z</exclude>
                                <exclude>net.shibboleth.utilities:java-support\z</exclude>
                                <exclude>org.opensaml:opensaml-core\z</exclude>
                                <exclude>org.opensaml:opensaml-profile-api\z</exclude>
                                <exclude>org.opensaml:opensaml-security-impl\z</exclude>
                                <exclude>org.opensaml:opensaml-soap-api\z</exclude>
                                <exclude>org.opensaml:opensaml-saml-api\z</exclude>
                                <exclude>org.opensaml:opensaml-saml-impl\z</exclude>
                                <exclude>org.opensaml:opensaml-security-api\z</exclude>
                                <exclude>org.opensaml:opensaml-xmlsec-api\z</exclude>
                                <exclude>org.opensaml:opensaml-xmlsec-impl\z</exclude>
                                <!-- end javax.annotations excludes -->
                                <!-- Don't transform org.dom4j:dom4j as we don't use its package
                                     that uses jaxp -->
                                <exclude>org.dom4j:dom4j\z</exclude>
                                <!-- Don't transform artifacts only transformed due to data in a
                                     module-info.class or OSGi attributes in a MANIFEST.MF.
                                     These things are irrelevant to WildFly's use of artifacts.-->
                                <exclude>com.fasterxml.jackson.jaxrs:jackson-jaxrs-base\z</exclude>
                                <exclude>com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider\z</exclude>
                                <exclude>com.fasterxml.jackson.module:jackson-module-jaxb-annotations\z</exclude>
                                <!-- end JPMS or OSGi metadata excludes -->
                                <!-- Only contains hard-coded strings that are either not used or both the javax and
                                jakarta names are used or legacy text files like XSD's or XML configuration files -->
                                <exclude>jakarta.xml.bind:jakarta.xml.bind-api\z</exclude>
                                <exclude>org.apache.logging.log4j:log4j-api\z</exclude>
                                <exclude>org.apache.cxf:cxf-core\z</exclude>
                                <exclude>org.apache.cxf:cxf-rt-bindings-xml\z</exclude>
                                <exclude>org.apache.cxf:cxf-rt-databinding-jaxb\z</exclude>
                                <exclude>org.apache.cxf:cxf-rt-frontend-simple\z</exclude>
                                <exclude>org.apache.cxf:cxf-rt-transports-jms\z</exclude>
                                <exclude>org.apache.cxf:cxf-rt-transports-http\z</exclude>
                                <exclude>org.apache.cxf:cxf-rt-ws-rm\z</exclude>
                                <exclude>org.apache.cxf:cxf-tools-common\z</exclude>
                                <exclude>org.apache.cxf:cxf-tools-java2ws\z</exclude>
                                <exclude>org.glassfish.jaxb:jaxb-xjc\z</exclude>
                                <exclude>org.hibernate.orm:hibernate-core\z</exclude>
                                <exclude>org.hibernate.orm:hibernate-envers\z</exclude>
                                <exclude>org.hibernate.search:hibernate-search-mapper-orm-orm6\z</exclude>
                                <exclude>org.jboss.narayana.xts:jbossxts-jakarta\z</exclude>

                                <!-- Uses JSON only for formatting and uses an internal JSON generator -->
                                <exlude>org.jboss.logmanager:jboss-logmanager\z</exlude>
                                <!-- Uses javax JSON internally -->
                                <exclude>org.wildfly.core:wildfly-event-logger\z</exclude>
                                <!-- Don't transform Infinispan modules and its dependents -->
                                <exclude>org.jboss.spec.javax.transaction:jboss-transaction-api_1.3_spec</exclude>
                                <exclude>org.infinispan:.+\z</exclude>
                                <exclude>org.wildfly:wildfly-clustering-ee-cache\z</exclude>
                                <exclude>org.wildfly:wildfly-clustering-ee-infinispan\z</exclude>
                                <exclude>org.wildfly:wildfly-clustering-ee-hotrod\z</exclude>
                                <exclude>org.wildfly:wildfly-clustering-infinispan-client-.*\z</exclude>
                                <exclude>org.wildfly:wildfly-clustering-infinispan-embedded-.+\z</exclude>
                                <exclude>org.wildfly:wildfly-clustering-infinispan-extension\z</exclude>
                                <exclude>org.wildfly:wildfly-clustering-web-infinispan\z</exclude>

                                <exclude>org.hornetq:.+\z</exclude>
                                <exclude>org.apache.activemq:artemis-jakarta-client\z</exclude>
                                <exclude>org.apache.activemq:artemis-jakarta-ra\z</exclude>
                                <exclude>org.apache.activemq:artemis-jakarta-server\z</exclude>
                                <exclude>org.apache.activemq:artemis-jakarta-service-extensions\z</exclude>
                                <exclude>org.apache.activemq:artemis-journal\z</exclude>
                                <exclude>org.apache.activemq:artemis-jdbc-store\z</exclude>
                                <exclude>org.apache.activemq:artemis-amqp-protocol\z</exclude>
                                <exclude>org.apache.activemq:artemis-hornetq-protocol\z</exclude>
                                <exclude>org.apache.activemq:artemis-stomp-protocol\z</exclude>
                                <exclude>org.apache.activemq:artemis-hqclient-protocol\z</exclude>
                                <exclude>org.apache.activemq:artemis-selector\z</exclude>
                                <exclude>org.apache.activemq:artemis-cli\z</exclude>
                                <exclude>org.apache.activemq:artemis-commons\z</exclude>
                                <exclude>org.apache.activemq:artemis-core-client\z</exclude>
                                <exclude>org.apache.activemq:artemis-dto\z</exclude>
                                <exclude>org.apache.activemq:artemis-server\z</exclude>
                                <exclude>org.glassfish:jakarta.json\z</exclude>
                                <exclude>activemq-artemis-native\z</exclude>
                                <exclude>org.jboss.activemq.artemis.integration:artemis-wildfly-jakarta-integration\z</exclude>

                                <!-- Depends on javax.json API that it bundles.
                                   Transformation bound to org.wildfly.security.auth.client.spi.WebServicesClientConfigProviderImpl
                                   is meaningless, this class is not being used by CLI.
                                -->
                                <exclude>org.wildfly.core:wildfly-cli:client\z</exclude>

                                <!-- Issue filed for removal of log4j 1.x, WFCORE-5781. Skipping this may break users
                                     who use appenders like the SMTPAppender. However, most of the Jakarta EE appenders
                                     do not work with WildFly. We should ignore the transformation as we'll be removing
                                     in the near future.
                                  -->
                                <exclude>org.jboss.logmanager:log4j-jboss-logmanager\z</exclude>
                            </jakarta-transform-excluded-artifacts>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>

        <!-- feature pack dependencies -->

        <dependency>
            <groupId>org.wildfly.galleon-plugins</groupId>
            <artifactId>wildfly-galleon-plugins</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>org.wildfly.galleon-plugins</groupId>
            <artifactId>wildfly-config-gen</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>org.wildfly.galleon-plugins</groupId>
            <artifactId>transformer</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- module and copy artifact dependencies -->

        <!-- Deps from the source modules we copy in -->

        <dependency>
            <groupId>org.wildfly.core</groupId>
            <artifactId>wildfly-core-feature-pack-common</artifactId>
            <type>pom</type>
            <scope>provided</scope>
            <exclusions>
                <!-- Exclude deps that have been replaced with different artifacts in this FP.
                     TODO perhaps put these in a different maven module that we don't pull in -->
                <exclusion>
                    <groupId>org.jboss.invocation</groupId>
                    <artifactId>jboss-invocation</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.core</groupId>
                    <artifactId>wildfly-elytron-integration</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.security</groupId>
                    <artifactId>wildfly-elytron-jacc</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.security</groupId>
                    <artifactId>wildfly-elytron-jaspi</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.security</groupId>
                    <artifactId>wildfly-elytron-audit</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.security</groupId>
                    <artifactId>wildfly-elytron-client</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.security</groupId>
                    <artifactId>wildfly-elytron-http-oidc</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.security</groupId>
                    <artifactId>wildfly-elytron-json-util</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.security</groupId>
                    <artifactId>wildfly-elytron-mechanism-oauth2</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.security</groupId>
                    <artifactId>wildfly-elytron-realm-token</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.security</groupId>
                    <artifactId>wildfly-elytron-tool</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.security</groupId>
                    <artifactId>wildfly-elytron-x500-cert-acme</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>org.wildfly.core</groupId>
            <artifactId>wildfly-core-feature-pack-galleon-common</artifactId>
            <type>pom</type>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.wildfly.core</groupId>
                    <artifactId>wildfly-elytron-integration</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>org.wildfly.core</groupId>
            <artifactId>wildfly-elytron-integration-jakarta</artifactId>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>*</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>${full.maven.groupId}</groupId>
            <artifactId>wildfly-mp-feature-pack-galleon-common</artifactId>
            <type>pom</type>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>${full.maven.groupId}</groupId>
                    <artifactId>wildfly-microprofile-fault-tolerance-smallrye-executor</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${full.maven.groupId}</groupId>
                    <artifactId>wildfly-microprofile-fault-tolerance-smallrye-extension</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${full.maven.groupId}</groupId>
                    <artifactId>wildfly-microprofile-jwt-smallrye</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${full.maven.groupId}</groupId>
                    <artifactId>wildfly-microprofile-openapi-smallrye</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${full.maven.groupId}</groupId>
                    <artifactId>wildfly-microprofile-reactive-streams-operators-cdi-provider</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${full.maven.groupId}</groupId>
                    <artifactId>wildfly-microprofile-opentracing-smallrye</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${full.maven.groupId}</groupId>
                    <artifactId>wildfly-microprofile-opentracing-extension</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.resteasy</groupId>
                    <artifactId>resteasy-client-microprofile</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.resteasy</groupId>
                    <artifactId>resteasy-client-microprofile-base</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${full.maven.groupId}</groupId>
                    <artifactId>wildfly-microprofile-health-smallrye</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.opentracing.contrib</groupId>
                    <artifactId>opentracing-jaxrs2</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.opentracing.contrib</groupId>
                    <artifactId>opentracing-interceptors</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.opentracing.contrib</groupId>
                    <artifactId>opentracing-tracerresolver</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.opentracing.contrib</groupId>
                    <artifactId>opentracing-web-servlet-filter</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>${full.maven.groupId}</groupId>
            <artifactId>wildfly-oidc-feature-pack-galleon-common</artifactId>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>${ee.maven.groupId}</groupId>
            <artifactId>wildfly-ee-feature-pack-common</artifactId>
            <version>${ee.maven.version}</version>
            <type>pom</type>
            <scope>provided</scope>
            <exclusions>
                <!-- Exclude non-EE9+ wildfly module deps that have been replaced with -jakarta variant in this FP
                     We could put these in pruned so they don't get pulled in but then when we change
                     the standard module source to use jakarta.* and drop the -jakarta artifacts we'll just
                     have to move back. -->
                <exclusion>
                    <groupId>antlr</groupId>
                    <artifactId>antlr</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.agroal</groupId>
                    <artifactId>agroal-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.agroal</groupId>
                    <artifactId>agroal-narayana</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.agroal</groupId>
                    <artifactId>agroal-pool</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>jipijapa-spi</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>jipijapa-eclipselink</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${ee.maven.groupId}</groupId>
                    <artifactId>jipijapa-hibernate5-3</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${ee.maven.groupId}</groupId>
                    <artifactId>wildfly-opentelemetry-api</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>${ee.maven.groupId}</groupId>
                    <artifactId>wildfly-opentelemetry</artifactId>
                </exclusion>

                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-batch-jberet</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-bean-validation</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-clustering-el-glassfish</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-clustering-faces-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-clustering-faces-mojarra</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-clustering-weld-core</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-clustering-weld-ejb</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-clustering-weld-web</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-clustering-web-undertow</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-datasources-agroal</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-ee-security</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-ejb3</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-jaxrs</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-jpa</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-jsf</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-jsf-injection</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-mail</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-messaging-activemq-injection</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-messaging-activemq-subsystem</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-mod_cluster-undertow</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-rts</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-webservices-server-integration</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-weld-bean-validation</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-weld</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-weld-common</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-weld-ejb</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-weld-jpa</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-weld-spi</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-weld-transactions</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-weld-webservices</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-xts</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.istack</groupId>
                    <artifactId>istack-commons-runtime</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.istack</groupId>
                    <artifactId>istack-commons-tools</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.ironjacamar</groupId>
                    <artifactId>ironjacamar-common-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.ironjacamar</groupId>
                    <artifactId>ironjacamar-common-impl</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.ironjacamar</groupId>
                    <artifactId>ironjacamar-common-spi</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.ironjacamar</groupId>
                    <artifactId>ironjacamar-core-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.ironjacamar</groupId>
                    <artifactId>ironjacamar-core-impl</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.ironjacamar</groupId>
                    <artifactId>ironjacamar-deployers-common</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.ironjacamar</groupId>
                    <artifactId>ironjacamar-jdbc</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.ironjacamar</groupId>
                    <artifactId>ironjacamar-validator</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss</groupId>
                    <artifactId>jboss-iiop-client</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss</groupId>
                    <artifactId>jboss-ejb-client</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.hibernate</groupId>
                    <artifactId>hibernate-core</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.hibernate</groupId>
                    <artifactId>hibernate-envers</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.hibernate</groupId>
                    <artifactId>hibernate-search-engine</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.hibernate</groupId>
                    <artifactId>hibernate-search-orm</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.hibernate</groupId>
                    <artifactId>hibernate-search-backend-jms</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.hibernate</groupId>
                    <artifactId>hibernate-search-serialization-avro</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jvnet.staxex</groupId>
                    <artifactId>stax-ex</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-connector</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.wildfly-http-client</groupId>
                    <artifactId>wildfly-http-ejb-client</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.wildfly-http-client</groupId>
                    <artifactId>wildfly-http-transaction-client</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-iiop-openjdk</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly</groupId>
                    <artifactId>wildfly-transactions</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.narayana.jts</groupId>
                    <artifactId>narayana-jts-idlj</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.narayana.jts</groupId>
                    <artifactId>narayana-jts-integration</artifactId>
                </exclusion>
               <exclusion>
                    <groupId>org.jboss.narayana.xts</groupId>
                    <artifactId>jbossxts</artifactId>
               </exclusion>
               <exclusion>
                    <groupId>org.jboss.narayana</groupId>
                    <artifactId>jbosstxbridge</artifactId>
               </exclusion>
               <exclusion>
                    <groupId>org.jboss.narayana.compensations</groupId>
                    <artifactId>compensations</artifactId>
               </exclusion>
               <exclusion>
                    <groupId>org.jboss.narayana.txframework</groupId>
                    <artifactId>txframework</artifactId>
               </exclusion>
                <!-- RTS -->
                <exclusion>
                    <groupId>org.jboss.narayana.rts</groupId>
                    <artifactId>restat-bridge</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.narayana.rts</groupId>
                    <artifactId>restat-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.narayana.rts</groupId>
                    <artifactId>restat-integration</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.narayana.rts</groupId>
                    <artifactId>restat-util</artifactId>
                </exclusion>
                <!-- end RTS -->
                <exclusion>
                    <groupId>org.jboss.openjdk-orb</groupId>
                    <artifactId>openjdk-orb</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.resteasy</groupId>
                    <artifactId>resteasy-spring</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>${ee.maven.groupId}</groupId>
            <artifactId>wildfly-ee-feature-pack-galleon-common</artifactId>
            <version>${ee.maven.version}</version>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>${ee.maven.groupId}</groupId>
            <artifactId>wildfly-servlet-feature-pack-common</artifactId>
            <version>${ee.maven.version}</version>
            <type>pom</type>
            <scope>provided</scope>
            <exclusions>
                <!-- Exclude deps that have been replaced with different artifacts in this FP
                     TODO perhaps put these in a different maven module that we don't pull in -->
                <exclusion>
                    <groupId>io.undertow</groupId>
                    <artifactId>undertow-servlet</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.undertow</groupId>
                    <artifactId>undertow-websockets-jsr</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.undertow.jastow</groupId>
                    <artifactId>jastow</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.glassfish</groupId>
                    <artifactId>jakarta.el</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.metadata</groupId>
                    <artifactId>jboss-metadata-common</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.core</groupId>
                    <artifactId>wildfly-elytron-integration</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-ee</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-undertow</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>${project.groupId}</groupId>
                    <artifactId>wildfly-web-common</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.wildfly.security.elytron-web</groupId>
                    <artifactId>undertow-server-servlet</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>${ee.maven.groupId}</groupId>
            <artifactId>wildfly-servlet-feature-pack-galleon-common</artifactId>
            <version>${ee.maven.version}</version>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>${ee.maven.groupId}</groupId>
            <artifactId>wildfly-ee-9-deployment-transformer</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- Bring in all the WildFly preview feature pack common deps in one go -->
        <dependency>
            <groupId>${ee.maven.groupId}</groupId>
            <artifactId>wildfly-preview-feature-pack-common</artifactId>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>

        <!-- Bring in all the WildFly Preview 9 API deps in one go -->
        <dependency>
            <groupId>${ee.maven.groupId}</groupId>
            <artifactId>wildfly-preview-feature-pack-ee-9-api</artifactId>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>

        <!-- Bring in all the WildFly Preview 9 Common MicroProfile deps in one go -->
        <dependency>
            <groupId>${ee.maven.groupId}</groupId>
            <artifactId>wildfly-preview-feature-pack-common-microprofile</artifactId>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <!-- This profile should only be activated to download licenses from remote URLs
                 instead of copying the license files from the src/main/resources/content/docs/licences
                 directory -->
            <id>download-licenses</id>
            <activation>
                <property>
                    <name>download-licenses</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>license-maven-plugin</artifactId>
                        <inherited>false</inherited>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>download-licenses</goal>
                                </goals>
                                <phase>prepare-package</phase>
                                <configuration>
                                    <licensesOutputDirectory>${basedir}/target/resources/content/docs/licenses</licensesOutputDirectory>
                                    <licensesOutputFile>${basedir}/target/resources/content/docs/licenses/licenses.xml</licensesOutputFile>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>enforce</id>
            <activation>
                <property>
                    <name>!skip-enforce</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-enforcer-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>ban-transitive-deps</id>
                                <goals>
                                    <goal>enforce</goal>
                                </goals>
                                <configuration>
                                    <rules>
                                        <banTransitiveDependencies>
                                            <excludes>
                                                <!-- Ignore jdk jars because they are system scope -->
                                                <exclude>com.sun:tools</exclude>
                                                <exclude>sun.jdk:jconsole</exclude>
                                                <!-- Ignore the shared resource poms as those we want their
                                                     transitives. Those poms ban transitives at their level -->
                                                <exclude>org.wildfly.core:wildfly-core-feature-pack-common</exclude>
                                                <exclude>${full.maven.groupId}:wildfly-mp-feature-pack-galleon-common</exclude>
                                                <exclude>${full.maven.groupId}:wildfly-oidc-feature-pack-galleon-common</exclude>
                                                <exclude>${ee.maven.groupId}:wildfly-ee-feature-pack-common</exclude>
                                                <exclude>${ee.maven.groupId}:wildfly-servlet-feature-pack-common</exclude>
                                                <exclude>${ee.maven.groupId}:wildfly-preview-feature-pack-ee-9-api</exclude>
                                                <exclude>${ee.maven.groupId}:wildfly-preview-feature-pack-common</exclude>
                                                <exclude>${ee.maven.groupId}:wildfly-preview-feature-pack-common-microprofile</exclude>
                                            </excludes>
                                        </banTransitiveDependencies>
                                    </rules>
                                </configuration>
                            </execution>
                        </executions>

                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>enforce-product</id>
            <activation>
                <property>
                    <name>enforce-product</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-enforcer-plugin</artifactId>
                        <dependencies>
                            <dependency>
                                <groupId>org.jboss.maven.plugins.enforcer.rules</groupId>
                                <artifactId>version-enforcer-rule</artifactId>
                                <version>1.0.0</version>
                            </dependency>
                        </dependencies>
                        <executions>
                            <execution>
                                <id>ban-non-product-deps</id>
                                <goals>
                                    <goal>enforce</goal>
                                </goals>
                                <configuration>
                                    <rules>
                                        <rule implementation="org.jboss.maven.plugins.enforcer.rules.version.BanVersionDependenciesRule">
                                          <versionPattern>^((?!redhat).)*$</versionPattern>
                                        </rule>
                                    </rules>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>javadocDist</id>
            <properties>
                <javadoc.branding>WildFly public API - ${project.version}</javadoc.branding>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>${version.javadoc.plugin}</version>
                        <executions>
                            <execution>
                                <id>javadocs-dist</id>
                                <goals>
                                    <goal>aggregate-jar</goal>
                                </goals>
                                <phase>validate</phase>
                                <configuration>
                                    <verbose>true</verbose>
                                    <maxmemory>2400m</maxmemory>
                                    <!-- To prevent problems with author names written in non-UTF-8:
                                    -->
                                    <encoding>ISO-8859-1</encoding>

                                    <windowtitle>${javadoc.branding} public API</windowtitle>
                                    <doctitle>${javadoc.branding} public API</doctitle>
                                    <header>${javadoc.branding}</header>
                                    <footer>${javadoc.branding}</footer>

                                    <includeDependencySources>true</includeDependencySources>
                                    <dependencySourceIncludes>
                                        <!-- Filled by a script during creation of Javadoc. -->
                                    </dependencySourceIncludes>

                                    <dependencySourceExcludes>
                                        <!-- Filled by a script during creation of Javadoc. -->
                                    </dependencySourceExcludes>

                                    <groups>
                                        <!-- Filled by a script during creation of Javadoc. -->
                                    </groups>

                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>
