On May 30, 2010, at 1:33 PM, Bryant Luk wrote: > Do you recommend putting the jaxb dependencies in a profile for only > Java 5 as well? I don't know if that profile selection works in > practice or not so was wondering if you've any experience here.
Profile selection based on jdk version works just fine. So if you want to exclude those deps from the main build and only include them for java5 compat that should be fine. But if you want your dist to be java5 compat, then leave them it... folks that want to use the jdk6's impl can exclude them. I generally only use provides for the internal build needs, not for including jars in dependent builds based on a profile. I guess it should work, but then when you generate your dist.zip's you have to be sure you are using a java5 vm to get those additional bits included as needed... ie. error prone. I think the only problem is that older jdk6's did bitch and complain when it found multiple jaxb2 provider bits, but that has been fixed a while back. But the solution is simple enough, either upgrade your jdk, or remove the jaxb2 stuff... both are user actives. --jason
