Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhmes-agecal
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhmes-agecal
Commits
af40bbed
Commit
af40bbed
authored
Aug 22, 2025
by
junshizhonglangjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打包方式调整
parent
844dc1cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
94 deletions
+26
-94
pom.xml
zhmes-agecal-admin/pom.xml
+23
-91
application.yml
zhmes-agecal-admin/src/main/resources/application.yml
+2
-2
vue.config.js
zhmes-agecal-web/vue.config.js
+1
-1
No files found.
zhmes-agecal-admin/pom.xml
View file @
af40bbed
...
@@ -62,114 +62,46 @@
...
@@ -62,114 +62,46 @@
</dependency>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
<finalName>
projectname-${project.version}
</finalName>
<!-- 最终JAR包名称:模块名-版本号.jar -->
<finalName>
${project.artifactId}-${project.version}
</finalName>
<plugins>
<plugins>
<!-- 编译插件(继承父工程配置,保持版本一致) -->
<plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-jar-plugin
</artifactId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
2.4
</version>
<configuration>
<configuration>
<excludes>
<source>
${java.version}
</source>
<!--<exclude>*</exclude>-->
<target>
${java.version}
</target>
<!--<exclude>*.sh</exclude>-->
<encoding>
${project.build.sourceEncoding}
</encoding>
<!--<exclude>*.bat</exclude>-->
</excludes>
</configuration>
</configuration>
</plugin>
</plugin>
<!-- Spring Boot打包核心插件(生成可运行JAR) -->
<plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<executions>
<version>
2.2.13.RELEASE
</version>
<!-- 与父工程Spring Boot版本完全一致 -->
<execution>
<configuration>
<id>
copy
</id>
<!-- 必须指定启动类(替换为你的实际主类全路径) -->
<phase>
package
</phase>
<mainClass>
com.zehong.ZhMesAgecalApplication
</mainClass>
<goals>
<!-- 排除开发环境依赖(如devtools) -->
<goal>
copy-dependencies
</goal>
<excludes>
</goals>
<exclude>
<configuration>
<groupId>
org.springframework.boot
</groupId>
<outputDirectory>
<artifactId>
spring-boot-devtools
</artifactId>
${project.build.directory}/projectname-${project.version}/lib
</exclude>
</outputDirectory>
</excludes>
<overWriteReleases>
false
</overWriteReleases>
</configuration>
<overWriteSnapshots>
false
</overWriteSnapshots>
<overWriteIfNewer>
true
</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-resources-plugin
</artifactId>
<version>
2.6
</version>
<executions>
<executions>
<execution>
<execution>
<id>
copy-config
</id>
<phase>
package
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<encoding>
UTF-8
</encoding>
<outputDirectory>
${project.build.directory}/projectname-${project.version}/conf
</outputDirectory>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<includes>
<include>
**/*.yml
</include>
<include>
**/logback.xml
</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>
copy-sh
</id>
<phase>
package
</phase>
<goals>
<goals>
<goal>
copy-resources
</goal
>
<goal>
repackage
</goal>
<!-- 重新打包为可执行JAR --
>
</goals>
</goals>
<configuration>
<encoding>
UTF-8
</encoding>
<outputDirectory>
${project.build.directory}/projectname-${project.version}/bin
</outputDirectory>
<resources>
<resource>
<directory>
src/main/bin
</directory>
<includes>
<include>
*.sh
</include>
<include>
*.bat
</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>
copy-dist-jar
</id>
<phase>
package
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<encoding>
UTF-8
</encoding>
<outputDirectory>
${project.build.directory}/projectname-${project.version}/lib
</outputDirectory>
<resources>
<resource>
<directory>
target
</directory>
<includes>
<include>
*.jar
</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</execution>
</executions>
</executions>
</plugin>
</plugin>
</plugins>
</plugins>
</build>
</build>
</project>
</project>
\ No newline at end of file
zhmes-agecal-admin/src/main/resources/application.yml
View file @
af40bbed
# 开发环境配置
# 开发环境配置
server
:
server
:
# 服务器的HTTP端口,默认为8080
# 服务器的HTTP端口,默认为8080
port
:
808
0
port
:
808
7
servlet
:
servlet
:
# 应用的访问路径
# 应用的访问路径
context-path
:
/
context-path
:
/
agecal
tomcat
:
tomcat
:
# tomcat的URI编码
# tomcat的URI编码
uri-encoding
:
UTF-8
uri-encoding
:
UTF-8
...
...
zhmes-agecal-web/vue.config.js
View file @
af40bbed
...
@@ -34,7 +34,7 @@ module.exports = {
...
@@ -34,7 +34,7 @@ module.exports = {
proxy
:
{
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://localhost:8080`
,
target
:
`http://localhost:8080
/agecal
`
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment