Running springboot using maven vs. via java directly?
Essentially, the Jenkins CI job runs mvn spring-boot:run .... in a productions cluster as the only way to run the application. With this build step, in effect, we are running the springboot app only via maven and this has led to a very unstable jvm behavior. Also, I am unable to configure all the possible tweaks to the jvm e.g, turning on gc logging or changing to G1GC etc.. etc.. I just wanted to know if running my java springboot app should indeed be packaged into a fat jar and run with standard jvm flags, rather than from maven. Please let me know your thoughts
Spring boot maven plugin has jvmArguments in order to set jvm settings. ...... <configuration> <jvmArguments>-Xdebug</jvmArguments> </configuration> ....... The second option is to create a self-executable jar/war and use a standard way to run app - java -jar app.jar <jvm properties>
Our teams have been running fat jars similar to how others have stated with the simple java -jar ****.jar commands. However, once in production, you can utilize a container clustering system to construct the many microservices that make up your app. Seems like running maven and deploying source code, rather than artifacts seems dangerous. Hopefully this helps!
Maven - Is it possible to specify mirror in pom.xml?
Maven: Show comment/alert in console when a dependency is used (compile/package/…)
Remove filter in web.xml in jetty
How to execute code before TestNG for ie. building up the test suite
Reading a maven settings.xml when building with gradle?
Maven Nested Multi-module project
mvn clean package, I want to copy the created jar to the current directory
Merging configuration values in Maven
In Maven 3 how can I use project.version for the module as a dependency to another project
jmeter plugin maven test-jar
i am getting “Missing artifact groupId:artifactId:version:lifecycle ” while compiling the project
Best way to auto compile compass-style SASS via maven
How to configure multi-module Maven + Sonar + JaCoCo to give merged coverage report?
maven determine default lifecycle phase for plugin
Multiple errors staging a release in Maven?
Maven project not built pom.xml error