mirror of https://github.com/macrozheng/mall
依赖升级,支持SpringBoot 2.7.0
parent
c85a650cd5
commit
b925885494
|
@ -41,7 +41,7 @@
|
|||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.spotify</groupId>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
|
|
@ -41,11 +41,7 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger2</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger-ui</artifactId>
|
||||
<artifactId>springfox-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.spotify</groupId>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.spotify</groupId>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
|
100
pom.xml
100
pom.xml
|
@ -22,7 +22,7 @@
|
|||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.3.0.RELEASE</version>
|
||||
<version>2.7.0</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
|
||||
|
@ -31,23 +31,23 @@
|
|||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<java.version>1.8</java.version>
|
||||
<skipTests>true</skipTests>
|
||||
<docker.host>http://192.168.3.101:2375</docker.host>
|
||||
<docker.maven.plugin.version>1.2.2</docker.maven.plugin.version>
|
||||
<pagehelper-starter.version>1.3.0</pagehelper-starter.version>
|
||||
<pagehelper.version>5.2.0</pagehelper.version>
|
||||
<druid.version>1.1.23</druid.version>
|
||||
<hutool.version>5.4.0</hutool.version>
|
||||
<swagger2.version>2.9.2</swagger2.version>
|
||||
<docker.host>http://192.168.3.105:2375</docker.host>
|
||||
<docker.maven.plugin.version>0.40.0</docker.maven.plugin.version>
|
||||
<pagehelper-starter.version>1.4.2</pagehelper-starter.version>
|
||||
<pagehelper.version>5.3.0</pagehelper.version>
|
||||
<druid.version>1.2.9</druid.version>
|
||||
<hutool.version>5.8.0</hutool.version>
|
||||
<springfox-swagger.version>3.0.0</springfox-swagger.version>
|
||||
<swagger-models.version>1.6.0</swagger-models.version>
|
||||
<swagger-annotations.version>1.6.0</swagger-annotations.version>
|
||||
<mybatis-generator.version>1.4.0</mybatis-generator.version>
|
||||
<mybatis.version>3.5.5</mybatis.version>
|
||||
<mysql-connector.version>8.0.20</mysql-connector.version>
|
||||
<spring-data-commons.version>2.3.0.RELEASE</spring-data-commons.version>
|
||||
<jjwt.version>0.9.0</jjwt.version>
|
||||
<mybatis-generator.version>1.4.1</mybatis-generator.version>
|
||||
<mybatis.version>3.5.9</mybatis.version>
|
||||
<mysql-connector.version>8.0.29</mysql-connector.version>
|
||||
<spring-data-commons.version>2.7.0</spring-data-commons.version>
|
||||
<jjwt.version>0.9.1</jjwt.version>
|
||||
<aliyun-oss.version>2.5.0</aliyun-oss.version>
|
||||
<logstash-logback.version>5.3</logstash-logback.version>
|
||||
<minio.version>7.1.0</minio.version>
|
||||
<logstash-logback.version>7.2</logstash-logback.version>
|
||||
<minio.version>8.4.1</minio.version>
|
||||
<mall-common.version>1.0-SNAPSHOT</mall-common.version>
|
||||
<mall-mbg.version>1.0-SNAPSHOT</mall-mbg.version>
|
||||
<mall-security.version>1.0-SNAPSHOT</mall-security.version>
|
||||
|
@ -129,15 +129,10 @@
|
|||
<!--Swagger-UI API文档生产工具-->
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger2</artifactId>
|
||||
<version>${swagger2.version}</version>
|
||||
<artifactId>springfox-boot-starter</artifactId>
|
||||
<version>${springfox-swagger.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger-ui</artifactId>
|
||||
<version>${swagger2.version}</version>
|
||||
</dependency>
|
||||
<!--解决Swagger 2.9.2版本NumberFormatException-->
|
||||
<!--解决Swagger访问主页时的NumberFormatException问题-->
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-models</artifactId>
|
||||
|
@ -207,33 +202,50 @@
|
|||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.spotify</groupId>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
<version>${docker.maven.plugin.version}</version>
|
||||
<!--<executions>-->
|
||||
<!--<execution>-->
|
||||
<!--<id>build-image</id>-->
|
||||
<!--<phase>package</phase>-->
|
||||
<!--<goals>-->
|
||||
<!--<goal>build</goal>-->
|
||||
<!--</goals>-->
|
||||
<!--</execution>-->
|
||||
<!--</executions>-->
|
||||
<executions>
|
||||
<!--如果想在项目打包时构建镜像添加-->
|
||||
<execution>
|
||||
<id>build-image</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>build</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<imageName>mall/${project.artifactId}:${project.version}</imageName>
|
||||
<!-- Docker 远程管理地址-->
|
||||
<dockerHost>${docker.host}</dockerHost>
|
||||
<baseImage>java:8</baseImage>
|
||||
<entryPoint>["java", "-jar", "-Dspring.profiles.active=prod","/${project.build.finalName}.jar"]
|
||||
</entryPoint>
|
||||
<resources>
|
||||
<resource>
|
||||
<targetPath>/</targetPath>
|
||||
<directory>${project.build.directory}</directory>
|
||||
<include>${project.build.finalName}.jar</include>
|
||||
</resource>
|
||||
</resources>
|
||||
<images>
|
||||
<image>
|
||||
<!--定义镜像名称-->
|
||||
<name>mall/${project.name}:${project.version}</name>
|
||||
<!--定义镜像构建行为-->
|
||||
<build>
|
||||
<!--定义基础镜像-->
|
||||
<from>java:8</from>
|
||||
<args>
|
||||
<JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
|
||||
</args>
|
||||
<!--定义哪些文件拷贝到容器中-->
|
||||
<assembly>
|
||||
<!--定义拷贝到容器的目录-->
|
||||
<targetDir>/</targetDir>
|
||||
<!--只拷贝生成的jar包-->
|
||||
<descriptorRef>artifact</descriptorRef>
|
||||
</assembly>
|
||||
<!--定义容器启动命令-->
|
||||
<entryPoint>["java", "-jar","-Dspring.profiles.active=prod","/${project.build.finalName}.jar"]</entryPoint>
|
||||
<!--定义维护者-->
|
||||
<maintainer>macrozheng</maintainer>
|
||||
</build>
|
||||
</image>
|
||||
</images>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
|
Loading…
Reference in New Issue