123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316 |
- <?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>
- <groupId>com.dgtis</groupId>
- <artifactId>dgtis-cloud</artifactId>
- <version>2.2.0</version>
- <name>dgtis-cloud</name>
- <url>http://www.dgtis.com</url>
- <description>微服务系统</description>
- <properties>
- <dgtis.version>2.2.0</dgtis.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <java.version>1.8</java.version>
- <spring-boot.version>2.3.4.RELEASE</spring-boot.version>
- <spring-cloud.version>Hoxton.SR8</spring-cloud.version>
- <spring-cloud-alibaba.version>2.2.3.RELEASE</spring-cloud-alibaba.version>
- <spring-boot-admin.version>2.3.0</spring-boot-admin.version>
- <spring-boot.mybatis>2.1.3</spring-boot.mybatis>
- <swagger.fox.version>2.9.2</swagger.fox.version>
- <swagger.core.version>1.5.24</swagger.core.version>
- <kaptcha.version>2.3.2</kaptcha.version>
- <pagehelper.boot.version>1.3.0</pagehelper.boot.version>
- <commons.io.version>2.5</commons.io.version>
- <commons.fileupload.version>1.3.3</commons.fileupload.version>
- <velocity.version>1.7</velocity.version>
- <fastjson.version>1.2.74</fastjson.version>
- <minio.version>8.0.3</minio.version>
- <poi.version>3.17</poi.version>
- <common-pool.version>2.6.2</common-pool.version>
- <log4j2.version>2.17.0</log4j2.version>
- <!--docker 部署配置 start-->
- <namespace>shanghailifeecif</namespace>
- <!--开发环境docker 地址-->
- <docker.host>http://192.168.100.254:2375</docker.host>
- </properties>
- <!-- 依赖声明 -->
- <dependencyManagement>
- <dependencies>
- <!-- <dependency>-->
- <!-- <groupId>org.springframework.boot</groupId>-->
- <!-- <artifactId>spring-boot-starter</artifactId>-->
- <!-- <exclusions>-->
- <!-- <exclusion>-->
- <!-- <groupId>org.springframework.boot</groupId>-->
- <!-- <artifactId>spring-boot-starter-logging</artifactId>-->
- <!-- </exclusion>-->
- <!-- </exclusions>-->
- <!-- </dependency>-->
- <!-- SpringCloud 微服务 -->
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-dependencies</artifactId>
- <version>${spring-cloud.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <!-- SpringCloud Alibaba 微服务 -->
- <dependency>
- <groupId>com.alibaba.cloud</groupId>
- <artifactId>spring-cloud-alibaba-dependencies</artifactId>
- <version>${spring-cloud-alibaba.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <!-- SpringBoot 依赖配置 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-dependencies</artifactId>
- <version>${spring-boot.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
-
- <!-- SpringBoot 监控客户端 -->
- <dependency>
- <groupId>de.codecentric</groupId>
- <artifactId>spring-boot-admin-starter-client</artifactId>
- <version>${spring-boot-admin.version}</version>
- </dependency>
-
- <!-- Mybatis 依赖配置 -->
- <dependency>
- <groupId>org.mybatis.spring.boot</groupId>
- <artifactId>mybatis-spring-boot-starter</artifactId>
- <version>${spring-boot.mybatis}</version>
- </dependency>
-
- <!-- Swagger 依赖配置 -->
- <dependency>
- <groupId>io.swagger</groupId>
- <artifactId>swagger-models</artifactId>
- <version>${swagger.core.version}</version>
- </dependency>
- <dependency>
- <groupId>io.swagger</groupId>
- <artifactId>swagger-annotations</artifactId>
- <version>${swagger.core.version}</version>
- </dependency>
- <!-- 验证码 -->
- <dependency>
- <groupId>com.github.penggle</groupId>
- <artifactId>kaptcha</artifactId>
- <version>${kaptcha.version}</version>
- </dependency>
- <!-- pagehelper 分页插件 -->
- <dependency>
- <groupId>com.github.pagehelper</groupId>
- <artifactId>pagehelper-spring-boot-starter</artifactId>
- <version>${pagehelper.boot.version}</version>
- </dependency>
- <!-- io常用工具类 -->
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>${commons.io.version}</version>
- </dependency>
- <!-- excel工具 -->
- <dependency>
- <groupId>org.apache.poi</groupId>
- <artifactId>poi-ooxml</artifactId>
- <version>${poi.version}</version>
- </dependency>
- <!-- 文件上传工具类 -->
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>${commons.fileupload.version}</version>
- </dependency>
- <!-- 代码生成使用模板 -->
- <dependency>
- <groupId>org.apache.velocity</groupId>
- <artifactId>velocity</artifactId>
- <version>${velocity.version}</version>
- </dependency>
- <!-- JSON 解析器和生成器 -->
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>${fastjson.version}</version>
- </dependency>
-
- <!-- 公共资源池 -->
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-pool2</artifactId>
- <version>${common-pool.version}</version>
- </dependency>
- <!-- 核心模块 -->
- <dependency>
- <groupId>com.dgtis</groupId>
- <artifactId>dgtis-common-core</artifactId>
- <version>${dgtis.version}</version>
- </dependency>
-
- <!-- 接口模块 -->
- <dependency>
- <groupId>com.dgtis</groupId>
- <artifactId>dgtis-common-swagger</artifactId>
- <version>${dgtis.version}</version>
- </dependency>
-
- <!-- 安全模块 -->
- <dependency>
- <groupId>com.dgtis</groupId>
- <artifactId>dgtis-common-security</artifactId>
- <version>${dgtis.version}</version>
- </dependency>
-
- <!-- 权限范围 -->
- <dependency>
- <groupId>com.dgtis</groupId>
- <artifactId>dgtis-common-datascope</artifactId>
- <version>${dgtis.version}</version>
- </dependency>
-
- <!-- 日志记录 -->
- <dependency>
- <groupId>com.dgtis</groupId>
- <artifactId>dgtis-common-log</artifactId>
- <version>${dgtis.version}</version>
- </dependency>
-
- <!-- 缓存服务 -->
- <dependency>
- <groupId>com.dgtis</groupId>
- <artifactId>dgtis-common-redis</artifactId>
- <version>${dgtis.version}</version>
- </dependency>
-
- <!-- 系统接口 -->
- <dependency>
- <groupId>com.dgtis</groupId>
- <artifactId>dgtis-api-system</artifactId>
- <version>${dgtis.version}</version>
- </dependency>
- <!-- log4j 依赖 -->
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-slf4j-impl</artifactId>
- <version>${log4j2.version}</version>
- <scope>compile</scope>
- <exclusions>
- <exclusion>
- <artifactId>log4j-api</artifactId>
- <groupId>org.apache.logging.log4j</groupId>
- </exclusion>
- <exclusion>
- <artifactId>log4j-core</artifactId>
- <groupId>org.apache.logging.log4j</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-api</artifactId>
- <version>${log4j2.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-core</artifactId>
- <version>${log4j2.version}</version>
- <scope>compile</scope>
- <exclusions>
- <exclusion>
- <artifactId>log4j-api</artifactId>
- <groupId>org.apache.logging.log4j</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <modules>
- <module>dgtis-auth</module>
- <module>dgtis-gateway</module>
- <module>dgtis-visual</module>
- <module>dgtis-modules</module>
- <module>dgtis-api</module>
- <module>dgtis-common</module>
- </modules>
- <packaging>pom</packaging>
- <dependencies>
-
- </dependencies>
- <build>
- <plugins>
- <!--使用docker-maven-plugin插件-->
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.0.0</version>
- <configuration>
- <!--指定生成的镜像名-->
- <imageName>${namespace}-${project.artifactId}</imageName>
- <!--指定标签-->
- <imageTags>
- <imageTag>latest</imageTag>
- </imageTags>
- <!-- 指定 Dockerfile 路径-->
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- <!--指定远程 docker api地址-->
- <dockerHost>${docker.host}</dockerHost>
- <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <!--jar 包所在的路径 此处配置的 即对应 target 目录-->
- <directory>${project.build.directory}</directory>
- <!-- 需要包含的 jar包 ,这里对应的是 Dockerfile中添加的文件名 -->
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
- <configuration>
- <source>${java.version}</source>
- <target>${java.version}</target>
- <encoding>${project.build.sourceEncoding}</encoding>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
|