Spring components and build profiles

Hi everyone,
I have a service in my server plugin, written as a Spring component (using the scanner library), but I would like to have two different implementations of it and choose the one I need according to the Maven profile I’m compiling against.

Any idea how to achieve that? I made some tests, still no results.


Hello, I’m also interested in how to make this work. Could anyone help us ?