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

Failure to find org.jenkins-ci.plugins:plugin:pom:2.11 in https://repo.maven.apache.org/maven2
Cobertura wrong coverage reporting issues
Configuration of Maven profile to connect with SonarQube which is using LDAP
docker, maven start failed: Connection is still allocated
Build Failure while while building the Apache Zeppelin
Use EndptEnabler with maven
What is the final dependency scope when different scopes are specified for one JAR?
Maven and JavaFX project in IntelliJ IDEA
Nexus directory storage/repositoryName/.nexus/attributes - What is it for?
Gradle Support for GCP Dataflow Templates?
OWASP Dependency check : Adding modelVersion version to dependency check report
How to integrate maven with Protractor for CI/CD
Payara-Micro Embedded with Java EE
Determining the existence of a new SNAPSHOT version of dependencies in Nexus?
TestNG: Is it possible to break test Suites to run single parallel test Suites
CAS Server 5.0.x : Add new pages or features

Categories

HOME
date
office365api
infragistics
electronics
sqlite3
v8
mvvmcross
acquia
elasticsearch-hadoop
event-handling
flask-wtforms
clearcase-ucm
foselasticabundle
seaborn
graphlab
jprofiler
kvc
selectedindexchanged
saas
frame
.net-4.0
hybridauth
textmate
form-data
android-nestedscrollview
hilbert-curve
streamreader
temporary-files
particles.js
sql-server-agent
jquery-nestable
svmlight
android-cursor
boost-preprocessor
windows-iot-core-10
epson
jspdf-autotable
color-profile
radtreelist
lttng
packagist
jms2
ora-00900
retina
quicklisp
coveralls
emailrelay
composite
e10s
dd
relocation
eol
poller
viadeo
page-layout
ruby-datamapper
pushbackinputstream
mqx
unc
frameset
propertyeditor
viewswitcher
amazon-appstore
window-management
zpt
rfc1123
appendto
pyinotify
radcombobox
eqatec

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