{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2756","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2756/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2756/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2756/events","html_url":"https://github.com/spring-projects/spring-boot/issues/2756","id":65494458,"number":2756,"title":"spring boot maven plugin is not using properties define in pom","user":{"login":"ouaibsky","id":2921744,"avatar_url":"https://avatars.githubusercontent.com/u/2921744?v=3","gravatar_id":"","url":"https://api.github.com/users/ouaibsky","html_url":"https://github.com/ouaibsky","followers_url":"https://api.github.com/users/ouaibsky/followers","following_url":"https://api.github.com/users/ouaibsky/following{/other_user}","gists_url":"https://api.github.com/users/ouaibsky/gists{/gist_id}","starred_url":"https://api.github.com/users/ouaibsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouaibsky/subscriptions","organizations_url":"https://api.github.com/users/ouaibsky/orgs","repos_url":"https://api.github.com/users/ouaibsky/repos","events_url":"https://api.github.com/users/ouaibsky/events{/privacy}","received_events_url":"https://api.github.com/users/ouaibsky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-31T16:36:55Z","updated_at":"2015-04-01T07:48:27Z","closed_at":"2015-04-01T07:48:27Z","body":"**Requirement** \r\nLeverage on maven profile in order to activate some spring profile\r\n\r\nLet's take an exmaple with **spring.config.name** but could be whatever.\r\n\r\nThe issue\r\n* We are using spring-boot and are not using default configuration filename (aaa.properties in place of application.properties). Adding this property on command line (-Dspring.config.name=aaa.properties) is working but not user friendly and **become quite complex when you have many properties**\r\n\r\n* Based on some maven profile, it could be fine to use pom properties to define some spring boot properties (specially for unit testing or integration tests).\r\n```\r\n            <properties>\r\n                <spring.config.name>aaa.properties</spring.config.name>\r\n                <spring.profiles.active>dev</spring.profiles.active>\r\n                <!-- ..... -->\r\n            </properties>\r\n```\r\n\r\nDoes it make sens ?\r\n\r\nThx \r\nChristophe\r\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/88383453","html_url":"https://github.com/spring-projects/spring-boot/issues/2756#issuecomment-88383453","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2756","id":88383453,"user":{"login":"ouaibsky","id":2921744,"avatar_url":"https://avatars.githubusercontent.com/u/2921744?v=3","gravatar_id":"","url":"https://api.github.com/users/ouaibsky","html_url":"https://github.com/ouaibsky","followers_url":"https://api.github.com/users/ouaibsky/followers","following_url":"https://api.github.com/users/ouaibsky/following{/other_user}","gists_url":"https://api.github.com/users/ouaibsky/gists{/gist_id}","starred_url":"https://api.github.com/users/ouaibsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouaibsky/subscriptions","organizations_url":"https://api.github.com/users/ouaibsky/orgs","repos_url":"https://api.github.com/users/ouaibsky/repos","events_url":"https://api.github.com/users/ouaibsky/events{/privacy}","received_events_url":"https://api.github.com/users/ouaibsky/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T07:48:27Z","updated_at":"2015-04-01T07:48:27Z","body":"Thank you !\r\n\r\nI was not thinking to this solution.\r\nNeed to do same trick for surefire and failsafe and it works good.\r\n\r\nChristophe\r\n"}}