Search code examples
apachemavenmaven-enforcer-plugin

Hidden maven enforcer configuration?


Is there non-pom.xml configuration for the maven enforcer plugin?

I'm trying to compile an existing project, and it is failing with:

[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-versions) @ root-pom ---
[WARNING] Rule 4: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
Detected Maven Version: 3.3.9 is not in the allowed range [3.2.3,3.3).

I can't find enforcer configuration in any pom.xml file. The Apache documentation simply states that configuration is in the pom.xml.


Solution

  • Thanks A. Di Matteo

    displaying the effective pom (with mvn help:effective-pom) allowed me to see that the enforcer config was indeed coming from a parent pom.