resilient/docs/faqs/How to build a PROD jar.md
2025-06-03 19:40:08 +01:00

35 lines
No EOL
630 B
Markdown

## ❓ Frequently Asked Questions
### Q: How to build a PROD jar?
**A:** The steps for a production JAR are:
- Open a command line, as Administrator
- Build front-end (Angular)
```bash
npm install
npm run build
```
- OR:Build and package JAR
```bash
mvnw -Pprod clean verify
```
- OR:Build and package JAR WITHOUT tests
```bash
mvnw -Pprod clean verify -DskipTests -Dmaven.test.skip=true
```
---
**B:** The result is a JAR generated in : target/
**C:** Things to validate
- In target/classes a static/ must exist, after the "Build front-end (Angular)"
- Check for BOOT-INF/classes/static dir in the generated JAR file