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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:51:14+00:00 2026-05-16T08:51:14+00:00

sorry for being dumb here, but I failed to see why these tools can

  • 0

sorry for being dumb here, but I failed to see why these tools can speed up the build.

for example (if I understand it correctly), maven-cli requires you to do a build once: clean, compile, install, then it speeds up your build by caching the clean and compile phrase, so you can execute the install phrase only over and over.

at my first glance, that seems to speed things by not going thru the full loop over and over. however, in reality, if I’m making code changes, shouldn’t I alway re-compile my code before running the install? in that case, how does the speed get faster? the clean phrase might be faster, but for my 100ish modules project, the clean only takes like 5 secs anyways.

so am I being misunderstood about these tools completely? can somehow explain to me how these tools can improve the speed at all? thanks.

mvnsh: http://shell.sonatype.org/faq.html

mvn-cli-plugin: http://wiki.github.com/mrdon/maven-cli-plugin/

  • 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-16T08:51:15+00:00Added an answer on May 16, 2026 at 8:51 am

    In short, the idea of these tools is not to skip phases but to avoid the cost of the initialization of the JVM, of the Maven engine, of plugins, etc at each build by caching them in a ready to (re)use environment.

    This is pretty well summarized (maybe better than in the FAQ) in this Intro to Maven Shell blog post:

    Sonatype has released a nifty utility
    called Maven Shell that allows
    developers to execute maven
    goals/phases in a pre-loaded shell
    environment, significantly reducing
    the build time. It does this by
    loading up a JVM, Maven, and any
    loaded plugin once and leverages that
    existing load for each subsequent
    build
    . I downloaded the .10 binary and
    played around with it with a very
    simple multi-module project. Here is a
    quick primer on some of the things you
    can expect from Maven Shell.

    The same blog post provides some metrics illustrating the improvements on a simple build.

    I personally just love Maven Shell, it’s really a great tool and warmly recommended it to any Maven user.

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

Sidebar

Related Questions

Sorry for this not being a real question, but Sometime back i remember seeing
Sorry for my ignorance here, but when I hear the word webserver, I immediately
Sorry if the title is poorly descriptive, but I can't do better right now
I feel dumb for not knowing this, but I see a lot of links
Sorry for being the 100000th person to ask the same question. But I guess
Sorry for being somewhat vague but so is the project I'm leading now. I
Sorry for being really ignorant here, I just want to learn, why is the
Firstly, sorry for my flawed english and being dumb :O I just want to
Sorry if this sounds like a really stupid question, but I need to make
Sorry for all the dumb jquery questions I'm still learning and find this to

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.