From e8d742a9988f62bf7413243ae28b1d4eafc2ffe5 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Mon, 31 Mar 2014 14:22:25 +0200 Subject: [PATCH] Workaround for MNG-3328 Maven profile activation is buggy and evaluates criteria as an ORed list. Thus it's impossible to match environment for jdk > 1.6 AND os.family = mac This workaround uses the java.vm.vendor property which is 'Apple Inc.' only for apple provided JDKs (mac only and jdk < 1.7). --- pom.xml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/pom.xml b/pom.xml index 9306750..49e9ac9 100644 --- a/pom.xml +++ b/pom.xml @@ -251,7 +251,7 @@ - linux + linux so yaz-config @@ -317,10 +317,9 @@ - + osx - 1.6 mac @@ -328,8 +327,8 @@ osx dylib - mac - ${java.home}/../Headers + darwin + ${java.home}/../include unix @@ -337,19 +336,16 @@ - - osx-oracle + + apple-jdk - [1.7,) - - mac - + + java.vendor + Apple Inc. + - osx - dylib - darwin - ${java.home}/../include + ${java.home}/../Headers unix -- 1.7.10.4