You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2018/06/17 16:46:00 UTC
[jira] [Closed] (MENFORCER-142) Specify enforcer rule in command
line without modifying any pom
[ https://issues.apache.org/jira/browse/MENFORCER-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl Heinz Marbaise closed MENFORCER-142.
-----------------------------------------
Resolution: Done
Done in [9c4ab3ee009f285027ecad27a544db68c11ffea9|https://gitbox.apache.org/repos/asf?p=maven-enforcer.git;a=commitdiff;h=9c4ab3ee009f285027ecad27a544db68c11ffea9]
Thanks to Andreas Skoog for his contribution.
> Specify enforcer rule in command line without modifying any pom
> ---------------------------------------------------------------
>
> Key: MENFORCER-142
> URL: https://issues.apache.org/jira/browse/MENFORCER-142
> Project: Maven Enforcer Plugin
> Issue Type: Improvement
> Components: Plugin
> Reporter: Arnaud Bourrée
> Assignee: Karl Heinz Marbaise
> Priority: Major
> Fix For: 3.0.0
>
>
> Hello,
> How could we specify enforcer:enforce rules from command line?
> I want to run command line like following without updating any pom.xml:
> mvn enforcer:enforce -Drules=com.acme.UseAcmeParentPom
> The goal of this enforcer:enforce rule is to check that Acme's
> developers write pom.xml which inherit from acme's parent pom.xml
> And because they may not inherit from acme's parent pom.xml, I cannot
> specify enforcer rule in.
> Regards,
> Arnaud.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)