1 Star 1 Fork 6

cancanneed/helloJianmu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pom.xml 3.02 KB
一键复制 编辑 原始数据 按行查看 历史
cancanneed 提交于 2021-12-03 14:45 . 使用jianmu快速搭建maven项目
<?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>dev.jianmu</groupId>
<artifactId>jianmuDemo</artifactId>
<version>1.0-SNAPSHOT</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.5</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<!--web的启动器-->
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<!--jib相关的插件-->
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>3.1.4</version>
<configuration>
<!--基础镜像-->
<from>
<image>registry://jianmudev/openjdk:11.0.11-jdk-oracle-wait-for-it</image>
</from>
<to>
<!--配置镜像相关的信息-->
<image>${env.JIANMU_IMAGE_NAME}:${env.JIANMU_IMAGE_TAG}</image>
<auth>
<!--配置docker hub的用户名和密码-->
<username>${env.JIANMU_DOCKER_USERNAME}</username>
<password>${env.JIANMU_DOCKER_PASSWORD}</password>
</auth>
</to>
<container>
<!--解决中文乱码-->
<environment>
<LANG>C.UTF-8</LANG>
<LANGUAGE>C.UTF-8</LANGUAGE>
<LC_ALL>C.UTF-8</LC_ALL>
</environment>
<!-- 指定镜像时区,保证log输出时间为GMT+8 -->
<jvmFlags>
<jvmFlag>-Duser.timezone=Asia/Shanghai</jvmFlag>
</jvmFlags>
<!-- 指定镜像生成时间 -->
<creationTime>USE_CURRENT_TIMESTAMP</creationTime>
</container>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/canon_xi/hello-jianmu.git
[email protected]:canon_xi/hello-jianmu.git
canon_xi
hello-jianmu
helloJianmu
master

搜索帮助