You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "DK (JIRA)" <ji...@apache.org> on 2016/06/03 09:40:59 UTC

[jira] [Commented] (MENFORCER-142) Specify enforcer rule in command line without updateing any pom

    [ https://issues.apache.org/jira/browse/MENFORCER-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15313908#comment-15313908 ] 

DK commented on MENFORCER-142:
------------------------------

I'd like something like 

mvn enforcer:enforce -Drules=org.apache.maven.plugins.enforcer.RequireReleaseDeps 

or even better

mvn enforcer:enforce -DrulesFile=C:/rules.xml

where rules.xml contains a bunch of rules similar to what you'd add to pom.xml

> Specify enforcer rule in command line without updateing 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
>             Fix For: more-investigation
>
>
> 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
(v6.3.4#6332)