java - When using Spring and Maven, what is the best way to deploy the code to the server? -
i have project uses spring. every time deploy, run maven goal "package", runs tests , creates war file. manually use ftp program copy war file server. run bash script shut down server, replace war , start server again.
sometimes when changes done database schema, have run sql migration script manually.
is there better workflow can use? project's war file gets 60mb, having wait 10-12 minutes upload server. if realize 1 little thing needs changed, have whole process on again.
it's doubly bad me because on dsl, upload bandwidth kills download bandwidth, internet inoperable. working on project , running maven goals slow because use internet connection dependencies time.
is there better way work? thanks.
first of avoid manual ftp copies using maven deploy plugin. can find how-to deploy projects on ftp @ url:
http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ftp.html
second point question project: war size normal?
i've heard of configurations embedded superfluous jar in order avoid problem of meta-inf/spring.handlers overwriting when building final jar. if you're in situation, might interested too:
http://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html
Comments
Post a Comment