Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNGSITE-550 What's new in Maven 4? #598

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Bukama
Copy link
Contributor

@Bukama Bukama commented Dec 17, 2024

This PR adds an article about the major changes in Maven 4.

@Bukama
Copy link
Contributor Author

Bukama commented Dec 17, 2024

Info:

  • I put the article quite on high in the menu to make it more visible. When Maven 4 grew up a bit it can be (re-)moved.
  • I manually edited the site.xml to not apply full code style changes as it's not correctly formatted as of now (see #MNGSITE-539 Formatting the affected files #595)

@Bukama Bukama mentioned this pull request Dec 20, 2024
content/markdown/whatsnewinmaven4.md Outdated Show resolved Hide resolved
content/markdown/whatsnewinmaven4.md Outdated Show resolved Hide resolved
content/markdown/whatsnewinmaven4.md Outdated Show resolved Hide resolved
content/markdown/whatsnewinmaven4.md Outdated Show resolved Hide resolved
content/markdown/whatsnewinmaven4.md Outdated Show resolved Hide resolved
content/markdown/whatsnewinmaven4.md Outdated Show resolved Hide resolved
@Bukama
Copy link
Contributor Author

Bukama commented Dec 20, 2024

Thanks for the feedback and the editing @gnodet!

@Bukama
Copy link
Contributor Author

Bukama commented Dec 21, 2024

Hope everything is fine now :)

To improve performance and reduce build time, you can use the [Maven Daemon][29] (`mvnd`), which manages a pool of N
resident Maven processes.
With Maven 4 you can also use the brightly polished "Maven Shell" (`mvnsh`), which will keep exactly one resident Maven
process as long as the shell is opened.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

### Maven Shell

Each time you run an `mvn` command, the entire process chain is executed: booting Java, starting Maven, loading the configuration, performing the task, tearing down, and exiting — **every single time**.  

To improve performance and reduce build times, you can use the [Maven Daemon][29] (`mvnd`), which manages a pool of resident Maven processes.  

With Maven 4, you can also take advantage of the newly defined "Maven Shell" (`mvnsh`), which keeps a single Maven process running for as long as the shell remains open.

Minor improvements to this section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants