diff --git a/docs/faqs/How to build a PROD jar.md b/docs/faqs/How to build a PROD jar.md index 82c2c56..9b3d21b 100644 --- a/docs/faqs/How to build a PROD jar.md +++ b/docs/faqs/How to build a PROD jar.md @@ -13,11 +13,23 @@ npm install npm run build ``` -- Build and package JAR +- 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 \ No newline at end of file diff --git a/docs/faqs/How to make a release.md b/docs/faqs/How to make a release.md new file mode 100644 index 0000000..03ff5b9 --- /dev/null +++ b/docs/faqs/How to make a release.md @@ -0,0 +1,15 @@ +## ❓ Frequently Asked Questions + +### Q: How to make a release? + +**A:** To make a PROD release (not SNAPSHOT) + +- Change the version in pom.xml (usually, remove the "-SNAPSHOT" suffix) +- Build JAR (see "How to build a PROD jar") +- Commit changes (the change to pom.xml) +- Make a TAG in GIT +- Change the version in pom.xml. Increment version and add "-SNAPSHOT" suffix +- Commit changes + +--- +