[ https://issues.apache.org/jira/browse/MNGSITE-550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17908086#comment-17908086 ]
ASF GitHub Bot commented on MNGSITE-550: ---------------------------------------- Bukama commented on code in PR #598: URL: https://github.com/apache/maven-site/pull/598#discussion_r1896759481 ########## content/markdown/whatsnewinmaven4.md: ########## @@ -0,0 +1,474 @@ +# What's New in Maven 4? + +Maven is over 20 years old, and is one of the most used build tools in the Java world. +Throughout the years, one important rule has been maintaining the highest backward compatibility possible, especially +with its [POM-schema with Model version 4.0.0][2], used not only for the build itself but also by consumers. +This made Maven more than a tool; it became a whole ecosystem with many dependencies on the POM, especially the Maven +Central repository, other build tools, and IDEs. +But this stable schema comes at a price - the lack of flexibility. + +> "With the Maven build schema preserved in amber, we can’t evolve much: we’ll stay forever with Maven 3 minor releases, +> unable to implement improvements that we imagine will require seriously updating the POM schema…" +> — <cite>[Hervé Boutemy (in Javaadvent 2021)][1]</cite> + +Maven 4 will prepare for changes which are impossible nowadays, like a completely new build schema. + +Another pain point of Maven 3 is a codebase with a lot of deprecated, convoluted, non-performant, and duplicate code +which costs the volunteers who maintain Maven a lot of time. +This means that the Maven codebase contains not only old Java code that can be optimized nowadays but also old Review Comment: > I'm not aware of any code in Maven that can be optimized now that couldn't be optimized in Java 7 and earlier. @khmarbaise told me several times of the last year that code was optimized first with Java 8 features, like streams etc and can be / will now be (since the vote for Java 17 has passed) further optimized with other language features like records, text blocks etc. Passive benefits of improved GC, security updates inside the JDK etc. add to this. > Information about "What's new in Maven 4?" > ------------------------------------------ > > Key: MNGSITE-550 > URL: https://issues.apache.org/jira/browse/MNGSITE-550 > Project: Maven Project Web Site > Issue Type: Improvement > Reporter: Matthias Bünger > Priority: Major > > A comprehensive article/list of the important changes in Maven 4 is needed. > ---- > > Issue based on the slack message / thread, started by [~cstamas] > {quote} > More and more times we get questions like "and what is new in Maven4?". We > have no document that distills the relevant changes. Could someone try to > collect that in cwiki or somewhere? > {quote} -- This message was sent by Atlassian Jira (v8.20.10#820010)