Override Maven plugin configuration defined in the pom pluginManagement from the command line

后端 未结 2 1079
时光取名叫无心
时光取名叫无心 2021-02-18 22:32

The POM that my project inherits contains some for the release plugin that specifies some additional arguments.

2条回答
  •  没有蜡笔的小新
    2021-02-18 23:11

    Found the solution. In my POM I add this which overrides the settings in the parent POM and allows to specify additional arguments on command line, e.g. -Darguments=-Pmock

    
        
            maven-release-plugin
            
                ${arguments} -Prelease
            
        
    
    

提交回复
热议问题