|
@@ -7,7 +7,6 @@
|
|
|
<version>3.1.0</version>
|
|
<version>3.1.0</version>
|
|
|
</parent>
|
|
</parent>
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
-
|
|
|
|
|
<artifactId>zd-gateway</artifactId>
|
|
<artifactId>zd-gateway</artifactId>
|
|
|
<packaging>jar</packaging>
|
|
<packaging>jar</packaging>
|
|
|
<description>网关模块</description>
|
|
<description>网关模块</description>
|
|
@@ -106,7 +105,6 @@
|
|
|
</execution>
|
|
</execution>
|
|
|
</executions>
|
|
</executions>
|
|
|
</plugin>
|
|
</plugin>
|
|
|
-
|
|
|
|
|
<!-- 打包时跳过test插件,不运行test测试用例 -->
|
|
<!-- 打包时跳过test插件,不运行test测试用例 -->
|
|
|
<plugin>
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
@@ -116,93 +114,6 @@
|
|
|
<skipTests>true</skipTests>
|
|
<skipTests>true</skipTests>
|
|
|
</configuration>
|
|
</configuration>
|
|
|
</plugin>
|
|
</plugin>
|
|
|
-
|
|
|
|
|
- <!-- docker的maven插件 -->
|
|
|
|
|
-<!-- <plugin>-->
|
|
|
|
|
-<!-- <groupId>io.fabric8</groupId>-->
|
|
|
|
|
-<!-- <artifactId>docker-maven-plugin</artifactId>-->
|
|
|
|
|
-<!-- <version>${docker.maven.verion}</version>-->
|
|
|
|
|
-<!-- <executions>-->
|
|
|
|
|
-<!-- <!–执行 mvn package 时 自动构建docker镜像并推送到仓库 –>-->
|
|
|
|
|
-<!-- <execution>-->
|
|
|
|
|
-<!-- <id>default</id>-->
|
|
|
|
|
-<!-- <phase>package</phase>-->
|
|
|
|
|
-<!-- <goals>-->
|
|
|
|
|
-<!-- <!–删除老镜像–>-->
|
|
|
|
|
-<!--<!– <goal>remove</goal>–>-->
|
|
|
|
|
-<!-- <!–构建镜像–>-->
|
|
|
|
|
-<!--<!– <goal>build</goal>–>-->
|
|
|
|
|
-<!-- <goal>stop</goal>-->
|
|
|
|
|
-<!-- <!–推送镜像到阿里云–>-->
|
|
|
|
|
-<!--<!– <goal>push</goal>–>-->
|
|
|
|
|
-<!-- <!–运行镜像–>-->
|
|
|
|
|
-<!-- <goal>run</goal>-->
|
|
|
|
|
-<!-- </goals>-->
|
|
|
|
|
-<!-- </execution>-->
|
|
|
|
|
-<!-- </executions>-->
|
|
|
|
|
-<!-- <configuration>-->
|
|
|
|
|
-<!-- <!– docker主机 –>-->
|
|
|
|
|
-<!-- <dockerHost>tcp://192.168.1.88:2375</dockerHost>-->
|
|
|
|
|
-<!-- <authConfig>-->
|
|
|
|
|
-<!-- <!– registry服务的认证–>-->
|
|
|
|
|
-<!-- <username>${docker.registry.username}</username>-->
|
|
|
|
|
-<!-- <password>${docker.registry.password}</password>-->
|
|
|
|
|
-<!-- </authConfig>-->
|
|
|
|
|
-<!-- <removeNamePattern>%a</removeNamePattern>-->
|
|
|
|
|
-<!-- <stopNamePattern>%a</stopNamePattern>-->
|
|
|
|
|
-<!-- <allContainers>true</allContainers>-->
|
|
|
|
|
-<!-- <images>-->
|
|
|
|
|
-<!-- <image>-->
|
|
|
|
|
-<!-- <!– [命名空间] / [镜像名称:版本号] –>-->
|
|
|
|
|
-<!-- <name>${docker.registry}/${docker.namespace}/${project.artifactId}</name>-->
|
|
|
|
|
-<!-- <!– 仓库地址 –>-->
|
|
|
|
|
-<!-- <registry>${docker.registry}</registry>-->
|
|
|
|
|
-<!-- <build>-->
|
|
|
|
|
-<!-- <!– dockerFile文件路径–>-->
|
|
|
|
|
-<!-- <dockerFile>${project.basedir}/Dockerfile</dockerFile>-->
|
|
|
|
|
-<!-- <tags>-->
|
|
|
|
|
-<!-- <!– 构建版本–>-->
|
|
|
|
|
-<!-- <tag>${project.version}</tag>-->
|
|
|
|
|
-<!-- </tags>-->
|
|
|
|
|
-<!-- </build>-->
|
|
|
|
|
-<!-- <alias>${project.artifactId}</alias>-->
|
|
|
|
|
-<!-- <run>-->
|
|
|
|
|
-<!-- <!– 环境变量配置–>-->
|
|
|
|
|
-<!-- <envPropertyFile>${project.parent.basedir}/docker/zd/docker-compose.env</envPropertyFile>-->
|
|
|
|
|
-<!-- <!– 端口映射–>-->
|
|
|
|
|
-<!-- <ports>-->
|
|
|
|
|
-<!-- <port>9081:8080</port>-->
|
|
|
|
|
-<!-- </ports>-->
|
|
|
|
|
-<!-- <!– 挂载卷–>-->
|
|
|
|
|
-<!-- <volumes>-->
|
|
|
|
|
-<!-- <bind>-->
|
|
|
|
|
-<!-- <!– 可多配置–>-->
|
|
|
|
|
-<!-- <volume>-->
|
|
|
|
|
-<!-- /zd/logs/${project.artifactId}:/logs/${project.artifactId}-->
|
|
|
|
|
-<!-- </volume>-->
|
|
|
|
|
-<!-- </bind>-->
|
|
|
|
|
-<!-- </volumes>-->
|
|
|
|
|
-<!-- <autoRemove>false</autoRemove>-->
|
|
|
|
|
-<!-- <!– 重启策略–>-->
|
|
|
|
|
-<!-- <restartPolicy>-->
|
|
|
|
|
-<!-- <!– 总是–>-->
|
|
|
|
|
-<!-- <name>always</name>-->
|
|
|
|
|
-<!-- <!– 失败时重启–>-->
|
|
|
|
|
-<!--<!– <name>on-failure</name>–>-->
|
|
|
|
|
-<!-- <!– 重启次数,当上方name配置采用on-failure时生效–>-->
|
|
|
|
|
-<!--<!– <retry>3</retry>–>-->
|
|
|
|
|
-<!-- </restartPolicy>-->
|
|
|
|
|
-<!-- </run>-->
|
|
|
|
|
-<!-- </image>-->
|
|
|
|
|
-<!-- </images>-->
|
|
|
|
|
-<!-- <containerNamePattern>%a</containerNamePattern>-->
|
|
|
|
|
-<!-- <buildArgs>-->
|
|
|
|
|
-<!-- <!– dockerfile参数,指定jar路径 –>-->
|
|
|
|
|
-<!-- <JAR_FILE>${project.artifactId}.jar</JAR_FILE>-->
|
|
|
|
|
-<!-- </buildArgs>-->
|
|
|
|
|
-<!-- </configuration>-->
|
|
|
|
|
-<!-- </plugin>-->
|
|
|
|
|
</plugins>
|
|
</plugins>
|
|
|
</build>
|
|
</build>
|
|
|
-
|
|
|
|
|
</project>
|
|
</project>
|