{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/14492","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/14492/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/14492/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/14492/events","html_url":"https://github.com/spring-projects/spring-boot/issues/14492","id":360870345,"node_id":"MDU6SXNzdWUzNjA4NzAzNDU=","number":14492,"title":"Starting in v1.5.3, devtools no longer works on macOS","user":{"login":"danielpgross","id":4006062,"node_id":"MDQ6VXNlcjQwMDYwNjI=","avatar_url":"https://avatars3.githubusercontent.com/u/4006062?v=4","gravatar_id":"","url":"https://api.github.com/users/danielpgross","html_url":"https://github.com/danielpgross","followers_url":"https://api.github.com/users/danielpgross/followers","following_url":"https://api.github.com/users/danielpgross/following{/other_user}","gists_url":"https://api.github.com/users/danielpgross/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpgross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpgross/subscriptions","organizations_url":"https://api.github.com/users/danielpgross/orgs","repos_url":"https://api.github.com/users/danielpgross/repos","events_url":"https://api.github.com/users/danielpgross/events{/privacy}","received_events_url":"https://api.github.com/users/danielpgross/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-17T13:30:11Z","updated_at":"2018-09-17T13:30:11Z","closed_at":null,"author_association":"NONE","body":"Testing using a simple spring-boot starter generated by initializr: [Download starter](https://start.spring.io/starter.zip?type=maven-project&language=java&bootVersion=1.5.16.RELEASE&baseDir=demo&groupId=com.example&artifactId=demo&name=demo&description=Demo+project+for+Spring+Boot&packageName=com.example.demo&packaging=jar&javaVersion=1.8&autocomplete=&generate-project=&style=devtools)\r\n\r\nWith identical JDKs and maven versions, devtools works fine on Ubuntu 16.04 but does not work on macOS 10.13.6. The symptoms are:\r\n1. The main thread is called `main` instead of `restartedMain`.\r\n2. The application does not restart automatically (even though it should) upon changes to files in the classpath.\r\n\r\nI have tested this going back to older versions and determined that the first version in which this broke is 1.5.3.\r\n\r\nTo reproduce:\r\n1. [Download starter](https://start.spring.io/starter.zip?type=maven-project&language=java&bootVersion=1.5.16.RELEASE&baseDir=demo&groupId=com.example&artifactId=demo&name=demo&description=Demo+project+for+Spring+Boot&packageName=com.example.demo&packaging=jar&javaVersion=1.8&autocomplete=&generate-project=&style=devtools)\r\n2. Unzip the starter and cd into the unzipped directory.\r\n3. Run `mvn spring-boot:run`\r\n\r\nTestcases below:\r\n**macOS**\r\n```\r\n$ mvn -v\r\nApache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T14:33:14-04:00)\r\nMaven home: /usr/local/Cellar/maven/3.5.4/libexec\r\nJava version: 1.8.0_181, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre\r\nDefault locale: en_CA, platform encoding: UTF-8\r\nOS name: \"mac os x\", version: \"10.13.6\", arch: \"x86_64\", family: \"mac\"\r\n```\r\n\r\n```\r\n[INFO] --- spring-boot-maven-plugin:1.5.16.RELEASE:run (default-cli) @ demo ---\r\n[INFO] Attaching agents: []\r\n09:24:58.767 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : []\r\n09:24:58.770 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-starter/target/classes/, /spring-boot-autoconfigure/target/classes/, /spring-boot-starter-[\\w-]+/, /spring-boot/target/classes/, /spring-boot-actuator/target/classes/, /spring-boot-devtools/target/classes/]\r\n09:24:58.771 [main] DEBUG org.springframework.boot.devtools.restart.ChangeableUrls - Matching URLs for reloading : [file:/Users/danielgross/volatile/Downloads/demo-1516/demo/target/classes/]\r\n\r\n  .   ____          _            __ _ _\r\n /\\\\ / ___'_ __ _ _(_)_ __  __ _ \\ \\ \\ \\\r\n( ( )\\___ | '_ | '_| | '_ \\/ _` | \\ \\ \\ \\\r\n \\\\/  ___)| |_)| | | | | || (_| |  ) ) ) )\r\n  '  |____| .__|_| |_|_| |_\\__, | / / / /\r\n =========|_|==============|___/=/_/_/_/\r\n :: Spring Boot ::       (v1.5.16.RELEASE)\r\n\r\n2018-09-17 09:24:59.169  INFO 7807 --- [           main] com.example.demo.DemoApplication         : Starting DemoApplication on daniel with PID 7807 (/Users/danielgross/volatile/Downloads/demo-1516/demo/target/classes started by danielgross in /Users/danielgross/volatile/Downloads/demo-1516/demo)\r\n2018-09-17 09:24:59.170  INFO 7807 --- [           main] com.example.demo.DemoApplication         : No active profile set, falling back to default profiles: default\r\n2018-09-17 09:24:59.217  INFO 7807 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@49c43f4e: startup date [Mon Sep 17 09:24:59 EDT 2018]; root of context hierarchy\r\n2018-09-17 09:24:59.694  INFO 7807 --- [           main] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729\r\n2018-09-17 09:24:59.717  INFO 7807 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup\r\n2018-09-17 09:24:59.730  INFO 7807 --- [           main] com.example.demo.DemoApplication         : Started DemoApplication in 0.989 seconds (JVM running for 1.268)\r\n2018-09-17 09:24:59.731  INFO 7807 --- [       Thread-6] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@49c43f4e: startup date [Mon Sep 17 09:24:59 EDT 2018]; root of context hierarchy\r\n2018-09-17 09:24:59.733  INFO 7807 --- [       Thread-6] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown\r\n```\r\n\r\n**Ubuntu**\r\n```\r\n$ mvn -v\r\nApache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)\r\nMaven home: /opt/apache-maven\r\nJava version: 1.8.0_181, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-oracle/jre\r\nDefault locale: en_US, platform encoding: ANSI_X3.4-1968\r\nOS name: \"linux\", version: \"4.4.0-1065-aws\", arch: \"amd64\", family: \"unix\"\r\n```\r\n\r\n```\r\n[INFO] --- spring-boot-maven-plugin:1.5.16.RELEASE:run (default-cli) @ demo ---\r\n[INFO] Attaching agents: []\r\n13:28:13.786 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : []\r\n13:28:13.795 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-starter/target/classes/, /spring-boot-autoconfigure/target/classes/, /spring-boot-starter-[\\w-]+/, /spring-boot/target/classes/, /spring-boot-actuator/target/classes/, /spring-boot-devtools/target/classes/]\r\n13:28:13.795 [main] DEBUG org.springframework.boot.devtools.restart.ChangeableUrls - Matching URLs for reloading : [file:/home/ubuntu/demo/target/classes/]\r\n\r\n  .   ____          _            __ _ _\r\n /\\\\ / ___'_ __ _ _(_)_ __  __ _ \\ \\ \\ \\\r\n( ( )\\___ | '_ | '_| | '_ \\/ _` | \\ \\ \\ \\\r\n \\\\/  ___)| |_)| | | | | || (_| |  ) ) ) )\r\n  '  |____| .__|_| |_|_| |_\\__, | / / / /\r\n =========|_|==============|___/=/_/_/_/\r\n :: Spring Boot ::       (v1.5.16.RELEASE)\r\n\r\n2018-09-17 13:28:14.384  INFO 11885 --- [  restartedMain] com.example.demo.DemoApplication         : Starting DemoApplication on demo with PID 11885 (/home/ubuntu/demo/target/classes started by ubuntu in /home/ubuntu/demo)\r\n2018-09-17 13:28:14.388  INFO 11885 --- [  restartedMain] com.example.demo.DemoApplication         : No active profile set, falling back to default profiles: default\r\n2018-09-17 13:28:14.541  INFO 11885 --- [  restartedMain] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@3832139c: startup date [Mon Sep 17 13:28:14 UTC 2018]; root of context hierarchy\r\n2018-09-17 13:28:15.815  INFO 11885 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729\r\n2018-09-17 13:28:15.871  INFO 11885 --- [  restartedMain] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup\r\n2018-09-17 13:28:15.909  INFO 11885 --- [  restartedMain] com.example.demo.DemoApplication         : Started DemoApplication in 2.081 seconds (JVM running for 2.643)\r\n2018-09-17 13:28:15.918  INFO 11885 --- [       Thread-8] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@3832139c: startup date [Mon Sep 17 13:28:14 UTC 2018]; root of context hierarchy\r\n2018-09-17 13:28:15.923  INFO 11885 --- [       Thread-8] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown\r\n```"}}
{"actor":{"display_login":"danielpgross"}}