Using 2017.4.0 version, and have profiles development, localhost, production,uat.
Have project-defaults.yml in src/main/resources (also tried with project-stages.yml)
when starting swarm from command,
java -jar target/example-swarm-service.jar -S development
it is always picking default as profile and not taking development or other.
But when tried this with project-<profile>.yml (removed project-defaults.yml) it works.
Thought this fixed in
SWARM-1162 but not working.