{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6595","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6595/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6595/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6595/events","html_url":"https://github.com/spring-projects/spring-boot/issues/6595","id":170144323,"number":6595,"title":"Spring Boot profiles not active when set with maven plugin","user":{"login":"Siflei","id":20500472,"avatar_url":"https://avatars.githubusercontent.com/u/20500472?v=3","gravatar_id":"","url":"https://api.github.com/users/Siflei","html_url":"https://github.com/Siflei","followers_url":"https://api.github.com/users/Siflei/followers","following_url":"https://api.github.com/users/Siflei/following{/other_user}","gists_url":"https://api.github.com/users/Siflei/gists{/gist_id}","starred_url":"https://api.github.com/users/Siflei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Siflei/subscriptions","organizations_url":"https://api.github.com/users/Siflei/orgs","repos_url":"https://api.github.com/users/Siflei/repos","events_url":"https://api.github.com/users/Siflei/events{/privacy}","received_events_url":"https://api.github.com/users/Siflei/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/waiting-for-feedback","name":"waiting-for-feedback","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-09T11:34:30Z","updated_at":"2016-08-09T12:32:08Z","closed_at":null,"body":"Hi,\r\nI'm trying to set spring profiles when starting Tomcat for integration tests in maven like this:\r\n\r\n    ...\r\n    <plugin>\r\n      <groupId>org.springframework.boot</groupId>\r\n      <artifactId>spring-boot-maven-plugin</artifactId>\r\n      <executions>\r\n        <execution>\r\n          <id>pre-integration-test</id>\r\n            <goals>\r\n              <goal>start</goal>\r\n            </goals>\r\n            <configuration>\r\n              <profiles>\r\n                <profile>testProfile</profile>\r\n              </profiles>\r\n            </configuration>\r\n    ...\r\n\r\nThe profile is definitely not active.\r\n\r\nOn the other hand the following does work and the requested profile is active:\r\n    <jvmArguments>-Dspring.profiles.active=testProfile</jvmArguments>\r\nThe problem here is that we can't stop the server, which is a problem when running automated integration tests.\r\n\r\nI'm using spring boot \"1.4.0.RELEASE\".\r\n\r\nDid we find a bug here?"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/238538441","html_url":"https://github.com/spring-projects/spring-boot/issues/6595#issuecomment-238538441","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6595","id":238538441,"user":{"login":"Siflei","id":20500472,"avatar_url":"https://avatars.githubusercontent.com/u/20500472?v=3","gravatar_id":"","url":"https://api.github.com/users/Siflei","html_url":"https://github.com/Siflei","followers_url":"https://api.github.com/users/Siflei/followers","following_url":"https://api.github.com/users/Siflei/following{/other_user}","gists_url":"https://api.github.com/users/Siflei/gists{/gist_id}","starred_url":"https://api.github.com/users/Siflei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Siflei/subscriptions","organizations_url":"https://api.github.com/users/Siflei/orgs","repos_url":"https://api.github.com/users/Siflei/repos","events_url":"https://api.github.com/users/Siflei/events{/privacy}","received_events_url":"https://api.github.com/users/Siflei/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T12:32:08Z","updated_at":"2016-08-09T12:32:08Z","body":"I'm running \"mvn install -P ITest\" (where ITest is my maven profile).\r\nThis is an extract of my pom:\r\n\r\n<profiles>\r\n        <!-- Profile for executing the \"IntegrationTests\" suite-->\r\n        <profile>\r\n            <id>ITest</id>\r\n            <build>\r\n                <plugins>\r\n                    <plugin>\r\n                        <artifactId>maven-failsafe-plugin</artifactId>\r\n                        <configuration>\r\n                            <groups>de.mnet.pallas.category.IntegrationTests</groups>\r\n                        </configuration>\r\n                        <executions>\r\n                            <execution>\r\n                                <goals>\r\n                                    <goal>integration-test</goal>\r\n                                    <goal>verify</goal>\r\n                                </goals>\r\n                            </execution>\r\n                        </executions>\r\n                    </plugin>\r\n                    <plugin>\r\n                        <groupId>org.springframework.boot</groupId>\r\n                        <artifactId>spring-boot-maven-plugin</artifactId>\r\n                        <executions>\r\n                            <execution>\r\n                                <id>pre-integration-test</id>\r\n                                <goals>\r\n                                    <goal>start</goal>\r\n                                </goals>\r\n                                <configuration>\r\n                                    <profiles>\r\n                                        <profile>testProfile</profile>\r\n                                    </profiles>\r\n                                    <!--<jvmArguments>-Dspring.profiles.active=testProfile,itestProfile</jvmArguments>-->\r\n                                </configuration>\r\n                            </execution>\r\n                            <execution>\r\n                                <id>post-integration-test</id>\r\n                                <goals>\r\n                                    <goal>stop</goal>\r\n                                </goals>\r\n                            </execution>\r\n                        </executions>\r\n                    </plugin>\r\n                </plugins>\r\n            </build>\r\n        </profile>\r\n    </profiles>\r\n\r\nDoes this help? What else do you need?"}}
{"actor":{"display_login":"Siflei"}}