You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Martin Desruisseaux <ma...@geomatys.com> on 2024/11/25 12:15:51 UTC
[DISCUSS] Release Apache Maven 4.0.0-rc-1
Hello all
Just for planning, there is one significant change that I was hopping to
bring to Maven model: the introduction of a Source element, as discussed
previously. A draft is a [1]. If Maven 4.0.0 is released soon, would a
change of model still be possible in, for example, Maven 4.1?
Martin
[1]https://github.com/Geomatys/maven/commit/72cad99b6772674874b5d14a553ba29788d28c21
Re: [DISCUSS] Release Apache Maven 4.0.0-rc-1
Posted by Guillaume Nodet <gn...@apache.org>.
Le lun. 25 nov. 2024 à 14:41, Martin Desruisseaux <
martin.desruisseaux@geomatys.com> a écrit :
> Le 2024-11-25 à 13 h 23, Guillaume Nodet a écrit :
>
> > Yes, the model can now evolve much more easily than with Maven 3,
> > that's one of the main benefits of Maven 4. You should create a PR for
> > these changes, eventually in draft mode if it's not ready yet.
> >
> Thanks, done in draft mode: https://github.com/apache/maven/pull/1936
>
> One more topic (a "would be nice", not critical): I was thinking to
> propose the replacement of `org.apache.maven.api.plugin.Log` interface
> by the `System.Logger` interface, since both are equivalent. The latter
> is a supported API by Java standard, and its advantage would be to allow
> logging frameworks to detect correctly who emitted the log record. It
> would have no immediate advantage for Maven, but I thought that a future
> task may be to improve user's experience regarding Maven logging (make
> them less verbose, easier to read, more informative when needed). So the
> Log interface replacement would not be needed now, but I mention it
> because if such change was made, it would be an incompatible Maven 4.0.0
> core API change. Or would it be a change candidate for Maven 5?
>
The Maven 4 API is still flagged as experimental. I think we need to keep
it that way for 4.x so that plugins and extensions can start migrating to
this new API and report any missing feature. I think there will be some,
one of the reasons is that the model is now immutable, so that plugins that
were modifying the model directly will need some official entry points in
the API to do so, and we have very limited opening right now.
I don't want to hijack the thread too much here, so we can discuss logging
details in a different thread...
Guillaume
>
> Martin
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
--
------------------------
Guillaume Nodet
Re: [DISCUSS] Release Apache Maven 4.0.0-rc-1
Posted by Martin Desruisseaux <ma...@geomatys.com>.
Le 2024-11-25 à 13 h 23, Guillaume Nodet a écrit :
> Yes, the model can now evolve much more easily than with Maven 3,
> that's one of the main benefits of Maven 4. You should create a PR for
> these changes, eventually in draft mode if it's not ready yet.
>
Thanks, done in draft mode: https://github.com/apache/maven/pull/1936
One more topic (a "would be nice", not critical): I was thinking to
propose the replacement of `org.apache.maven.api.plugin.Log` interface
by the `System.Logger` interface, since both are equivalent. The latter
is a supported API by Java standard, and its advantage would be to allow
logging frameworks to detect correctly who emitted the log record. It
would have no immediate advantage for Maven, but I thought that a future
task may be to improve user's experience regarding Maven logging (make
them less verbose, easier to read, more informative when needed). So the
Log interface replacement would not be needed now, but I mention it
because if such change was made, it would be an incompatible Maven 4.0.0
core API change. Or would it be a change candidate for Maven 5?
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [DISCUSS] Release Apache Maven 4.0.0-rc-1
Posted by Guillaume Nodet <gn...@apache.org>.
Le lun. 25 nov. 2024 à 13:16, Martin Desruisseaux <
martin.desruisseaux@geomatys.com> a écrit :
> Hello all
>
> Just for planning, there is one significant change that I was hopping to
> bring to Maven model: the introduction of a Source element, as discussed
> previously. A draft is a [1]. If Maven 4.0.0 is released soon, would a
> change of model still be possible in, for example, Maven 4.1?
>
Yes, the model can now evolve much more easily than with Maven 3, that's
one of the main benefits of Maven 4.
You should create a PR for these changes, eventually in draft mode if it's
not ready yet.
But at least, that makes the proposal more open and visible.
Guillaume
>
> Martin
>
> [1]
> https://github.com/Geomatys/maven/commit/72cad99b6772674874b5d14a553ba29788d28c21
>
--
------------------------
Guillaume Nodet