https://kotlinlang.org logo
Title
d

David

03/12/2021, 11:09 PM
if someone knows an alternative I'm up for suggestions 🙂
a

asad.awadia

03/13/2021, 12:07 AM
Use javalin instead #javalin
d

David

03/13/2021, 10:55 AM
Honestly, I chose Spring due to its features apart from the Webserver part, also the project is already done so I don't want to rework it 😛
a

Arian Stolwijk

03/13/2021, 3:14 PM
Maybe aws beanstalk
d

David

03/13/2021, 3:15 PM
No I don't want cloud, it's just to run locally
a

Arian Stolwijk

03/13/2021, 3:16 PM
Locally? Just run the built jar
Or with the gradle of maven spring boot plugin
d
b

Brian Dilley

03/14/2021, 5:47 PM
What problem is that - I can't read it. With sprint you should end up with an Uber Jar and you can literally start it by doing
java -jar your_project-0.1.jar
d

David

03/14/2021, 6:46 PM
Yes I can, but imagine I have an instance of it already running on my PC, and I'm developing something, when finishing the development, I would need to replace the Jar in the "production" folder and restart the server
However, if I could maven deploy it, I would just run that command on IDEA and it would go there "automatically"
d

Dariusz Kuc

03/15/2021, 1:03 AM
I think you are misunderstanding what maven deploy plugin does -> it is deploying artifact to a remote repository (like nexus) vs install plugin that just saves it locally
d

David

03/15/2021, 7:07 PM
I guess if I had an application server I could maven deploy to it
d

Dariusz Kuc

03/15/2021, 7:53 PM
You would use different plugin but yes. As suggested by others I'd just run using spring boot plugin (or if you really want to overeengineer it you could run it inside a container and replace containers whenever new version is published)
👍 1