maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DK (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (MENFORCER-142) Specify enforcer rule in command line without updateing any pom
Date Fri, 03 Jun 2016 09:41:59 GMT

    [ 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 

`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


was (Author: darvar):
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)

Mime
View raw message