Merge remote-tracking branch 'origin/master'

# Conflicts:
#	pom.xml
This commit is contained in:
yang.xie 2022-10-22 22:08:02 +08:00
commit 434333a0f2
7 changed files with 228 additions and 145 deletions

View File

@ -1,4 +1,4 @@
FROM bellsoft/liberica-openjdk-alpine:8u345-1
FROM adoptopenjdk/openjdk11-openj9:alpine
VOLUME /tmp
COPY target/*.jar app.jar
EXPOSE 8282

View File

@ -51,4 +51,7 @@
| DOCS.OSSEZ.COM | [https://docs.ossez.com/#/](https://docs.ossez.com/#/) | 本手册的编译版本将会部署在这个链接上 |
| CN 博客 | [http://www.cwikius.cn/](http://www.cwikius.cn/) | CWIKIUS.CN 一个有独立思考和温度的清新站 |
##
# 构建
使用 Maven 对项目进行构建。
运行命令:`mvn clean deploy` 将项目进行打包,同时还会生成一个 Docker 镜像文件并推送到仓库中

97
pom.xml
View File

@ -11,11 +11,33 @@
<groupId>com.northtecom.visatrack</groupId>
<artifactId>api</artifactId>
<version>0.0.2-SNAPSHOT</version>
<name>Visa track api</name>
<name>usvisartrackapi</name>
<description>Visa track API project for North Tecom</description>
<licenses>
<license>
<name>The MIT license</name>
<url>https://opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<distributionManagement>
<repository>
<id>ossez-repo</id>
<url>https://repo.ossez.com/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>ossez-repo</id>
<url>https://repo.ossez.com/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
<properties>
<java.version>1.8</java.version>
<java.version>11</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
@ -135,7 +157,9 @@
<optional>true</optional>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
@ -144,26 +168,75 @@
<configuration>
<!-- 没有该配置devtools 不生效 -->
<fork>true</fork>
<addResources>true</addResources>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
<!-- <addResources>true</addResources>-->
<!-- <excludes>-->
<!-- <exclude>-->
<!-- <groupId>org.projectlombok</groupId>-->
<!-- <artifactId>lombok</artifactId>-->
<!-- </exclude>-->
<!-- </excludes>-->
<!-- <image>-->
<!-- &lt;!&ndash;配置镜像名称&ndash;&gt;-->
<!-- <name>repo-docker.ossez.com/docker-hub/${project.name}:${project.version}</name>-->
<!-- &lt;!&ndash;镜像打包完成后自动推送到镜像仓库&ndash;&gt;-->
<!-- <publish>true</publish>-->
<!-- </image>-->
<!-- <docker>-->
<!--&lt;!&ndash; <host>repo-docker.ossez.com</host>&ndash;&gt;-->
<!-- <tlsVerify>false</tlsVerify>-->
<!-- <publishRegistry>-->
<!-- <username>${docker.credentials.username}</username>-->
<!-- <password>${docker.credentials.password}</password>-->
<!-- <url>https://repo-docker.ossez.com/docker-hub</url>-->
<!-- </publishRegistry>-->
<!-- </docker>-->
</configuration>
<!-- <executions>-->
<!-- <execution>-->
<!-- <goals>-->
<!-- <goal>build-image</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
</plugin>
<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>
<source>11</source>
<target>11</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.40.2</version>
<configuration>
<pushRegistry>repo-docker.ossez.com/docker-hub</pushRegistry>
<verbose>true</verbose>
<images>
<image>
<name>${project.name}:${project.version}</name>
<build>
<dockerFileDir>${project.basedir}</dockerFileDir>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<id>default</id>
<phase>deploy</phase>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -236,4 +236,6 @@
</table>
</body>
<img referrerpolicy="no-referrer-when-downgrade" src="https://analytics.ossez.com/matomo.php?idsite=7&amp;rec=1" style="border:0" alt="" />
</html>

View File

@ -186,4 +186,6 @@
</table>
</body>
<img referrerpolicy="no-referrer-when-downgrade" src="https://analytics.ossez.com/matomo.php?idsite=7&amp;rec=1" style="border:0" alt="" />
</html>

View File

@ -272,4 +272,6 @@
</table>
</body>
<img referrerpolicy="no-referrer-when-downgrade" src="https://analytics.ossez.com/matomo.php?idsite=7&amp;rec=1" style="border:0" alt="" />
</html>

View File

@ -48,5 +48,6 @@
</tr>
</tbody>
</table>
<img referrerpolicy="no-referrer-when-downgrade" src="https://analytics.ossez.com/matomo.php?idsite=7&amp;rec=1" style="border:0" alt="" />
</body>
</html>