123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <?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>xinting</groupId>
- <packaging>war</packaging>
- <artifactId>gsyh</artifactId>
- <version>1.0.0</version>
- <description>
- web服务入口
- </description>
- <dependencies>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.10.1</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- <encoding>UTF-8</encoding>
- <compilerArguments>
- <extdirs>${project.basedir}/src/main/webapp/WEB-INF/lib</extdirs>
- </compilerArguments>
- </configuration>
- </plugin>
- <!-- <plugin>-->
- <!-- <groupId>org.apache.maven.plugins</groupId>-->
- <!-- <artifactId>maven-war-plugin</artifactId>-->
- <!-- <version>3.2.3</version>-->
- <!-- <configuration>-->
- <!-- <failOnMissingWebXml>true</failOnMissingWebXml>-->
- <!-- <!– 不想打进war包的xxx.jar的配置 –>-->
- <!-- <!– <warSourceExcludes>*/lib/xxx.jar</warSourceExcludes>–>-->
- <!-- <webResources>-->
- <!-- <resource>-->
- <!-- <!– 元配置文件的目录,相对于pom.xml文件的路径 –>-->
- <!-- <directory>${project.basedir}/src/main/webapp</directory>-->
- <!-- <!– 是否过滤文件,也就是是否启动auto-config的功能 –>-->
- <!-- <filtering>true</filtering>-->
- <!-- <!– 目标路径 –>-->
- <!-- <targetPath>/</targetPath>-->
- <!-- </resource>-->
- <!-- </webResources>-->
- <!-- </configuration>-->
- <!-- </plugin>-->
- <!--使用jib插件-->
- <plugin>
- <groupId>com.google.cloud.tools</groupId>
- <artifactId>jib-maven-plugin</artifactId>
- <version>1.7.0</version>
- <configuration>
- <!--from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字-->
- <from>
- <image>tomcat:8.5.84-jre8-temurin-jammy</image>
- </from>
- <to>
- <!--镜像名称和tag,使用了mvn内置变量${project.version},表示当前工程的version-->
- <image>docker.xt.wenhq.top:8083/docker_r/gsyh:v1.0</image>
- <auth>
- <username>admin</username>
- <password>xtwenhongquan</password>
- </auth>
- </to>
- <!--容器相关的属性-->
- <container>
- <!--容器上放置应用程序内容的根目录。特别适用于WAR打包项目,通过指定放置exploded WAR内容的位置来处理不同的Servlet引擎基础映像-->
- <appRoot>/usr/local/tomcat/webapps/ZHDT_Web</appRoot>
- <!--使用当前时间-->
- <useCurrentTimestamp>true</useCurrentTimestamp>
- <!--容器在运行时暴露的端口-->
- <ports>
- <port>8080</port>
- </ports>
- </container>
- <allowInsecureRegistries>true</allowInsecureRegistries>
- </configuration>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>build</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|