Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: grammar cleanup

...

You can activate a profile when a specific system property is set.   Note only properties set on the Maven command line can activate profiles.   Properties set in the POM, the parent POM, or other profiles have no effect.

...

For the family, architecture, and version properties, this is these are checked by comparing these values against System.getProperties( "os.name" ), System.getProperties( "os.arch" ), System.getProperties( "os.version" ) respectively. Thus, the allowed The legal values for these tags depends on what are allowed in those are limited to those held by the System properties.

However, for the family property, there is a list range of possible family values you can enter.be used:

Family Value

Condition for Activation

windows

if OS name contains the word "windows"

os/2

if OS name contains the word "os/2"

netware

if OS name contains the word "netware"

dos

if OS family is not "netware", and its path separator is ";"

mac

if OS name contains the word "mac"

tandem

if OS name contains the word "nonstop_kernel"

unix

if OS family is not "openvms" and not "mac" which names does not end with "X", and its path separator is ":"

win9x

is OS family is "windows" and OS name contains "95", "98", "me", or "ce"

z/os

if OS name contains the word "z/os" or "os/390"

os/400

if OS name contains the word "os/400"

openvms

if OS name contains the word "openvms"

Warning
titleWarning

For Maven versions prior to 2.0.6, you need to declare your OS family, name, arch and version all in small caps lower case (see MNG-2814).

File Activation 

...