630 B
630 B
❓ 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)
npm install
npm run build
- OR:Build and package JAR
mvnw -Pprod clean verify
- OR:Build and package JAR WITHOUT tests
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