{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7588","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7588/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7588/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7588/events","html_url":"https://github.com/spring-projects/spring-boot/issues/7588","id":194033289,"number":7588,"title":"jvmArguments is ignored when fork is set to false","user":{"login":"mtyurt","id":2225537,"avatar_url":"https://avatars.githubusercontent.com/u/2225537?v=3","gravatar_id":"","url":"https://api.github.com/users/mtyurt","html_url":"https://github.com/mtyurt","followers_url":"https://api.github.com/users/mtyurt/followers","following_url":"https://api.github.com/users/mtyurt/following{/other_user}","gists_url":"https://api.github.com/users/mtyurt/gists{/gist_id}","starred_url":"https://api.github.com/users/mtyurt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtyurt/subscriptions","organizations_url":"https://api.github.com/users/mtyurt/orgs","repos_url":"https://api.github.com/users/mtyurt/repos","events_url":"https://api.github.com/users/mtyurt/events{/privacy}","received_events_url":"https://api.github.com/users/mtyurt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-07T12:10:04Z","updated_at":"2016-12-07T12:10:04Z","closed_at":null,"body":"For following pom file,\r\n\r\n```\r\n<plugin>\r\n    <groupId>org.springframework.boot</groupId>\r\n    <artifactId>spring-boot-maven-plugin</artifactId>\r\n    <version>1.4.2.RELEASE</version>\r\n    <configuration>\r\n        <profiles>\r\n            <profile>dev</profile>\r\n        </profiles>\r\n\r\n        <jvmArguments>-Dbase.dir=/Users/mt/dev/ops/maven-test</jvmArguments>\r\n        <fork>false</fork>\r\n    </configuration>\r\n    <executions>\r\n        <execution>\r\n            <goals>\r\n                <goal>repackage</goal>\r\n            </goals>\r\n        </execution>\r\n    </executions>\r\n</plugin>\r\n```\r\n\r\n`null` is returned when I execute `System.getProperty(\"base.dir\")` in the code. When I remove the `fork` configuration, the same property is set properly. I have read the documents that  the process is forked when `jvmArguments` or `agent` is specified, I somehow forgot the `fork` configuration and it took me quite a time to just remove the line. I expected `jvmArguments` to override `fork` configuration, or a simple error that would fail the build is also OK."}}
{"actor":{"display_login":"mtyurt"}}