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 1049447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:37:06+00:00 2026-05-16T16:37:06+00:00

I am just learning maven, and we have recently needed to go more and

  • 0

I am just learning maven, and we have recently needed to go more and more. I would like to know the difference between

  1. mvn clean install
  2. mvn release
  3. mvn deploy

Please be as descriptive as possible.

  • 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-16T16:37:07+00:00Added an answer on May 16, 2026 at 4:37 pm

    The clean, install and deploy phases are valid lifecycle phases and invoking them will trigger all the phases preceding them, and the goals bound to these phases.

    mvn clean install

    This command invokes the clean phase and then the install phase sequentially:

    • clean: removes files generated at build-time in a project’s directory (target by default)
    • install: installs the package into the local repository, for use as a dependency in other projects locally.

    mvn deploy

    This command invokes the deploy phase:

    • deploy: copies the final package to the remote repository for sharing with other developers and projects.

    mvn release

    This is not a valid phase nor a goal so this won’t do anything. But if refers to the Maven Release Plugin that is used to automate release management. Releasing a project is done in two steps: prepare and perform. As documented:

    Preparing a release goes through the
    following release phases:

    • Check that there are no uncommitted changes in the sources
    • Check that there are no SNAPSHOT dependencies
    • Change the version in the POMs from x-SNAPSHOT to a new version (you
      will be prompted for the versions to
      use)
    • Transform the SCM information in the POM to include the final
      destination of the tag
    • Run the project tests against the modified POMs to confirm everything is
      in working order
    • Commit the modified POMs
    • Tag the code in the SCM with a version name (this will be prompted
      for)
    • Bump the version in the POMs to a new value y-SNAPSHOT (these values
      will also be prompted for)
    • Commit the modified POMs

    And then:

    Performing a release runs the
    following release phases:

    • Checkout from an SCM URL with optional tag
    • Run the predefined Maven goals to release the project (by default,
      deploy site-deploy)

    See also

    • Introduction to the Build Lifecycle
    • The Maven Release Plugin
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since I'm just learning C# with .NET, (I have more experience with the XNA
just learning Java and I know this may sound stupid but I have to
I have just started learning CXF. I made a maven archetype project through eclipse.
Just learning the world of jquery, and all my googling gives examples like this:
I'm just learning MVC3 now and this is really confusing me. I have a
I'm just learning nHibernate and have come across what probably is a simple issue
I am just learning to use Services, and am sort of stuck. I have
Just learning WPF databinding and have a gap in my understanding. I've seen a
i am just learning ASP.NET-MVC with Razor, it all works quite well, i like
I'm just learning jQuery, I'm so noob. see, we have 2 divs as follows:

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.