<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one or more
  ~ contributor license agreements.  See the NOTICE file distributed with
  ~ this work for additional information regarding copyright ownership.
  ~ The ASF licenses this file to You 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">
    <parent>
        <groupId>com.alipay.sofa</groupId>
        <artifactId>sofa-boot-plugins</artifactId>
        <version>3.2.1</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>runtime-sofa-boot-plugin</artifactId>
    <properties>
        <main.user.dir>${basedir}/../../..</main.user.dir>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.alipay.sofa</groupId>
            <artifactId>runtime-sofa-boot</artifactId>
        </dependency>

        <dependency>
            <groupId>com.alipay.sofa</groupId>
            <artifactId>hessian</artifactId>
        </dependency>

        <dependency>
            <groupId>aopalliance</groupId>
            <artifactId>aopalliance</artifactId>
            <version>1.0</version>
            <optional>true</optional>
        </dependency>

        <dependency>
            <groupId>com.alipay.sofa</groupId>
            <artifactId>sofa-ark-spi</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.alipay.sofa</groupId>
                <artifactId>sofa-ark-plugin-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>default-cli</id>
                        <goals>
                            <goal>ark-plugin</goal>
                        </goals>

                        <configuration>
                            <priority>1500</priority>
                            <activator>com.alipay.sofa.runtime.ark.plugin.SofaRuntimeActivator</activator>

                            <exported>
                                <packages>
                                    <package>com.alipay.sofa.runtime.api.component</package>
                                    <package>com.alipay.sofa.runtime.api.annotation</package>
                                    <package>com.alipay.sofa.runtime.api.aware</package>
                                    <package>com.alipay.sofa.runtime.api.binding</package>
                                    <package>com.alipay.sofa.runtime.api.component</package>
                                    <package>com.alipay.sofa.runtime.api.client.*</package>

                                    <package>com.alipay.sofa.runtime.service.helper</package>
                                    <package>com.alipay.sofa.runtime.service.component</package>

                                    <package>com.alipay.sofa.runtime.spi.binding</package>
                                    <package>com.alipay.sofa.runtime.spi.health</package>
                                    <package>com.alipay.sofa.runtime.spi.util</package>
                                    <package>com.alipay.sofa.runtime.spi.client</package>
                                    <package>com.alipay.sofa.runtime.spi.component</package>

                                    <package>com.alipay.sofa.runtime.client.impl</package>
                                    <package>com.alipay.sofa.runtime.component.impl</package>
                                    <package>com.alipay.sofa.runtime.model.*</package>

                                    <package>org.aopalliance.aop</package>
                                    <package>org.aopalliance.intercept</package>
                                </packages>

                                <classes>
                                    <class>com.alipay.sofa.runtime.service.binding.JvmBinding</class>
                                    <class>com.alipay.sofa.runtime.service.binding.JvmBindingParam</class>
                                    <class>com.alipay.sofa.runtime.SofaFramework</class>
                                    <class>com.alipay.sofa.runtime.SofaRuntimeProperties</class>

                                    <class>com.alipay.sofa.runtime.api.ServiceRuntimeException</class>
                                    <class>com.alipay.sofa.runtime.api.ServiceValidationException</class>

                                    <class>com.alipay.sofa.runtime.component.impl.ComponentManagerImpl</class>
                                    <class>com.alipay.sofa.runtime.component.impl.StandardSofaRuntimeManager</class>

                                    <class>com.alipay.sofa.runtime.spi.spring.RuntimeShutdownAware</class>
                                    <class>com.alipay.sofa.runtime.spi.spring.SofaRuntimeContextAware</class>
                                    <class>com.alipay.sofa.runtime.spi.service.ServiceProxy</class>

                                    <class>com.alipay.sofa.runtime.invoke.DynamicJvmServiceProxyFinder</class>
                                    <class>com.alipay.sofa.boot.health.RuntimeHealthChecker</class>
                                </classes>
                            </exported>

                            <excludeGroupIds>
                                <excludeGroupId>org.springframework</excludeGroupId>
                                <excludeGroupId>org.springframework.boot</excludeGroupId>
                                <excludeGroupId>org.apache.tomcat.embed</excludeGroupId>
                            </excludeGroupIds>

                            <excludeArtifactIds>
                                <excludeArtifactId>hibernate-validator</excludeArtifactId>
                                <excludeArtifactId>classmate</excludeArtifactId>
                                <excludeArtifactId>jboss-logging</excludeArtifactId>
                                <excludeArtifactId>jackson-annotations</excludeArtifactId>
                                <excludeArtifactId>jackson-core</excludeArtifactId>
                                <excludeArtifactId>jackson-databind</excludeArtifactId>
                                <excludeArtifactId>jcl-over-slf4j</excludeArtifactId>
                                <excludeArtifactId>jul-to-slf4j</excludeArtifactId>
                                <excludeArtifactId>log4j-over-slf4j</excludeArtifactId>
                                <excludeArtifactId>snakeyaml</excludeArtifactId>
                                <excludeArtifactId>validation-api</excludeArtifactId>
                                <excludeArtifactId>log-sofa-boot-starter</excludeArtifactId>
                            </excludeArtifactIds>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
