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

  • Home
  • SEARCH
  • 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 9048517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:10:34+00:00 2026-06-16T12:10:34+00:00

I have a web application that is packaged as a war file ( including

  • 0

I have a web application that is packaged as a war file ( including several jar files ).
I noticed that when I run mvn install – the only projects that are compiled are those who have changed – then it replaces these jars in the war file.

If that’s the case – when should I use mvn clean install instead of simply use mvn install?

I guess that if I change any resources than I would have to use mvn clean install – Am I right?

And if I’m right, then whenever I only change classes, is mvn install good enough?

  • 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-06-16T12:10:35+00:00Added an answer on June 16, 2026 at 12:10 pm

    Mostly, the only reason to do a clean is if you do something that would remove or rename a class or resource in the output directory, such as renaming a .java file or changing something that generates classes so that it generates them with different names. In those cases, the old class or resource files will still exist in the output directory and may cause strange behavior.

    Other than that, just use install, and you’ll be fine. Then Maven will only build what needs to be built to bring the output directories up to date.

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

Sidebar

Related Questions

I have some resource files that are in the classpath of my web application
we have a WAR packaged web application which works on a development machine. It
I have a JAR that suddenly needs to be re-packaged as a WAR (don't
I have several web applications that make use of packages using WebActivator. On my
I have a web application that allows users to enter search criteria and the
I have a web application that will be used on iPhones, and want to
We have a web application that is generating some 3-5 parallel threads every five
I have a web application that maintains a version flag as a ServletContext.setAttribute('flag', flagValue)
I have a web application that has a constant URL and internal state machine.
I have a Web Application that use Hibernate 3.0. When I restart my database

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.