I just discovered something really odd with profiles, not sure if it is
expected.

 

I have 4 profiles.

 

Testqa.remote

Testqa.local

Localhost.remote

Localhost.local

 

I have Localhost.remote set to active via the <activeProfiles> 

 

My effective-pom contains the settings from the associated profiles when
I run with –Ptestqa.remote or –Ptestqa.local, but when I run with
-Plocalhost.local, only variables that aren’t set in localhost.remote
will appear in the effective-pom, instead the values from
localhost.remote are preserved.

 

I tried replacing the “.” with “-“ and got the same behavior.

 

If I change localhost.local to xlocalhost.local, I get my properties.

 

D-


Reply via email to