Thanks! I finally tried looking at this. This works for me.
Side note: We use the enforcer plugin only when we enable a certain profile
because of MENFORCER-306. We can't downgrade before that defect because
of MENFORCER-268. 306 is fixed in 3.0.0-M3, which is not in Maven Central
yet. I forgot to enable the profile.
On Sat, Sep 7, 2019 at 4:37 AM John Patrick wrote:
> Technically you didn't do anything wrong...
> If you don't configure what version of java and maven your project
> requires, then versions will tell you about all options available.
>
> So that is saying if you want users to build using maven 2.0.1 then
> the maven-war-plugin needs to be 2.0.2.
>
> If you add something like below which says I can run on maven 3.6.0 or
> newer, I can also only run on java 1.8, or java 11 or newer, e.g. not
> java 9 and not java 10. Then when you re-run versions older versions
> of maven won't be shown. Also check your using versions 2.7
>
> org.apache.maven.plugins
> maven-enforcer-plugin
> 3.0.0-M2
>
>
> enforce-requirements
>
> enforce
>
>
>
>
> [1.8,9),[11,)
>
>
> [3.6.0,)
>
>
>
>
>
>
>
> Hope that helps.
>
> John
>
> On Fri, 6 Sep 2019 at 16:37, Jason Young
> wrote:
> >
> > Did I do something wrong?
> >
> > $ mvn versions:display-plugin-updates
> > ...
> > [INFO] Require Maven 2.0.1 to use the following plugin updates:
> > [INFO] maven-war-plugin ... 3.2.3 ->
> 2.0.2
> >
> > --
> >
> > Jason Young
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>