Run Maven Enforcer Plugin rule on command line

后端 未结 4 1733
一个人的身影
一个人的身影 2021-01-17 11:28

I would like to enforce the requireReleaseDeps rule of the Maven Enforcer Plugin on a Maven project without any POM configuration simply as a command line call.

Acco

4条回答
  •  被撕碎了的回忆
    2021-01-17 11:59

    Worked for me using Atlassian's fork of the plugin: mvn org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-atlassian-m01:enforce -Drules=...

    I had to declare their plugin repository:

    
        ....
        
            atlassian-3rdparty
            https://maven.atlassian.com/3rdparty
        
    
    

    Hope this helps.

提交回复
热议问题