编译打包
# 编译打包
配置完成后你需要进入项目目录将项目打包
# 修改默认文件打包名称
- 不指定版本号,默认打出来的jar为
lln-mall-v202112.1.19.jar
- 如果要修改默认打包名称,打开并编辑文件
lln-mall/pom.xml
修改以下配置即可
<system.version>v202112.1.19</system.version>
1
# 修改默认启用环境配置
打开并编辑文件 lln-mall/pom.xml
。注意:修改的是项目目录下的 pom.xml
<profiles>
<profile>
<!-- local 环境 -->
<id>local</id>
<properties>
<profile.active>local</profile.active>
<logback.dir>./logs</logback.dir>
</properties>
</profile>
<profile>
<!-- pro 环境 -->
<id>pro</id>
<!-- 设置为默认启用的配置 -->
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<profile.active>pro</profile.active>
<logback.dir>./logs</logback.dir>
</properties>
</profile>
</profiles>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 编译打包
打包后的文件在 lln-mall/lln-web/target/lln-mall-v202112.1.19.jar
目录下
cd lln-mall
mvn clean package
#or 指定系统版本打包名
mvn clean package -Dsystem.version=v202112.1.19
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
mvn clean package -Dsystem.version=v202112.1.19
打包出来的文件名后缀和系统版本是一致的,版本号主要用来升级用的