Can I force Maven 2 to require a property to be specified on the command line?

后端 未结 4 1075
被撕碎了的回忆
被撕碎了的回忆 2020-12-31 02:19

I\'m setting up a maven build, and the destination server needs to be specified on the command line as a property (which is then used to select the appropriate profile), eg<

4条回答
  •  半阙折子戏
    2020-12-31 03:01

    Everyone is close, but there's a rule in the enforcer to specifically check for a property, no ant or funky profiles required: http://maven.apache.org/enforcer/enforcer-rules/requireProperty.html

    The rule can also check the value of the property.

提交回复
热议问题