[
https://issues.apache.org/jira/browse/MENFORCER-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15313908#comment-15313908
]
DK edited comment on MENFORCER-142 at 6/3/16 9:41 AM:
------------------------------------------------------
I'd like something like
{code}mvn enforcer:enforce
-Drules=org.apache.maven.plugins.enforcer.RequireReleaseDeps{code}
or even better
{code}mvn enforcer:enforce -DrulesFile=C:/rules.xml{code}
where {{rules.xml}} contains a bunch of rules similar to what you'd add to
pom.xml
was (Author: darvar):
I'd like something like
{code}mvn enforcer:enforce
-Drules=org.apache.maven.plugins.enforcer.RequireReleaseDeps{code}
or even better
{code}mvn enforcer:enforce -DrulesFile=C:/rules.xml{code}
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)