maven


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!

Related Links

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

Categories

HOME
compiler-construction
image-processing
tizen
google-api-php-client
hp-exstream
fft
objectgears
paw-app
amazon-ecs
installshield
fingerprint
ezpublish
bs4
session-variables
adobe-analytics
node-pdfkit
volttron
google-cloud-spanner
windows-server-2012
django-simple-history
flux
nhibernate-envers
introduction
predix
jquery-ajaxq
csrf-protection
kvc
firebase-crash-reporting
crosstab
emgucv
xpages-ssjs
pepper
user-interaction
traffic
file-rename
google-rich-snippets
uisplitview
semantic-versioning
perlin-noise
xmlreader
accelerate-framework
amazon-kinesis-kpl
main
hockeyapp
c11
unobtrusive-validation
leading-zero
opshub
temporary-files
cookiecutter-django
optix
mapzen
eclipse-scout
elmah
glew
turbogears
babel-core
dandelion
jlink
veracode
nativeapplication
crypt
google-perftools
android-cursor
objective-c-swift-bridge
nxt
ado.net-entity-data-model
transmitfile
firebaseui
icu4j
jqgrid-formatter
responsive-images
service-accounts
sysinternals
event-bubbling
vstest.console.exe
sortedlist
sorl-thumbnail
c3
google-style-guide
fpml
jubula
hyprlinkr
gnu-smalltalk
geos
gridcontrol
wsdl-2.0
pvrtc
dmoz
newtonscript
viewswitcher
stage
psi
gdlib
floating
blitz++
wise
adrotator
putchar

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App