You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Enrico Olivelli <eo...@gmail.com> on 2019/10/07 05:52:48 UTC

Consumer pom, use a System property or a pom property ?

Hello,
Robert sent out a (great) patch than enables experimental support for the
consumer pom.

This new way of working is enabled by a system property
-Dmaven.experimental.....

I would like to use this feature when Maven 3.7.0 is out, but it won't be
possible to use such a feature with a system property, as such system
property is to be configured in every build machine in order to be sure
that the build is consistent across all of the environments.

What about having a simply "property" (in <properties />) in the project ?
I will set in on the parent of my hierarchy.
I see we cannot a a new xml tag/xml attribute, as it will be a change in
the version of the pom.

As an alternative we could have a flag in Maven, to be activated by an
'extension'


Thoughts

Enrico

Re: Consumer pom, use a System property or a pom property ?

Posted by Enrico Olivelli <eo...@gmail.com>.
Il lun 7 ott 2019, 20:59 Robert Scholte <rf...@apache.org> ha scritto:

> bq. I would like to use this feature when Maven 3.7.0 is out
>
> There's this interesting idea from Stephen to activate it by default,
> disabling it explicitly by setting the property to false.
>

Using it by default is good.

After thinking more about this 'flag' I do think that a system property is
fine, it will help transitions to the new way, but we should print out a
warning that in the future there will be no way to disable it

Enrico




> I did a Twitter poll, and the result after 100 responses was close to 50/50
>
> The more I think about it, the more I start to like the idea.
> In the past we've always been very careful with activating features, but
> why in this case?
> The whole idea here is that it should not break current poms. However, it
> is possible to remove a couple of elements and these will be added during
> *build* as if they were always there. The installed/deployed pom in based
> on this, minus a view build-specific elements.
>
> Btw, I discovered that I should take care of the LexicalHandler too, so
> there will be more commits and tests.
>
> Robert
>
> ps. thanks for the compliments. I hope it'll move the project forward!
>
> On Mon, 07 Oct 2019 07:52:48 +0200, Enrico Olivelli <eo...@gmail.com>
>
> wrote:
>
> > Hello,
> > Robert sent out a (great) patch than enables experimental support for the
> > consumer pom.
> >
> > This new way of working is enabled by a system property
> > -Dmaven.experimental.....
> >
> > I would like to use this feature when Maven 3.7.0 is out, but it won't be
> > possible to use such a feature with a system property, as such system
> > property is to be configured in every build machine in order to be sure
> > that the build is consistent across all of the environments.
> >
> > What about having a simply "property" (in <properties />) in the
> project
> > ?
> > I will set in on the parent of my hierarchy.
> > I see we cannot a a new xml tag/xml attribute, as it will be a change in
> > the version of the pom.
> >
> > As an alternative we could have a flag in Maven, to be activated by an
> > 'extension'
> >
> >
> > Thoughts
> >
> > Enrico
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Re: Consumer pom, use a System property or a pom property ?

Posted by Robert Scholte <rf...@apache.org>.
bq. I would like to use this feature when Maven 3.7.0 is out

There's this interesting idea from Stephen to activate it by default,  
disabling it explicitly by setting the property to false.

I did a Twitter poll, and the result after 100 responses was close to 50/50

The more I think about it, the more I start to like the idea.
In the past we've always been very careful with activating features, but  
why in this case?
The whole idea here is that it should not break current poms. However, it  
is possible to remove a couple of elements and these will be added during  
*build* as if they were always there. The installed/deployed pom in based  
on this, minus a view build-specific elements.

Btw, I discovered that I should take care of the LexicalHandler too, so  
there will be more commits and tests.

Robert

ps. thanks for the compliments. I hope it'll move the project forward!

On Mon, 07 Oct 2019 07:52:48 +0200, Enrico Olivelli <eo...@gmail.com>  
wrote:

> Hello,
> Robert sent out a (great) patch than enables experimental support for the
> consumer pom.
>
> This new way of working is enabled by a system property
> -Dmaven.experimental.....
>
> I would like to use this feature when Maven 3.7.0 is out, but it won't be
> possible to use such a feature with a system property, as such system
> property is to be configured in every build machine in order to be sure
> that the build is consistent across all of the environments.
>
> What about having a simply "property" (in <properties />) in the project  
> ?
> I will set in on the parent of my hierarchy.
> I see we cannot a a new xml tag/xml attribute, as it will be a change in
> the version of the pom.
>
> As an alternative we could have a flag in Maven, to be activated by an
> 'extension'
>
>
> Thoughts
>
> Enrico

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org