Using Maven 2.2.1
I have defined a profile in my settings.xml file, and specified some
properties. This profile is also listed as an active profile.
For example:
profile
idthird-party-lib-versions/id
properties
You should always ensure that you have a default value for properties
set by profiles. Most likely you're running into some scenario where
the profile just isn't active.
So, in your pom you should define the property as well.
May I also add that what you're trying to do is not good. IMHO you