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

Add maven enforcer rule to enforce a minimal mvn version #91

Open
SvetlinZarev opened this issue Oct 25, 2016 · 1 comment
Open

Add maven enforcer rule to enforce a minimal mvn version #91

SvetlinZarev opened this issue Oct 25, 2016 · 1 comment

Comments

@SvetlinZarev
Copy link

SvetlinZarev commented Oct 25, 2016

The build of microprofile-conference fails with unhelpful dependency resolution errors with mvn < 3.2.5 (#88). To mitigate the issue a maven enforcer rule can be added, which should enforce maven version >= 3.2.5. Example rule:


          <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <version>1.4.1</version>
                <executions>
                  <execution>
                    <id>enforce-maven</id>
                    <goals>
                      <goal>enforce</goal>
                    </goals>
                    <configuration>
                      <rules>
                        <requireMavenVersion>
                          <version>[3.2.5,)</version>
                        </requireMavenVersion>
                      </rules>    
                    </configuration>
                  </execution>
                </executions>
         </plugin>

https://maven.apache.org/components/enforcer/enforcer-rules/requireMavenVersion.html

@karianna karianna added this to the 1.0.0 milestone Oct 26, 2016
@AndyGee AndyGee self-assigned this Nov 24, 2016
@AndyGee
Copy link
Contributor

AndyGee commented Nov 24, 2016

No need for the enforcer plugin. Will just add:

<prerequisites>
    <maven>3.2.5</maven>
  </prerequisites>

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

No branches or pull requests

3 participants