RuoYi-Cloud/ruoyi-auth/pom.xml

189 lines
9.2 KiB
XML
Raw Normal View History

2022-03-29 17:33:23 +08:00
<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">
<parent>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi</artifactId>
<version>3.4.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-auth</artifactId>
<description>
ruoyi-auth认证授权中心
</description>
<dependencies>
<!-- SpringCloud Alibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Alibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- RuoYi Common Security-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-security</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
2022-03-30 17:38:47 +08:00
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<configuration>
<from>
<!--使用openjdk官方镜像tag是8-jdk-stretch表示镜像的操作系统是debian9,装好了jdk8-->
<!-- <image>openjdk:8-jre</image>-->
2022-03-30 17:38:47 +08:00
</from>
<to>
2022-03-31 23:31:28 +08:00
<!-- 如果是阿里云的容器镜像仓库,则使用容器的配置 前缀/命名空间/仓库名 -->
<image>${docker.registry}/${docker.space}/${docker.warehouse}</image>
2022-03-31 23:31:28 +08:00
<tags>
<!--指定包名-->
<image>${artifactId}</image>
<!--版本号-->
<tag>${project.version}</tag>
</tags>
2022-03-30 17:38:47 +08:00
</to>
<!--容器相关的属性-->
<container>
2022-03-31 23:31:28 +08:00
<!-- springboot项目的入口类 -->
<!-- <mainClass>com/ruoyi/auth/RuoYiAuthApplication</mainClass>-->
<!-- <useCurrentTimestamp>true</useCurrentTimestamp>-->
2022-03-30 17:38:47 +08:00
<!--jvm内存参数-->
<jvmFlags>
<jvmFlag>-Xms1g</jvmFlag>
<jvmFlag>-Xmx1g</jvmFlag>
</jvmFlags>
<!--要暴露的端口-->
<ports>
<port>12200</port>
</ports>
2022-03-31 23:31:28 +08:00
<!--使用该参数将镜像的创建时间与系统时间一致-->
<!--<useCurrentTimestamp>true</useCurrentTimestamp>-->
<creationTime>USE_CURRENT_TIMESTAMP</creationTime>
<!--解决Could not find or load main class ${start-class} -->
<mainClass>com.bpo.BpoSignAppllication</mainClass>
<!-- 设置时区 -->
<environment>
<TZ>Asia/Shanghai</TZ>
</environment>
2022-03-30 17:38:47 +08:00
</container>
2022-03-31 23:31:28 +08:00
<allowInsecureRegistries>true</allowInsecureRegistries>
2022-03-30 17:38:47 +08:00
</configuration>
2022-03-31 23:31:28 +08:00
<!-- 解决maven工程是父子结构的 mvn compile-->
<!-- 把 jib 绑定到 Maven 命令中-->
<executions>
<execution>
<phase>install</phase> <!-- 表示执行mvn install命令的时候就会自动构建镜像了-->
<goals>
<goal>${jib.key}</goal><!-- 表示执行的jib命令 是dockerBuild 还是build-->
</goals>
</execution>
</executions>
2022-03-30 17:38:47 +08:00
</plugin>
2022-03-29 17:33:23 +08:00
2022-03-30 17:38:47 +08:00
<!-- <plugin>-->
<!-- <groupId>com.spotify</groupId>-->
<!-- <artifactId>dockerfile-maven-plugin</artifactId>-->
<!-- <configuration>-->
2022-03-29 17:33:23 +08:00
<!-- <username>sino-tech-admin</username>-->
<!-- <password>Fros_1234</password>-->
<!--指定包名-->
2022-03-30 17:38:47 +08:00
<!-- <repository>${project.artifactId}</repository>-->
<!-- <tag>${project.version}</tag>-->
<!-- <buildArgs>-->
<!-- &lt;!&ndash;提供参数向Dockerfile传递&ndash;&gt;-->
<!-- <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>-->
<!-- </buildArgs>-->
<!-- </configuration>-->
2022-03-29 17:33:23 +08:00
<!-- <configuration>-->
<!-- <dockerfile>-->
<!-- <buildArgs>-->
<!-- &lt;!&ndash;注意imageName一定要是符合正则[a-z0-9-_.]的,否则构建不会成功&ndash;&gt;-->
<!-- <imageName>${project.artifactId}:last</imageName>-->
<!-- &lt;!&ndash;指定基础镜像&ndash;&gt;-->
<!-- <baseImage>openjdk:8-jre</baseImage>-->
<!-- &lt;!&ndash;指定远程docker地址&ndash;&gt;-->
<!-- &lt;!&ndash;使用http协议 https 需要加TLS证书&ndash;&gt;-->
<!-- <dockerHost>http://175.178.38.240:8076</dockerHost>-->
<!-- &lt;!&ndash; &lt;!&ndash;配置TLS证书在系统中的路径&ndash;&gt;&ndash;&gt;-->
<!-- &lt;!&ndash; <dockerCertPath>/Users/root/docker-ca</dockerCertPath>&ndash;&gt;-->
<!-- &lt;!&ndash; 指定默认挂载地址 &ndash;&gt;-->
<!-- <volumes>/mydata/service/ruoyi</volumes>-->
<!-- &lt;!&ndash; 创建目录&ndash;&gt;-->
<!-- <runs>mkdir -p /mydata/service/ruoyi</runs>-->
<!-- <workdir>/mydata/service/ruoyi</workdir>-->
<!-- <entryPoint>-->
<!-- ["java", "-jar", "-Dspring.profiles.active=dev","/mydata/service/ruoyi/${project.build.finalName}.jar"]-->
<!-- </entryPoint>-->
<!-- &lt;!&ndash; <buildArgs>&ndash;&gt;-->
<!-- &lt;!&ndash; <JAR-FILE>target/${project.build.finalName}.jar</JAR-FILE>&ndash;&gt;-->
<!-- &lt;!&ndash; </buildArgs>&ndash;&gt;-->
<!-- &lt;!&ndash;复制jar包到docker容器指定目录&ndash;&gt;-->
<!-- &lt;!&ndash; <resources>&ndash;&gt;-->
<!-- &lt;!&ndash; <resource>&ndash;&gt;-->
<!-- &lt;!&ndash; <targetPath>/mydata/service/ruoyi</targetPath>&ndash;&gt;-->
<!-- &lt;!&ndash; &lt;!&ndash;jar包在项目中生成的路径即对应的target目录&ndash;&gt;&ndash;&gt;-->
<!-- &lt;!&ndash; <directory>${project.build.directory}</directory>&ndash;&gt;-->
<!-- &lt;!&ndash; &lt;!&ndash;指定需要复制的文件&ndash;&gt;&ndash;&gt;-->
<!-- &lt;!&ndash; <include>${project.build.finalName}.jar</include>&ndash;&gt;-->
<!-- &lt;!&ndash; </resource>&ndash;&gt;-->
<!-- &lt;!&ndash; </resources>&ndash;&gt;-->
<!-- </buildArgs>-->
<!-- </dockerfile>-->
<!-- </configuration>-->
2022-03-30 17:38:47 +08:00
<!-- </plugin>-->
2022-03-29 17:33:23 +08:00
</plugins>
</build>
</project>