Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6561113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:32:51+00:00 2026-05-25T13:32:51+00:00

We have a web application ( Java + Tomcat + Spring + Maven )

  • 0

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

  • release a new resources jar => 1.0.4
  • update the dependency in the maven pom of the web app
  • release a new war => 1.0.2
  • deploy the web app

In our team some people think that it’s a not an efficient way to do. They would prefer to

  • release a new jar
  • upload the jar on the server

So basically no redeployment of the app. It seems easier but I can see several problems with this approach:

  • You need to hard code the name of the jar that contains the resources.
  • You don’t know the version of the resources the app is using.

What is the common practice to update static resources of a web application?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:32:52+00:00Added an answer on May 25, 2026 at 1:32 pm

    We follow a similar approach with our projects as well.

    • release a new resources jar => 1.0.4
    • update the dependency in the maven pom of the web app
    • release a new war => 1.0.2
    • deploy the web app

    There are a number of reason to do this, these are some of the ones that stick out for me:

    • Our internal jar files (modules) are re-used throughout a number of projects. Older projects may break with new releases.
    • While point-versions that are written for a single application may not cause any trouble, significant releases could break the entire app. Serious integration testing would be required before being able to do such releases.
    • If you have inter dependencies such as the main application requiring version 1.0.4 and another module requiring 1.0.1 – the main application will always win this tie-breaker. If version 1.0.4 breaks the aforementioned module, you will have to fix it before you can deploy your project.

    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:

    • update the dependency in the maven pom of the web app

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web-application in java, spring framework, hibernate on tomcat, that has basically
I have a java web application wired using Spring on Tomcat. I need a
We have a Java web application that uses Spring and Hibernate and has a
I have a java web application that use spring security for log in users,
I have built a web application using Java EE platform that sells one of
We have a java web service application that uses log4j to do logging. An
Hello I'm building a Spring MVC web application that runs on Tomcat 6.0.20 and
I have a very large problem. I've written a large app using Flex3/Tomcat/BlazeDS/Spring that
I have a Spring framework based Java web application, which has been built in
I have a web application running in tomcat where I'm using a ThreadPool (Java

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.