<profile> <id>hudson</id> <activation> <property> <name>BUILD_NUMBER</name> </property> </activation> ...</profile>
Activate a Maven Profile using Hudson
Environment properties weren't available to me on my Mac server for some reason. The solution I eventually adopted was the one used in the Cobertura Plugin docs here. Hudson by default defines a property BUILD_NUMBER which is used to enable the profile.