123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.1.7.RELEASE</version>
- <relativePath/> <!-- lookup parent from repository -->
- </parent>
- <groupId>com.xin</groupId>
- <artifactId>shardingsphere-jdbc-study</artifactId>
- <version>0.0.1</version>
- <name>shardingsphere-jdbc-study</name>
- <description>Demo project for Spring Boot</description>
- <properties>
- <java.version>1.8</java.version>
- <shardingsphere.version>4.1.1</shardingsphere.version>
- <pagehelper.version>1.3.0</pagehelper.version>
- <jxls.version>2.3.0</jxls.version>
- <jxls-poi.version>1.0.11</jxls-poi.version>
- <jxls-jexcel.version>1.0.6</jxls-jexcel.version>
- <jxls-reader.version>2.0.2</jxls-reader.version>
- <apache.poi.version>3.15</apache.poi.version>
- <poi.ooxml.version>3.15</poi.ooxml.version>
- </properties>
- <profiles>
- <profile>
- <id>test</id>
- <!--默认激活当前配置-->
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <properties>
- <profiles.active>test</profiles.active>
- <!-- Docker 配置 -->
- <docker.dockerHost>http://192.168.29.131:2375</docker.dockerHost>
- <!-- <docker.serviceId>DockerHub</docker.serviceId>-->
- <docker.image.version>1.0.0</docker.image.version>
- </properties>
- </profile>
- <!-- <profile>-->
- <!-- <id>dev</id>-->
- <!-- <properties>-->
- <!-- <profiles.active>dev</profiles.active>-->
- <!-- <!– Docker 配置 –>-->
- <!-- <docker.dockerHost>https://49.235.127.212:2375</docker.dockerHost>-->
- <!-- <!– <docker.serviceId>DockerHub</docker.serviceId>–>-->
- <!-- <docker.image.version>1.0.0</docker.image.version>-->
- <!-- </properties>-->
- <!-- </profile>-->
- </profiles>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.mybatis.spring.boot</groupId>
- <artifactId>mybatis-spring-boot-starter</artifactId>
- <version>2.1.2</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <scope>runtime</scope>
- </dependency>
- <!-- https://mvnrepository.com/artifact/com.alibaba/druid -->
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid</artifactId>
- <version>1.1.21</version>
- </dependency>
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-boot-starter</artifactId>
- <version>3.3.2</version>
- </dependency>
- <dependency>
- <groupId>org.apache.shardingsphere</groupId>
- <artifactId>sharding-jdbc-spring-boot-starter</artifactId>
- <version>${shardingsphere.version}</version>
- </dependency>
- <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>1.2.41</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>org.junit.vintage</groupId>
- <artifactId>junit-vintage-engine</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jxls</groupId>
- <artifactId>jxls</artifactId>
- <version>2.10.0</version>
- </dependency>
- <dependency>
- <groupId>org.jxls</groupId>
- <artifactId>jxls-poi</artifactId>
- <version>2.10.0</version>
- </dependency>
- <!--get set-->
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.github.pagehelper</groupId>
- <artifactId>pagehelper-spring-boot-starter</artifactId>
- <version>${pagehelper.version}</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-test</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-test</artifactId>
- </dependency>
- </dependencies>
- <repositories>
- <repository>
- <id>aliyun-repos</id>
- <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- </repositories>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.18.1</version>
- <configuration>
- <skipTests>true</skipTests>
- </configuration>
- </plugin>
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.2.2</version>
- <configuration>
- <!-- 镜像名称 guoweixin/exam-->
- <imageName>${project.artifactId}</imageName>
- <!--指定标签-->
- <imageTags>
- <imageTag>${docker.image.version}</imageTag>
- </imageTags>
- <!-- 基础镜像jdk 1.8-->
- <baseImage>java</baseImage>
- <!-- 制作者提供本人信息 -->
- <maintainer>2292011451@qq.com</maintainer>
- <!--切换到/ROOT目录 -->
- <workdir>/ROOT</workdir>
- <cmd>["java", "-version"]</cmd>
- <entryPoint>["java", "-jar", "${project.build.finalName}.jar"]</entryPoint>
- <!-- 指定 Dockerfile 路径
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- -->
- <!--指定远程 docker api地址-->
- <dockerHost>${docker.dockerHost}</dockerHost>
- <!--证书路劲-->
- <!-- <dockerCertPath>D:\software\docker</dockerCertPath>-->
- <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
- <resources>
- <resource>
- <targetPath>/ROOT</targetPath>
- <!--用于指定需要复制的根目录,${project.build.directory}表示target目录-->
- <directory>${project.build.directory}</directory>
- <!--用于指定需要复制的文件。${project.build.finalName}.jar指的是打包后的jar包文件。-->
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
|