Toggle navigation
Toggle navigation
This project
Loading...
Sign in
crp
/
crp-operation
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
zhongdaoyi@wondertek.com.cn
2025-07-24 15:49:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8dabee3c5f26fd44f28fc81d2b250a21db3176af
8dabee3c
1 parent
29fe4d79
打包配置2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
5 deletions
Dockerfile
assembly.xml
pom.xml
Dockerfile
View file @
8dabee3
FROM openjdk:17
-jdk-alpine
FROM openjdk:17
# 保持系统更新并安装必要的构建工具
RUN apk update && apk add --no-cache bash build-base
...
...
assembly.xml
View file @
8dabee3
...
...
@@ -11,10 +11,10 @@
<baseDirectory>
${build.directory}
</baseDirectory>
<fileSets>
<!-- <fileSet>-->
<!-- <directory>conf/</directory>-->
<!-- <outputDirectory>${project.artifactId}/conf</outputDirectory>-->
<!-- </fileSet>-->
<fileSet>
<directory>
conf/
</directory>
<outputDirectory>
${project.artifactId}/conf
</outputDirectory>
</fileSet>
<fileSet>
<directory>
db/
</directory>
<outputDirectory>
${project.artifactId}/db
</outputDirectory>
...
...
pom.xml
View file @
8dabee3
...
...
@@ -8,6 +8,9 @@
<artifactId>
crp-operation
</artifactId>
<version>
1.0.0
</version>
<packaging>
jar
</packaging>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
...
...
@@ -143,6 +146,13 @@
</dependencies>
<build>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
...
...
@@ -157,6 +167,15 @@
</configuration>
</plugin>
<!-- 跳过单元测试 -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<configuration>
<skipTests>
true
</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-assembly-plugin
</artifactId>
...
...
Please
register
or
login
to post a comment