pom.xml 2.12 KB
<?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">
    <parent>
        <artifactId>sentinel-demo</artifactId>
        <groupId>com.alibaba.csp</groupId>
        <version>1.8.3</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>sentinel-demo-dubbo</artifactId>

    <dependencies>
        <!-- Demo use Dubbo 2.6.x, since it supports JDK 1.7 -->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>dubbo</artifactId>
            <version>2.6.6</version>
        </dependency>

        <!-- Dubbo provides qos plugin since 2.5.8 and is enable by default. -->
        <!-- The dubbo-qos module is optional and it depends Netty 4.x, so add it explicitly -->
        <!-- @see http://dubbo.apache.org/zh-cn/docs/user/references/qos.html -->
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-all</artifactId>
            <version>4.1.42.Final</version>
        </dependency>

        <!-- As demo use @DubboComponentScan to config, which is implemented in dubbo-config-spring module -->
        <!-- The dubbo-config-spring module is optional and it depends spring-context-support, so add it explicitly-->
        <!-- @see https://github.com/apache/incubator-dubbo/issues/2869 -->
        <dependency>
            <groupId>com.alibaba.spring</groupId>
            <artifactId>spring-context-support</artifactId>
            <version>1.0.2</version>
        </dependency>

        <!-- Sentinel adapter and transport -->
        <dependency>
            <groupId>com.alibaba.csp</groupId>
            <artifactId>sentinel-dubbo-adapter</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.alibaba.csp</groupId>
            <artifactId>sentinel-transport-simple-http</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>

</project>