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

ASF GitHub Bot commented on MENFORCER-142:
------------------------------------------

askoog opened a new pull request #31: MENFORCER-142 Initial poc implementation 
of adding rules from cmdline (WIP)
URL: https://github.com/apache/maven-enforcer/pull/31
 
 
   Made a quick implementation of how to set maven enforcer rules directly on 
command line. This would be a great tool to use in CI servers etc. where you 
want to enforce rules that are not in the pom of the project (for example 
verifying dependencyConvergance before building a release without having each 
project specify this themselves)
   
   The implementation is a bit rough and only supports the native enforcer 
rules with no additional configuration at the moment.
   
   With this implementation, it is possible to invoke the plugin with a command 
line argument -Drules=rule1,rule2...
   
   Example:
   `mvn org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-SNAPSHOT:enforce 
-Drules=alwaysPass,alwaysFail`
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> 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
>            Priority: Major
>             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
(v7.6.3#76005)

Reply via email to