We have a web application (Java + Tomcat + Spring + Maven) that depends on resources. So the app-1.0.1.war depends on the resources-1.0.3.jar. When we need to fix a bug in the resources, we need
In our team some people think that it's a not an efficient way to do. They would prefer to
So basically no redeployment of the app. It seems easier but I can see several problems with this approach:
What is the common practice to update static resources of a web application?
We follow a similar approach with our projects as well.
There are a number of reason to do this, these are some of the ones that stick out for me:
If none of these apply to you, consider reading Dependency Version Ranges in the Maven documentation. Something like this should accomplish what you're trying to do:
<version>LATEST</version>
Edit:
So basically no redeployment of the app
This is untrue, the resources would only be updated each time mvn install is run - every time you build a war.
So yes, you will always have the most updated jar during development but an older war would not suddenly be bundled with freshly released jars on the fly. And trust me, you definitely do not want that.
You are only cutting out one step:
You're adding a lot of risk to remove one step. Check out the link I posted above, it might give you some more fitting alternatives. LATEST is probably not what you're looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With