Values for os.family in Maven profile activation condition

前端 未结 4 1045
萌比男神i
萌比男神i 2021-02-12 11:01

Maven allows to activate certain build profiles based on the operating system family it runs on, for example:



        
4条回答
  •  一整个雨季
    2021-02-12 11:14

    The values are defined in the plexus-utils project, in Os.java. You can see in isOs that the match is case-insensitive, that the value is taken from System.getProperty( "os.name" ) and that you should specify unix to match a Linux platform.

提交回复
热议问题