字典 开启 关闭

master
Qin Dong Ming 2024-08-21 16:36:12 +08:00
parent b168845290
commit 9bbf6190bb
3 changed files with 29 additions and 10 deletions

View File

@ -12,7 +12,7 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo "$TZ" > /etc/timezone
VOLUME ["/home/logs"]
# 拷贝执行 jar 包文件
COPY ./cloud-etl-server/target/cloud-etl-server.jar /home/app.jar
COPY ./cloud-etl-server/target/cloud-etl.jar /home/app.jar
# 构建启动命令
ENTRYPOINT ["java", "-Dfile.encoding=utf-8", "-jar", "/home/app.jar"]

View File

@ -101,4 +101,31 @@
</dependencies>
<build>
<finalName>cloud-etl</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 加入maven deploy插件当在deploy时忽略些model-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

10
pom.xml
View File

@ -22,14 +22,6 @@
<module>cloud-etl-server</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version> <!-- 更新到最新稳定版 -->
</plugin>
</plugins>
</build>
</project>