瀏覽代碼

bug修复

hecheng 3 年之前
父節點
當前提交
8787a5c1fa
共有 1 個文件被更改,包括 15 次插入7 次删除
  1. 15 7
      zd-gateway/pom.xml

+ 15 - 7
zd-gateway/pom.xml

@@ -68,6 +68,12 @@
         <dependency>
             <groupId>com.zd</groupId>
             <artifactId>zd-common-redis</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.springframework</groupId>
+                    <artifactId>spring-webmvc</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
 
         <!-- Swagger -->
@@ -126,9 +132,10 @@
 <!--                        <phase>package</phase>-->
 <!--                        <goals>-->
 <!--                            &lt;!&ndash;删除老镜像&ndash;&gt;-->
-<!--                            <goal>remove</goal>-->
+<!--&lt;!&ndash;                            <goal>remove</goal>&ndash;&gt;-->
 <!--                            &lt;!&ndash;构建镜像&ndash;&gt;-->
-<!--                            <goal>build</goal>-->
+<!--&lt;!&ndash;                            <goal>build</goal>&ndash;&gt;-->
+<!--                            <goal>stop</goal>-->
 <!--                            &lt;!&ndash;推送镜像到阿里云&ndash;&gt;-->
 <!--&lt;!&ndash;                            <goal>push</goal>&ndash;&gt;-->
 <!--                            &lt;!&ndash;运行镜像&ndash;&gt;-->
@@ -144,6 +151,9 @@
 <!--                        <username>${docker.registry.username}</username>-->
 <!--                        <password>${docker.registry.password}</password>-->
 <!--                    </authConfig>-->
+<!--                    <removeNamePattern>%a</removeNamePattern>-->
+<!--                    <stopNamePattern>%a</stopNamePattern>-->
+<!--                    <allContainers>true</allContainers>-->
 <!--                    <images>-->
 <!--                        <image>-->
 <!--                            &lt;!&ndash; [命名空间] / [镜像名称:版本号] &ndash;&gt;-->
@@ -158,13 +168,10 @@
 <!--                                    <tag>${project.version}</tag>-->
 <!--                                </tags>-->
 <!--                            </build>-->
+<!--                            <alias>${project.artifactId}</alias>-->
 <!--                            <run>-->
 <!--                                &lt;!&ndash; 环境变量配置&ndash;&gt;-->
-<!--                                <env>-->
-<!--                                    &lt;!&ndash; 次数可参考 docker/zd/docker-compose.env 下的变量根据实际关联地址配置 &ndash;&gt;-->
-<!--                                    <NACOS_HOST>192.168.1.88</NACOS_HOST>-->
-<!--                                    <REDIS_HOST>192.168.1.43</REDIS_HOST>-->
-<!--                                </env>-->
+<!--                                <envPropertyFile>${project.parent.basedir}/docker/zd/docker-compose.env</envPropertyFile>-->
 <!--                                &lt;!&ndash; 端口映射&ndash;&gt;-->
 <!--                                <ports>-->
 <!--                                    <port>9081:8080</port>-->
@@ -191,6 +198,7 @@
 <!--                            </run>-->
 <!--                        </image>-->
 <!--                    </images>-->
+<!--                    <containerNamePattern>%a</containerNamePattern>-->
 <!--                    <buildArgs>-->
 <!--                        &lt;!&ndash; dockerfile参数,指定jar路径 &ndash;&gt;-->
 <!--                        <JAR_FILE>${project.artifactId}.jar</JAR_FILE>-->