Files
cody-crm/BUILD.md
wangziqi 72e2110987
Some checks failed
Synchronize to Gitee / repo-sync (push) Has been cancelled
Typos Checking / Spell Check with Typos (push) Has been cancelled
chore: initial commit
2026-06-23 11:56:23 +08:00

49 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 构建过程说明
本项目包含多个模块,构建分为基础配置安装、后端构建、前端构建和整体打包四个部分。
---
## 🔧 1. 安装基础 POM
该命令会将 `parent pom` 安装到本地 Maven 仓库,使其他外部子工程可以获取最新的 `<properties>` 配置。
```bash
# 如果遇到网络问题,可以使用阿里云镜像加速
./mvnw install -N
```
这是多模块项目的必要步骤确保所有子模块能正确继承父POM的配置。
---
## 🖥️ 2. 后端构建
执行以下命令构建后端模块(如 `backend` 中的 `framework``crm``app` 等)并安装到本地仓库:
```bash
./mvnw clean install -DskipTests -DskipAntRunForJenkins --file backend/pom.xml
```
> ✅ 参数说明:
>
> * `-DskipTests`: 跳过测试用例执行。
> * `-DskipAntRunForJenkins`: 跳过 Jenkins 使用的 Ant 任务。
---
## 💻 3. 前端构建
前端构建请参考 [`/frontend/REDEME.md`](./frontend/REDEME.md) 中的具体说明!
> 📌 提示:确保运行环境已正确安装 Node.js 和依赖环境!
---
## 📦 4. 整体打包
使用以下命令进行完整的构建与打包:
```bash
./mvnw clean package
```
> ✅ 备注:
> mvnw 为项目自带打包工具,也可使用本地部署的 mvn