maven enforcer plugin questions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

maven enforcer plugin questions

Andrew Marlow
Hello everyone,

excuse me, is this the right place to discuss questions about the maven
enforcer plugin please?

--
Regards,

Andrew Marlow
http://www.andrewpetermarlow.co.uk
Reply | Threaded
Open this post in threaded view
|

Re: maven enforcer plugin questions

Bernd Eckenfels
Hello,

Yes. this list can be used to reach users of maven, including maven plugins like the enforcer plugin (a official plugin has the name maven-something-plugin and is hosted on the Maven web site like https://maven.apache.org/enforcer/maven-enforcer-plugin/).

But even if it where a third party plugin, it is fine to discuss them here with other users.

Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
Von: Andrew Marlow <[hidden email]>
Gesendet: Saturday, December 5, 2020 1:01:35 PM
An: [hidden email] <[hidden email]>
Betreff: maven enforcer plugin questions

Hello everyone,

excuse me, is this the right place to discuss questions about the maven
enforcer plugin please?

--
Regards,

Andrew Marlow
http://www.andrewpetermarlow.co.uk
Reply | Threaded
Open this post in threaded view
|

Re: maven enforcer plugin questions

Andrew Marlow
hi,

Thank you Bernd for answering my question. I didn't know about the
dedicated mailing list. However, when I go to
https://maven.apache.org/enforcer/maven-enforcer-plugin/ and see the link
to https://maven.apache.org/enforcer/maven-enforcer-plugin/mail-lists.html
I find that link is broken, so I will ask the question here.

I have introduced the enforcer to the project I am working on and have
found it very useful. However I have just been compelled to abandon it
which I do with great reluctance.   Upon the merging in of some pom changes
the enforcer started to change what it had been reporting even though the
changes were innocuous. There were no dependency changes. Furthermore, it
started to not report on convergence errors that it previously did report.
I run the enforcer via a python script that runs the enforcer, capturing
the output into a logfile. It then analyses the logfile to find where the
convergence errors are and reports on those which are not in an exemption
list that the script has. When this started happening in some of our
jenkins jobs I ran the same commands that the jobs uses and I got different
results. I was also able to get a third result that was different to the
other two by running the same command but with specifying my own maven
local repo cache via the -Dmaven.local.repo option. So I was forced to come
to the conclusion that the enforcer is unreliable. I would be interested to
hear what use other developers make of the enforcer and what their
experiences are.

On Sat, 5 Dec 2020 at 17:18, Bernd Eckenfels <[hidden email]> wrote:

> Hello,
>
> Yes. this list can be used to reach users of maven, including maven
> plugins like the enforcer plugin (a official plugin has the name
> maven-something-plugin and is hosted on the Maven web site like
> https://maven.apache.org/enforcer/maven-enforcer-plugin/).
>
> But even if it where a third party plugin, it is fine to discuss them here
> with other users.
>
> Gruss
> Bernd
> --
> http://bernd.eckenfels.net
> ________________________________
> Von: Andrew Marlow <[hidden email]>
> Gesendet: Saturday, December 5, 2020 1:01:35 PM
> An: [hidden email] <[hidden email]>
> Betreff: maven enforcer plugin questions
>
> Hello everyone,
>
> excuse me, is this the right place to discuss questions about the maven
> enforcer plugin please?
>
> --
> Regards,
>
> Andrew Marlow
> http://www.andrewpetermarlow.co.uk
>


--
Regards,

Andrew Marlow
http://www.andrewpetermarlow.co.uk
Reply | Threaded
Open this post in threaded view
|

Re: maven enforcer plugin questions

Tomo Suzuki
>  though the changes were innocuous

In such case, usually run “mvn help:effective-pom“ to figure out the
difference.

In my experience, enforcer rules (requireUpperBounds,
dependencyConvergence) are deterministic and reliable. Would you be willing
to share a minimum reproducible project as a Github repository? I‘m
interested in 2 enforcer rule invocations show different results.

Regards,
Tomo

On Sat, Dec 5, 2020 at 13:43 Andrew Marlow <[hidden email]> wrote:

> hi,
>
> Thank you Bernd for answering my question. I didn't know about the
> dedicated mailing list. However, when I go to
> https://maven.apache.org/enforcer/maven-enforcer-plugin/ and see the link
> to https://maven.apache.org/enforcer/maven-enforcer-plugin/mail-lists.html
> I find that link is broken, so I will ask the question here.
>
> I have introduced the enforcer to the project I am working on and have
> found it very useful. However I have just been compelled to abandon it
> which I do with great reluctance.   Upon the merging in of some pom changes
> the enforcer started to change what it had been reporting even though the
> changes were innocuous. There were no dependency changes. Furthermore, it
> started to not report on convergence errors that it previously did report.
> I run the enforcer via a python script that runs the enforcer, capturing
> the output into a logfile. It then analyses the logfile to find where the
> convergence errors are and reports on those which are not in an exemption
> list that the script has. When this started happening in some of our
> jenkins jobs I ran the same commands that the jobs uses and I got different
> results. I was also able to get a third result that was different to the
> other two by running the same command but with specifying my own maven
> local repo cache via the -Dmaven.local.repo option. So I was forced to come
> to the conclusion that the enforcer is unreliable. I would be interested to
> hear what use other developers make of the enforcer and what their
> experiences are.
>
> On Sat, 5 Dec 2020 at 17:18, Bernd Eckenfels <[hidden email]>
> wrote:
>
> > Hello,
> >
> > Yes. this list can be used to reach users of maven, including maven
> > plugins like the enforcer plugin (a official plugin has the name
> > maven-something-plugin and is hosted on the Maven web site like
> > https://maven.apache.org/enforcer/maven-enforcer-plugin/).
> >
> > But even if it where a third party plugin, it is fine to discuss them
> here
> > with other users.
> >
> > Gruss
> > Bernd
> > --
> > http://bernd.eckenfels.net
> > ________________________________
> > Von: Andrew Marlow <[hidden email]>
> > Gesendet: Saturday, December 5, 2020 1:01:35 PM
> > An: [hidden email] <[hidden email]>
> > Betreff: maven enforcer plugin questions
> >
> > Hello everyone,
> >
> > excuse me, is this the right place to discuss questions about the maven
> > enforcer plugin please?
> >
> > --
> > Regards,
> >
> > Andrew Marlow
> > http://www.andrewpetermarlow.co.uk
> >
>
>
> --
> Regards,
>
> Andrew Marlow
> http://www.andrewpetermarlow.co.uk
>
--
Regards,
Tomo