if someone knows an alternative I'm up for suggest...
# server
d
if someone knows an alternative I'm up for suggestions 🙂
a
Use javalin instead #javalin
d
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
Maybe aws beanstalk
d
No I don't want cloud, it's just to run locally
a
Locally? Just run the built jar
Or with the gradle of maven spring boot plugin
d
b
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
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
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
I guess if I had an application server I could maven deploy to it
d
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