{"action":"created","issue":{"url":"https://api.github.com/repos/grails/grails-core/issues/9856","repository_url":"https://api.github.com/repos/grails/grails-core","labels_url":"https://api.github.com/repos/grails/grails-core/issues/9856/labels{/name}","comments_url":"https://api.github.com/repos/grails/grails-core/issues/9856/comments","events_url":"https://api.github.com/repos/grails/grails-core/issues/9856/events","html_url":"https://github.com/grails/grails-core/issues/9856","id":147726647,"number":9856,"title":"grails cannot resolve dependencies behind a proxy","user":{"login":"vm206","id":1053217,"avatar_url":"https://avatars.githubusercontent.com/u/1053217?v=3","gravatar_id":"","url":"https://api.github.com/users/vm206","html_url":"https://github.com/vm206","followers_url":"https://api.github.com/users/vm206/followers","following_url":"https://api.github.com/users/vm206/following{/other_user}","gists_url":"https://api.github.com/users/vm206/gists{/gist_id}","starred_url":"https://api.github.com/users/vm206/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vm206/subscriptions","organizations_url":"https://api.github.com/users/vm206/orgs","repos_url":"https://api.github.com/users/vm206/repos","events_url":"https://api.github.com/users/vm206/events{/privacy}","received_events_url":"https://api.github.com/users/vm206/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-12T11:55:47Z","updated_at":"2016-04-15T15:35:19Z","closed_at":null,"body":"Hi,\r\n\r\nI just downloaded Grails 3.1.4 and would like to start, but for the `grails` command behind a company proxy with `[JAVA/GRAILS]_OPTS=\"-Dhttp.proxyHost=<...> -Dhttp.proxyPort=8080 -Dhttps.proxyHost=<...> -Dhttps.proxyPort=8080 http.proxyUser=<...> http.proxyPassword=<...>\"` variables set it throws:\r\n\r\n```\r\nResolving dependencies..\r\nError |\r\nFailed to load latest version of profile [angular]. Trying Grails release version (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)\r\norg.springframework.boot.cli.compiler.grape.DependencyResolutionFailedException: org.eclipse.aether.resolution.DependencyResolutionException: Failed to collect dependencies at org.grails.profiles:angular:jar:3.1.4\r\n\tat org.springframework.boot.cli.compiler.grape.AetherGrapeEngine.resolve(AetherGrapeEngine.java:307)\r\n\tat org.springframework.boot.cli.compiler.grape.AetherGrapeEngine.grab(AetherGrapeEngine.java:112)\r\n\tat org.springframework.boot.cli.compiler.grape.AetherGrapeEngine.grab(AetherGrapeEngine.java:104)\r\n\tat org.grails.cli.profile.repository.MavenProfileRepository.getAllProfiles(MavenProfileRepository.groovy:128)\r\n\tat org.grails.cli.GrailsCli.execute(GrailsCli.groovy:241)\r\n\tat org.grails.cli.GrailsCli.main(GrailsCli.groovy:162)\r\nCaused by: org.eclipse.aether.resolution.DependencyResolutionException: Failed to collect dependencies at org.grails.profiles:angular:jar:3.1.4\r\n\tat org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:380)\r\n\tat org.springframework.boot.cli.compiler.grape.AetherGrapeEngine.resolve(AetherGrapeEngine.java:302)\r\n\t... 5 more\r\nCaused by: org.eclipse.aether.collection.DependencyCollectionException: Failed to collect dependencies at org.grails.profiles:angular:jar:3.1.4\r\n\tat org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:291)\r\n\tat org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:341)\r\n\t... 6 more\r\nCaused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.grails.profiles:angular:jar:3.1.4\r\n\tat org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:335)\r\n\tat org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:217)\r\n\tat org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:535)\r\n\tat org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:519)\r\n\tat org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:409)\r\n\tat org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363)\r\n\tat org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351)\r\n\tat org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254)\r\n\t... 7 more\r\nCaused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.grails.profiles:angular:pom:3.1.4 from/to grailsCentral (https://repo.grails.org/grails/core): repo.grails.org\r\n\tat org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)\r\n\tat org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)\r\n\tat org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)\r\n\tat org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:320)\r\n\t... 14 more\r\nCaused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.grails.profiles:angular:pom:3.1.4 from/to grailsCentral (https://repo.grails.org/grails/core): repo.grails.org\r\n\tat org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)\r\n\tat org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)\r\n\tat org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)\r\n\tat org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)\r\n\tat org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)\r\n\tat org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)\r\n\tat org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)\r\n\t... 17 more\r\nCaused by: java.net.UnknownHostException: repo.grails.org\r\n\tat org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)\r\n\tat org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:278)\r\n\tat org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)\r\n\tat org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)\r\n\tat org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)\r\n\tat org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)\r\n\tat org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)\r\n\tat org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:137)\r\n\tat org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:287)\r\n\tat org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:243)\r\n\tat org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:59)\r\n\tat org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)\r\n\tat org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)\r\n\t... 22 more\r\n\r\nError |\r\nFailed to load latest version of profile [angular]. Trying Grails release version\r\nError |\r\nError occurred running Grails CLI: repo.grails.org (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)\r\njava.net.UnknownHostException: repo.grails.org\r\n\tat org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)\r\n\tat org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:278)\r\n\tat org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)\r\n\tat org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)\r\n\tat org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)\r\n\tat org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)\r\n\tat org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)\r\n\tat org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:137)\r\n\tat org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:287)\r\n\tat org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:243)\r\n\tat org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:59)\r\n\tat org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)\r\n\tat org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)\r\n\tat org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)\r\n\tat org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)\r\n\tat org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)\r\n\tat org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)\r\n\tat org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)\r\n\tat org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)\r\n\tat org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)\r\n\tat org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:320)\r\n\tat org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:217)\r\n\tat org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:535)\r\n\tat org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:519)\r\n\tat org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:409)\r\n\tat org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363)\r\n\tat org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351)\r\n\tat org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254)\r\n\tat org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:341)\r\n\tat org.springframework.boot.cli.compiler.grape.AetherGrapeEngine.resolve(AetherGrapeEngine.java:302)\r\n\tat org.springframework.boot.cli.compiler.grape.AetherGrapeEngine.grab(AetherGrapeEngine.java:112)\r\n\tat org.springframework.boot.cli.compiler.grape.AetherGrapeEngine.grab(AetherGrapeEngine.java:104)\r\n\tat org.grails.cli.profile.repository.MavenProfileRepository.getAllProfiles(MavenProfileRepository.groovy:133)\r\n\tat org.grails.cli.GrailsCli.execute(GrailsCli.groovy:241)\r\n\tat org.grails.cli.GrailsCli.main(GrailsCli.groovy:162)\r\n\r\nError |\r\nError occurred running Grails CLI: repo.grails.org\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/grails/grails-core/issues/comments/210509447","html_url":"https://github.com/grails/grails-core/issues/9856#issuecomment-210509447","issue_url":"https://api.github.com/repos/grails/grails-core/issues/9856","id":210509447,"user":{"login":"vm206","id":1053217,"avatar_url":"https://avatars.githubusercontent.com/u/1053217?v=3","gravatar_id":"","url":"https://api.github.com/users/vm206","html_url":"https://github.com/vm206","followers_url":"https://api.github.com/users/vm206/followers","following_url":"https://api.github.com/users/vm206/following{/other_user}","gists_url":"https://api.github.com/users/vm206/gists{/gist_id}","starred_url":"https://api.github.com/users/vm206/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vm206/subscriptions","organizations_url":"https://api.github.com/users/vm206/orgs","repos_url":"https://api.github.com/users/vm206/repos","events_url":"https://api.github.com/users/vm206/events{/privacy}","received_events_url":"https://api.github.com/users/vm206/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T15:35:19Z","updated_at":"2016-04-15T15:35:19Z","body":"Thanks for the info. However as I see the proxy is automatically configured, and if I set the proxy parameters (either proxy host/port what I find in the pac file or the pac file itself on the webserver) in the GRAILS_OPTS it still does not work. Is it possible somehow?"}}