Skip to content

RequireDependencyManagement #913

@delanym

Description

@delanym

New feature, improvement proposal

I was using both of these custom rules to requirement all versions to be managed in a dependencyManagement section.

  <requireManagedDeps implementation="org.commonjava.maven.enforcer.rule.EnforceManagedDepsRule">
    <checkProfiles>true</checkProfiles>
    <failOnViolation>true</failOnViolation>
  </requireManagedDeps>
  <dependencyManagementRule implementation="com.hubspot.maven.plugins.dependency.management.DependencyManagementRule">
    <requireManagement>
      <dependencies>true</dependencies>
      <plugins>true</plugins>
      <allowVersions>false</allowVersions>
      <allowExclusions>true</allowExclusions>
    </requireManagement>
  </dependencyManagementRule>

But with the new enforcer plugin I get warnings

[WARNING] ruleName requireManagedDeps with implementation org.commonjava.maven.enforcer.rule.EnforceManagedDepsRuleuses the deprecated Maven Enforcer Plugin API. This will not be supported in a future version of the plugin. Please contact the rule mainta iner to upgrade the rule implementation to the current API.

Could there be a builtin rule rather?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions