| <?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"> |
| <modelVersion>4.0.0</modelVersion> |
| <groupId>org.apache.shardingsphere.example</groupId> |
| <artifactId>shardingsphere-example</artifactId> |
| <version>5.0.0-alpha</version> |
| <packaging>pom</packaging> |
| <name>${project.artifactId}</name> |
| |
| <modules> |
| <module>example-core</module> |
| <module>shardingsphere-jdbc-example</module> |
| <module>shardingsphere-proxy-example</module> |
| </modules> |
| |
| <properties> |
| <java.version>1.8</java.version> |
| <maven.version.range>[3.0.4,)</maven.version.range> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <project.build.locale>zh_CN</project.build.locale> |
| |
| <shardingsphere.version>5.0.0-RC1-SNAPSHOT</shardingsphere.version> |
| |
| <aspectjweaver.version>1.8.9</aspectjweaver.version> |
| <spring-framework.version>4.3.20.RELEASE</spring-framework.version> |
| <spring-boot.version>1.5.17.RELEASE</spring-boot.version> |
| <hikari-cp.version>2.4.11</hikari-cp.version> |
| <mysql-connector-java.version>5.1.42</mysql-connector-java.version> |
| <postgresql.version>42.2.5.jre7</postgresql.version> |
| <h2.version>1.4.196</h2.version> |
| <slf4j.version>1.7.7</slf4j.version> |
| <logback.version>1.2.0</logback.version> |
| |
| <mybatis.version>3.4.2</mybatis.version> |
| <mybatis-spring.version>1.3.0</mybatis-spring.version> |
| <jpa.version>1.0.0.Final</jpa.version> |
| <hibernate.version>4.3.11.Final</hibernate.version> |
| <narayana.version>5.9.1.Final</narayana.version> |
| <jboss-transaction-spi.version>7.6.0.Final</jboss-transaction-spi.version> |
| <jboss-logging.version>3.2.1.Final</jboss-logging.version> |
| <btm.version>2.1.3</btm.version> |
| |
| <seata.version>1.0.0</seata.version> |
| |
| <junit.version>4.12</junit.version> |
| <hamcrest.version>1.3</hamcrest.version> |
| <mockito.version>2.7.21</mockito.version> |
| |
| <apache-rat-plugin.version>0.12</apache-rat-plugin.version> |
| <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version> |
| <maven-resources-plugin.version>2.7</maven-resources-plugin.version> |
| <maven-jar-plugin.version>2.6</maven-jar-plugin.version> |
| <maven-source-plugin.version>2.4</maven-source-plugin.version> |
| |
| <javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable> |
| </properties> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-sharding-api</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-encrypt-common</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-jdbc-core</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-jdbc-governance</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-transaction-core</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-transaction-xa-core</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-transaction-xa-bitronix</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-transaction-xa-narayana</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-transaction-base-seata-at</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-jdbc-governance-spring-boot-starter</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-jdbc-core-spring-namespace</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-jdbc-governance-spring-namespace</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-governance-repository-zookeeper-curator</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-governance-repository-nacos</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-governance-repository-etcd</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.shardingsphere</groupId> |
| <artifactId>shardingsphere-infra-common</artifactId> |
| <version>${shardingsphere.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.aspectj</groupId> |
| <artifactId>aspectjweaver</artifactId> |
| <version>${aspectjweaver.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-orm</artifactId> |
| <version>${spring-framework.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-context-support</artifactId> |
| <version>${spring-framework.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-tx</artifactId> |
| <version>${spring-framework.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-jdbc</artifactId> |
| <version>${spring-framework.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.hibernate.javax.persistence</groupId> |
| <artifactId>hibernate-jpa-2.1-api</artifactId> |
| <version>${jpa.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.hibernate</groupId> |
| <artifactId>hibernate-core</artifactId> |
| <version>${hibernate.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.hibernate</groupId> |
| <artifactId>hibernate-entitymanager</artifactId> |
| <version>${hibernate.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-data-jpa</artifactId> |
| <version>${spring-boot.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-aop</artifactId> |
| <version>${spring-boot.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-jdbc</artifactId> |
| <version>${spring-boot.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.mybatis</groupId> |
| <artifactId>mybatis</artifactId> |
| <version>${mybatis.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.mybatis</groupId> |
| <artifactId>mybatis-spring</artifactId> |
| <version>${mybatis-spring.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.mybatis.spring.boot</groupId> |
| <artifactId>mybatis-spring-boot-starter</artifactId> |
| <version>${mybatis-spring.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.btm</groupId> |
| <artifactId>btm</artifactId> |
| <version>${btm.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.narayana.jta</groupId> |
| <artifactId>jta</artifactId> |
| <version>${narayana.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.narayana.jts</groupId> |
| <artifactId>narayana-jts-integration</artifactId> |
| <version>${narayana.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss</groupId> |
| <artifactId>jboss-transaction-spi</artifactId> |
| <version>${jboss-transaction-spi.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.logging</groupId> |
| <artifactId>jboss-logging</artifactId> |
| <version>${jboss-logging.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.seata</groupId> |
| <artifactId>seata-rm-datasource</artifactId> |
| <version>${seata.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.seata</groupId> |
| <artifactId>seata-tm</artifactId> |
| <version>${seata.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.seata</groupId> |
| <artifactId>seata-codec-all</artifactId> |
| <version>${seata.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-test</artifactId> |
| <version>${spring-boot.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-test</artifactId> |
| <version>${spring-framework.version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <dependencies> |
| <dependency> |
| <groupId>com.zaxxer</groupId> |
| <artifactId>HikariCP-java7</artifactId> |
| <version>${hikari-cp.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>mysql</groupId> |
| <artifactId>mysql-connector-java</artifactId> |
| <version>${mysql-connector-java.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.postgresql</groupId> |
| <artifactId>postgresql</artifactId> |
| <version>${postgresql.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.h2database</groupId> |
| <artifactId>h2</artifactId> |
| <version>${h2.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jcl-over-slf4j</artifactId> |
| <version>${slf4j.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| <version>${logback.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>${junit.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-library</artifactId> |
| <version>${hamcrest.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <version>${mockito.version}</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-core</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-inline</artifactId> |
| <version>${mockito.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>${java.version}</source> |
| <target>${java.version}</target> |
| <testSource>${java.version}</testSource> |
| <testTarget>${java.version}</testTarget> |
| </configuration> |
| <version>${maven-compiler-plugin.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>${maven-resources-plugin.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>${maven-jar-plugin.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>${maven-source-plugin.version}</version> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>jar-no-fork</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <version>${apache-rat-plugin.version}</version> |
| <configuration> |
| <excludes> |
| <exclude>**/target/**</exclude> |
| <exclude>**/logs/**</exclude> |
| <exclude>**/*.log</exclude> |
| <!-- IDE files --> |
| <exclude>**/*.iml</exclude> |
| <exclude>**/.idea/**</exclude> |
| <exclude>**/*.classpath</exclude> |
| <exclude>**/.project</exclude> |
| <exclude>**/.settings/**</exclude> |
| <exclude>**/dependency-reduced-pom.xml</exclude> |
| <!-- git files --> |
| <exclude>**/.gitignore</exclude> |
| <exclude>**/.gitmodules</exclude> |
| <exclude>**/.git/**</exclude> |
| <!-- CI files --> |
| <exclude>**/.travis.yml</exclude> |
| <exclude>**/.mvn/jvm.config</exclude> |
| <exclude>**/.mvn/wrapper/maven-wrapper.properties</exclude> |
| <!-- GitHub files --> |
| <exclude>**/.github/**</exclude> |
| <!-- document files --> |
| <exclude>**/*.md</exclude> |
| <excldue>**/*.MD</excldue> |
| <exclude>**/*.txt</exclude> |
| <exclude>**/docs/**</exclude> |
| </excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>verify</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |