pom.xml 3.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
<?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>
        <artifactId>sharding-jdbc</artifactId>
        <groupId>io.shardingjdbc</groupId>
        <version>2.1.0-SNAPSHOT</version>
    </parent>
11
    <artifactId>sharding-proxy</artifactId>
12 13 14 15 16 17 18 19 20
    <name>${project.artifactId}</name>
    
    <properties>
        <sharding-jdbc.version>2.1.0-SNAPSHOT</sharding-jdbc.version>
    </properties>
    
    <dependencies>
        <dependency>
            <groupId>io.shardingjdbc</groupId>
21
            <artifactId>sharding-jdbc-orchestration</artifactId>
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
            <version>${sharding-jdbc.version}</version>
        </dependency>
        
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
        </dependency>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-all</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>

        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
44 45 46
            <groupId>com.zaxxer</groupId>
            <artifactId>HikariCP-java7</artifactId>
            <scope>compile</scope>
47 48 49 50 51 52
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>
T
terrymanu 已提交
53
        
54 55 56 57
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
        </dependency>
58
        
59 60 61 62 63 64 65 66 67
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-library</artifactId>
        </dependency>
    </dependencies>
68

T
terrymanu 已提交
69 70 71 72 73
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <configuration>
74
                    <appendAssemblyId>false</appendAssemblyId>
T
terrymanu 已提交
75 76 77 78 79 80 81 82 83 84 85 86 87 88
                    <descriptors>
                        <descriptor>src/main/resources/assembly/assembly.xml</descriptor>
                    </descriptors>
                </configuration>
                <executions>
                    <execution>
                        <id>assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <configuration>
                    <imageName>shardingjdbc/sharding-proxy:2.1.0-SNAPSHOT</imageName>
                    <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
                    <resources>
                        <resource>
                            <targetPath>/</targetPath>
                            <directory>${project.build.directory}</directory>
                            <include>${project.build.finalName}.tar.gz</include>
                        </resource>
                    </resources>
                </configuration>
            </plugin>
T
terrymanu 已提交
104 105 106
        </plugins>
    </build>
</project>