Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce minimum maven version? #12

Open
EHJ-52n opened this issue Feb 7, 2018 · 1 comment
Open

Enforce minimum maven version? #12

EHJ-52n opened this issue Feb 7, 2018 · 1 comment

Comments

@EHJ-52n
Copy link
Member

EHJ-52n commented Feb 7, 2018

Should we enforce a minimum maven version to build our projects?

Context

I use the versions plugin to get informed about plugin and dependency updates. This plugin logs the following error:

$ mvn versions:display-plugin-updates
[...]
[ERROR] Project does not define required minimum version of Maven.
[ERROR] Update the pom.xml to contain maven-enforcer-plugin to
[ERROR] force the maven version which is needed to build this project.
[ERROR] See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[ERROR] Using the minimum version of Maven: null
[...]

Solution

https://stackoverflow.com/a/32971779:

[...]
      <configuration>
        <rules>
          [...]
          <requireMavenVersion>
            <version>3.2.5</version>
          </requireMavenVersion>
          [...]
        </rules>
      </configuration>
[...]
@autermann
Copy link
Member

And what is our minimum Maven version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants