From fadf2f309ca6a28e97011d725e0d1dcb585e4453 Mon Sep 17 00:00:00 2001 From: Filip Izydorczyk Date: Wed, 12 Aug 2020 15:08:38 +0200 Subject: [PATCH] Working packaging to jar --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index d056b53..6d62888 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,18 @@ cd restservice mvn spring-boot:run ``` +## Packaging + +Zeby spakowac apke do `jara` wystarcza dwie komendy + +``` +cd restservice +mvn clean package spring-boot:repackage + +``` + +Utworzony zostanie jar w `restservice/target/restservice-1.0-SNAPSHOT.jar`. Oczywiscie zeby jar zadzialal kontenery dockerowe musza byc odpalone (lub baza danych na serwerze jesli zmienialismy propertisy z localhost) + ## Troubleshooting Spring chyba cacheuje jakies dane dotyczace polaczenia wiec jesli spring wywali Ci blad `Connection Refused`, a wiesz, ze ta baza stoi na podanym ip i porcie to sprobuj