370 lines
11 KiB
XML
370 lines
11 KiB
XML
<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>
|
||
<groupId>shapelight.net</groupId>
|
||
<artifactId>shapelight-cell</artifactId>
|
||
<version>2.0.0</version>
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
<artifactId>shapelight-admin</artifactId>
|
||
<packaging>jar</packaging>
|
||
<description>shapelight-admin</description>
|
||
|
||
<properties>
|
||
<quartz.version>2.3.0</quartz.version>
|
||
<shiro.version>1.10.0</shiro.version>
|
||
<jwt.version>0.7.0</jwt.version>
|
||
<kaptcha.version>0.0.9</kaptcha.version>
|
||
<!--<qiniu.version>[7.2.0, 7.2.99]</qiniu.version>-->
|
||
<!--<aliyun.oss.version>2.5.0</aliyun.oss.version>-->
|
||
<!--<qcloud.cos.version>4.4</qcloud.cos.version>-->
|
||
<swagger.version>2.7.0</swagger.version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>shapelight.net</groupId>
|
||
<artifactId>shapelight-common</artifactId>
|
||
<version>2.0.0</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||
</dependency>
|
||
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>redis.clients</groupId>-->
|
||
<!-- <artifactId>jedis</artifactId>-->
|
||
<!-- <version>2.9.0</version>-->
|
||
<!-- </dependency>-->
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>org.springframework.data</groupId>-->
|
||
<!-- <artifactId>spring-data-redis</artifactId>-->
|
||
<!-- <version>2.1.10.RELEASE</version>-->
|
||
<!-- </dependency>-->
|
||
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-pool2</artifactId>
|
||
<version>2.6.2</version>
|
||
</dependency>
|
||
|
||
<!-- 集群环境,需要打开注释 -->
|
||
<!--<dependency>-->
|
||
<!--<groupId>org.springframework.session</groupId>-->
|
||
<!--<artifactId>spring-session-data-redis</artifactId>-->
|
||
<!--</dependency>-->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-freemarker</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.quartz-scheduler</groupId>
|
||
<artifactId>quartz</artifactId>
|
||
<version>${quartz.version}</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>com.mchange</groupId>
|
||
<artifactId>c3p0</artifactId>
|
||
</exclusion>
|
||
<exclusion>
|
||
<groupId>com.zaxxer</groupId>
|
||
<artifactId>HikariCP-java6</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.shiro</groupId>
|
||
<artifactId>shiro-core</artifactId>
|
||
<version>${shiro.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.shiro</groupId>
|
||
<artifactId>shiro-spring</artifactId>
|
||
<version>${shiro.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.shiro</groupId>
|
||
<artifactId>shiro-ehcache</artifactId>
|
||
<version>${shiro.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.github.axet</groupId>
|
||
<artifactId>kaptcha</artifactId>
|
||
<version>${kaptcha.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.springfox</groupId>
|
||
<artifactId>springfox-swagger2</artifactId>
|
||
<version>${swagger.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.springfox</groupId>
|
||
<artifactId>springfox-swagger-ui</artifactId>
|
||
<version>${swagger.version}</version>
|
||
</dependency>
|
||
<!--<dependency>-->
|
||
<!--<groupId>com.qiniu</groupId>-->
|
||
<!--<artifactId>qiniu-java-sdk</artifactId>-->
|
||
<!--<version>${qiniu.version}</version>-->
|
||
<!--</dependency>-->
|
||
<!--<dependency>-->
|
||
<!--<groupId>com.aliyun.oss</groupId>-->
|
||
<!--<artifactId>aliyun-sdk-oss</artifactId>-->
|
||
<!--<version>${aliyun.oss.version}</version>-->
|
||
<!--</dependency>-->
|
||
<!--<dependency>-->
|
||
<!--<groupId>com.qcloud</groupId>-->
|
||
<!--<artifactId>cos_api</artifactId>-->
|
||
<!--<version>${qcloud.cos.version}</version>-->
|
||
<!--<exclusions>-->
|
||
<!--<exclusion>-->
|
||
<!--<groupId>org.slf4j</groupId>-->
|
||
<!--<artifactId>slf4j-log4j12</artifactId>-->
|
||
<!--</exclusion>-->
|
||
<!--</exclusions>-->
|
||
<!--</dependency>-->
|
||
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-lang3</artifactId>
|
||
<version>3.8.1</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.codehaus.jackson</groupId>
|
||
<artifactId>jackson-mapper-asl</artifactId>
|
||
<version>1.9.13</version>
|
||
</dependency>
|
||
|
||
<!-- 导入zip解压包 -->
|
||
<dependency>
|
||
<groupId>ant</groupId>
|
||
<artifactId>ant</artifactId>
|
||
<version>1.6.5</version>
|
||
</dependency>
|
||
<!-- 导入rar解压包 -->
|
||
<dependency>
|
||
<groupId>com.github.junrar</groupId>
|
||
<artifactId>junrar</artifactId>
|
||
<version>0.7</version>
|
||
</dependency>
|
||
|
||
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>easyexcel</artifactId>
|
||
<version>4.0.3</version>
|
||
</dependency>
|
||
|
||
|
||
<!--<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>easyexcel</artifactId>
|
||
<version>1.1.2-beta5</version>
|
||
</dependency>-->
|
||
|
||
|
||
<dependency>
|
||
<groupId>io.github.swagger2markup</groupId>
|
||
<artifactId>swagger2markup</artifactId>
|
||
<version>1.3.1</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>ch.netzwerg</groupId>
|
||
<artifactId>paleo-core</artifactId>
|
||
<version>0.10.2</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.vavr</groupId>
|
||
<artifactId>vavr</artifactId>
|
||
<version>0.9.2</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>net.java.dev.jna</groupId>
|
||
<artifactId>jna</artifactId>
|
||
<version>5.4.0</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>io.jsonwebtoken</groupId>
|
||
<artifactId>jjwt</artifactId>
|
||
<version>${jwt.version}</version>
|
||
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>cn.hutool</groupId>
|
||
<artifactId>hutool-all</artifactId>
|
||
<version>5.7.16</version>
|
||
</dependency>
|
||
|
||
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-integration</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.integration</groupId>
|
||
<artifactId>spring-integration-stream</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.integration</groupId>
|
||
<artifactId>spring-integration-mqtt</artifactId>
|
||
</dependency>
|
||
|
||
|
||
|
||
<!--<dependency>
|
||
<groupId>shapelight.net</groupId>
|
||
<artifactId>shapelight-dynamic-datasource</artifactId>
|
||
<version>2.0.0</version>
|
||
<!–<scope>test</scope>–>
|
||
</dependency>-->
|
||
<dependency>
|
||
<groupId>shapelight.net</groupId>
|
||
<artifactId>shapelight-engine</artifactId>
|
||
<version>2.0.0</version>
|
||
<!--<scope>test</scope>-->
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.arcsoft.face</groupId>
|
||
<artifactId>arcsoft-sdk-face</artifactId>
|
||
<version>4.1.1.0</version>
|
||
<!-- <scope>system</scope>-->
|
||
<!-- <systemPath>${project.basedir}/libs/arcsoft-sdk-face-3.0.0.0.jar</systemPath>-->
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
||
<finalName>${project.artifactId}</finalName>
|
||
<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>
|
||
<configuration>
|
||
<skipTests>true</skipTests>
|
||
</configuration>
|
||
</plugin>
|
||
<!-- <plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>-->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<version>3.11.0</version>
|
||
<configuration>
|
||
<annotationProcessorPaths>
|
||
<path>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<version>1.18.34</version>
|
||
</path>
|
||
<path>
|
||
<groupId>org.mapstruct</groupId>
|
||
<artifactId>mapstruct-processor</artifactId>
|
||
<version>1.6.0.Beta1</version>
|
||
</path>
|
||
</annotationProcessorPaths>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
|
||
<!-- docker的maven插件官网:https://github.com/spotify/docker-maven-plugin -->
|
||
<plugin>
|
||
<groupId>com.spotify</groupId>
|
||
<artifactId>docker-maven-plugin</artifactId>
|
||
<version>1.2.2</version>
|
||
<configuration>
|
||
<!--配置最终生成的镜像名称-->
|
||
<imageName>shapelight/admin</imageName>
|
||
<baseImage>java:8-alpine</baseImage>
|
||
<entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
|
||
<resources>
|
||
<resource>
|
||
<targetPath>/</targetPath>
|
||
<directory>${project.build.directory}</directory>
|
||
<include>${project.build.finalName}.jar</include>
|
||
</resource>
|
||
</resources>
|
||
<!--配置 docker 的地址,当运行 docker build 命令时构建并上传镜像-->
|
||
<dockerHost>http://192.168.10.62:2375</dockerHost>
|
||
</configuration>
|
||
</plugin>
|
||
<!--<plugin>
|
||
<groupId>com.spotify</groupId>
|
||
<artifactId>docker-maven-plugin</artifactId>
|
||
<version>0.4.14</version>
|
||
<configuration>
|
||
<imageName>shapelight/admin</imageName>
|
||
<dockerDirectory>${project.basedir}</dockerDirectory>
|
||
<dockerHost>http://192.168.10.62:2375</dockerHost>
|
||
<resources>
|
||
<resource>
|
||
<targetPath>/</targetPath>
|
||
<directory>${project.build.directory}</directory>
|
||
<include>${project.build.finalName}.jar</include>
|
||
</resource>
|
||
</resources>
|
||
</configuration>
|
||
<!– 运行命令 mvn clean package docker:build 打包并生成docker镜像 –>
|
||
</plugin>-->
|
||
<!--<plugin>
|
||
<groupId>com.spotify</groupId>
|
||
<artifactId>docker-maven-plugin</artifactId>
|
||
<version>1.0.0</version>
|
||
<configuration>
|
||
<!– 镜像名称 guoweixin/exam–>
|
||
<imageName>${project.artifactId}</imageName>
|
||
<!–指定标签–>
|
||
<imageTags>
|
||
<imageTag>latest</imageTag>
|
||
</imageTags>
|
||
<!– 基础镜像jdk 1.8–>
|
||
<baseImage>java</baseImage>
|
||
<!– 制作者提供本人信息 –>
|
||
<maintainer>zdk=20477@sina.com</maintainer>
|
||
<runs>
|
||
<run>mkdir -p /opt/java/</run>
|
||
</runs>
|
||
<!–切换到/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>http://192.168.10.62:2375</dockerHost>
|
||
<!– 这里是复制 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>
|