{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3816","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3816/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3816/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3816/events","html_url":"https://github.com/spring-projects/spring-boot/issues/3816","id":102900767,"number":3816,"title":"Issues with Spring Boot build behind corporate proxy","user":{"login":"mrumpf","id":1191530,"avatar_url":"https://avatars.githubusercontent.com/u/1191530?v=3","gravatar_id":"","url":"https://api.github.com/users/mrumpf","html_url":"https://github.com/mrumpf","followers_url":"https://api.github.com/users/mrumpf/followers","following_url":"https://api.github.com/users/mrumpf/following{/other_user}","gists_url":"https://api.github.com/users/mrumpf/gists{/gist_id}","starred_url":"https://api.github.com/users/mrumpf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrumpf/subscriptions","organizations_url":"https://api.github.com/users/mrumpf/orgs","repos_url":"https://api.github.com/users/mrumpf/repos","events_url":"https://api.github.com/users/mrumpf/events{/privacy}","received_events_url":"https://api.github.com/users/mrumpf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/build","name":"build","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-08-24T22:00:52Z","updated_at":"2015-11-05T00:43:49Z","closed_at":null,"body":"The Spring Boot build does not work behind a corporate proxy.\r\nThe [Contribution Guidelines] (https://github.com/spring-projects/spring-boot/blob/master/CONTRIBUTING.adoc) suggests the following command:\r\n\r\n    mvn -P snapshot,prepare install -DskipTests\r\n\r\nBut even if the `-DskipTests` parameter is given, the antunit test is run and fails because there is no proxy configuration passed to the antrun task:\r\n\r\n    [INFO] --- maven-antrun-plugin:1.7:run (antunit) @ spring-boot-antlib ---\r\n    [INFO] Executing tasks\r\n\r\n    main:\r\n        [mkdir] Created dir: C:\\work\\workspaces\\github\\spring-boot\\spring-boot-tools\\spring-boot-antlib\\target\\it\r\n         [copy] Copying 4 files to C:\\work\\workspaces\\github\\spring-boot\\spring-boot-tools\\spring-boot-antlib\\target\\it\r\n    [pathconvert] C:\\work\\workspaces\\github\\spring-boot\\spring-boot-tools\\spring-boot-antlib\\target\\spring-boot-antlib-1.3.0.BUILD-SNAPSHOT.jar\r\n      [antunit] Build File: C:\\work\\workspaces\\github\\spring-boot\\spring-boot-tools\\spring-boot-antlib\\target\\it\\sample\\build.xml\r\n      [antunit] Tests run: 5, Failures: 0, Errors: 5, Time elapsed: 43,502 sec\r\n      [antunit] Target: test-findmainclass-set-property  caused an ERROR\r\n      [antunit]     at line 10, column 133\r\n      [antunit]     Message: impossible to resolve dependencies:\r\n      [antunit]     resolve failed - see output for details\r\n      [antunit]     took 9,039 sec\r\n      [antunit] Target: test-exejar-find-start-class  caused an ERROR\r\n      [antunit]     at line 10, column 133\r\n      [antunit]     Message: impossible to resolve dependencies:\r\n      [antunit]     resolve failed - see output for details\r\n      [antunit]     took 8,593 sec\r\n      [antunit] Target: test-findmainclass-log-message  caused an ERROR\r\n      [antunit]     at line 10, column 133\r\n      [antunit]     Message: impossible to resolve dependencies:\r\n      [antunit]     resolve failed - see output for details\r\n      [antunit]     took 8,588 sec\r\n      [antunit] Target: test-findmainclass-override  caused an ERROR\r\n      [antunit]     at line 10, column 133\r\n      [antunit]     Message: impossible to resolve dependencies:\r\n      [antunit]     resolve failed - see output for details\r\n      [antunit]     took 8,594 sec\r\n      [antunit] Target: test-exejar-explicit-start-class  caused an ERROR\r\n      [antunit]     at line 10, column 133\r\n      [antunit]     Message: impossible to resolve dependencies:\r\n      [antunit]     resolve failed - see output for details\r\n      [antunit]     took 8,659 sec\r\n    [INFO] ------------------------------------------------------------------------\r\n    [INFO] Reactor Summary:\r\n    [INFO]\r\n    [INFO] Spring Boot Dependencies ........................... SUCCESS [  2.501 s]\r\n    [INFO] Spring Boot Parent ................................. SUCCESS [  1.508 s]\r\n    [INFO] Spring Boot Tools .................................. SUCCESS [  0.186 s]\r\n    [INFO] Spring Boot Configuration Metadata ................. SUCCESS [  2.067 s]\r\n    [INFO] Spring Boot Configuration Processor ................ SUCCESS [  0.341 s]\r\n    [INFO] Spring Boot Loader ................................. SUCCESS [  2.567 s]\r\n    [INFO] Spring Boot Loader Tools ........................... SUCCESS [  2.131 s]\r\n    [INFO] Spring Boot Maven Plugin ........................... SUCCESS [  6.725 s]\r\n    [INFO] Spring Boot Gradle Plugin .......................... SUCCESS [  2.073 s]\r\n    [INFO] Spring Boot Antlib ................................. FAILURE [ 46.009 s]\r\n    [INFO] Spring Boot Build .................................. SKIPPED\r\n    [INFO] ------------------------------------------------------------------------\r\n    [INFO] BUILD FAILURE\r\n    [INFO] ------------------------------------------------------------------------\r\n    [INFO] Total time: 01:06 min\r\n    [INFO] Finished at: 2015-08-24T23:49:30+02:00\r\n    [INFO] Final Memory: 68M/673M\r\n    [INFO] ------------------------------------------------------------------------\r\n\r\nSo, there are actually 2 issues:\r\n1. When using -DskipTests the antunit execution should also be skipped.\r\n2. The proxy configuration from the Maven settings.xml must be passed to the antrun plugin\r\n\r\nMy current workaround to get the build past this module was to comment out the antrun plugin in the Maven POM of the antlib module."},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/153917048","html_url":"https://github.com/spring-projects/spring-boot/issues/3816#issuecomment-153917048","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3816","id":153917048,"user":{"login":"mrumpf","id":1191530,"avatar_url":"https://avatars.githubusercontent.com/u/1191530?v=3","gravatar_id":"","url":"https://api.github.com/users/mrumpf","html_url":"https://github.com/mrumpf","followers_url":"https://api.github.com/users/mrumpf/followers","following_url":"https://api.github.com/users/mrumpf/following{/other_user}","gists_url":"https://api.github.com/users/mrumpf/gists{/gist_id}","starred_url":"https://api.github.com/users/mrumpf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrumpf/subscriptions","organizations_url":"https://api.github.com/users/mrumpf/orgs","repos_url":"https://api.github.com/users/mrumpf/repos","events_url":"https://api.github.com/users/mrumpf/events{/privacy}","received_events_url":"https://api.github.com/users/mrumpf/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T00:43:49Z","updated_at":"2015-11-05T00:43:49Z","body":"For the embedded Mono DB server download issue we might need an additional feature in the Maven surefire plugin (see https://issues.apache.org/jira/browse/SUREFIRE-1195)"}}