Closed pmandala closed 7 years ago
Seems like a proxy issue in downloading gradual from maven.
added ~/gradle/gradle.properties but problem is not solved
systemProp.http.proxyHost=www.somehost.org systemProp.http.proxyPort=8080 systemProp.http.proxyUser= systemProp.http.proxyPassword=
systemProp.https.proxyHost=www.somehost.org systemProp.https.proxyPort=8080 systemProp.https.proxyUser= systemProp.https.proxyPassword=
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
We already have gradle installed on our slaves, and this plugin is still trying download gradle binaries from 'https://services.gradle.org/distributions/gradle-2.13-bin.zip'. Is there a way to bypass this step and pass GRADLE_HOME so that this plugin resolved the gradle which is already available? I am not seeing issue while running gradle projects, this issue is coming only when this plugin is used in our pom.xml?
We used intranet gradle zip url as below to solve the issue. ``
@pmandala Thanks for the response, above option worked for me as well. This is how I resolved it instead.
`
Gradle is not installed in my system
Getting the following exception on both mac and rhel while running mvn compile
mvn -X compile Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00) Maven home: /usr/local/Cellar/maven/3.3.9/libexec Java version: 1.8.0_60, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "10.10.5", arch: "x86_64", family: "mac" [DEBUG] Created new class realm maven.api [DEBUG] Importing foreign packages into class realm maven.api [DEBUG] Imported: javax.enterprise.inject. < plexus.core [DEBUG] Imported: javax.enterprise.util. < plexus.core [DEBUG] Imported: javax.inject. < plexus.core [DEBUG] Imported: org.apache.maven. < plexus.core [DEBUG] Imported: org.apache.maven.artifact < plexus.core [DEBUG] Imported: org.apache.maven.classrealm < plexus.core [DEBUG] Imported: org.apache.maven.cli < plexus.core [DEBUG] Imported: org.apache.maven.configuration < plexus.core [DEBUG] Imported: org.apache.maven.exception < plexus.core [DEBUG] Imported: org.apache.maven.execution < plexus.core [DEBUG] Imported: org.apache.maven.execution.scope < plexus.core [DEBUG] Imported: org.apache.maven.lifecycle < plexus.core [DEBUG] Imported: org.apache.maven.model < plexus.core [DEBUG] Imported: org.apache.maven.monitor < plexus.core [DEBUG] Imported: org.apache.maven.plugin < plexus.core [DEBUG] Imported: org.apache.maven.profiles < plexus.core [DEBUG] Imported: org.apache.maven.project < plexus.core [DEBUG] Imported: org.apache.maven.reporting < plexus.core [DEBUG] Imported: org.apache.maven.repository < plexus.core [DEBUG] Imported: org.apache.maven.rtinfo < plexus.core [DEBUG] Imported: org.apache.maven.settings < plexus.core [DEBUG] Imported: org.apache.maven.toolchain < plexus.core [DEBUG] Imported: org.apache.maven.usability < plexus.core [DEBUG] Imported: org.apache.maven.wagon. < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core [DEBUG] Imported: org.apache.maven.wagon.events < plexus.core [DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core [DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core [DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core [DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core [DEBUG] Imported: org.codehaus.classworlds < plexus.core [DEBUG] Imported: org.codehaus.plexus. < plexus.core [DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core [DEBUG] Imported: org.codehaus.plexus.component < plexus.core [DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core [DEBUG] Imported: org.codehaus.plexus.container < plexus.core [DEBUG] Imported: org.codehaus.plexus.context < plexus.core [DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core [DEBUG] Imported: org.codehaus.plexus.logging < plexus.core [DEBUG] Imported: org.codehaus.plexus.personality < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core [DEBUG] Imported: org.eclipse.aether. < plexus.core [DEBUG] Imported: org.eclipse.aether.artifact < plexus.core [DEBUG] Imported: org.eclipse.aether.collection < plexus.core [DEBUG] Imported: org.eclipse.aether.deployment < plexus.core [DEBUG] Imported: org.eclipse.aether.graph < plexus.core [DEBUG] Imported: org.eclipse.aether.impl < plexus.core [DEBUG] Imported: org.eclipse.aether.installation < plexus.core [DEBUG] Imported: org.eclipse.aether.internal.impl < plexus.core [DEBUG] Imported: org.eclipse.aether.metadata < plexus.core [DEBUG] Imported: org.eclipse.aether.repository < plexus.core [DEBUG] Imported: org.eclipse.aether.resolution < plexus.core [DEBUG] Imported: org.eclipse.aether.spi < plexus.core [DEBUG] Imported: org.eclipse.aether.transfer < plexus.core [DEBUG] Imported: org.eclipse.aether.version < plexus.core [DEBUG] Imported: org.slf4j. < plexus.core [DEBUG] Imported: org.slf4j.helpers. < plexus.core [DEBUG] Imported: org.slf4j.spi. < plexus.core [DEBUG] Populating class realm maven.api [INFO] Error stacktraces are turned on. [DEBUG] Reading global settings from /usr/local/Cellar/maven/3.3.9/libexec/conf/settings.xml [DEBUG] Reading user settings from /Users/pmandala/.m2/settings.xml [DEBUG] Reading global toolchains from /usr/local/Cellar/maven/3.3.9/libexec/conf/toolchains.xml [DEBUG] Reading user toolchains from /Users/pmandala/.m2/toolchains.xml [DEBUG] Using local repository at /Users/pmandala/.m2/repository [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /Users/pmandala/.m2/repository [INFO] Scanning for projects... [DEBUG] Extension realms for project com.oracle.bdcsce:bdcsce-dist:pom:1.0-SNAPSHOT: (none) [DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project com.oracle.bdcsce:spark-cloud-service:pom:1.0-SNAPSHOT: (none) [DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null] [DEBUG] === REACTOR BUILD PLAN ================================================ [DEBUG] Project: com.oracle.bdcsce:bdcsce-dist:pom:1.0-SNAPSHOT [DEBUG] Tasks: [compile] [DEBUG] Style: Regular [DEBUG] ======================================================================= [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building BDCSCE Distribution 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] === PROJECT BUILD PLAN ================================================ [DEBUG] Project: com.oracle.bdcsce:bdcsce-dist:1.0-SNAPSHOT [DEBUG] Dependencies (collect): [] [DEBUG] Dependencies (resolve): [] [DEBUG] Repositories (dependencies): [slc-artifactory (https://artifactory-slc.oraclecorp.com/artifactory/bdcsce-snapshot-local/, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)] [DEBUG] Repositories (plugins) : [central (https://repo.maven.apache.org/maven2, default, releases)] [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.fortasoft:gradle-maven-plugin:1.0.8:invoke (default) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
[DEBUG] ======================================================================= [INFO] [INFO] --- gradle-maven-plugin:1.0.8:invoke (default) @ bdcsce-dist --- [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1, ConflictMarker.markTime=0, ConflictMarker.nodeCount=81, ConflictIdSorter.graphTime=1, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=33, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=6, ConflictResolver.conflictItemCount=79, DefaultDependencyCollector.collectTime=235, DefaultDependencyCollector.transformTime=10} [DEBUG] org.fortasoft:gradle-maven-plugin:jar:1.0.8: [DEBUG] org.apache.maven:maven-plugin-api:jar:3.3.9:compile [DEBUG] org.apache.maven:maven-model:jar:3.3.9:compile [DEBUG] org.apache.maven:maven-artifact:jar:3.3.9:compile [DEBUG] org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.2:compile [DEBUG] javax.enterprise:cdi-api:jar:1.0:compile [DEBUG] javax.annotation:jsr250-api:jar:1.0:compile [DEBUG] org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.2:compile [DEBUG] org.apache.maven:maven-core:jar:3.3.9:compile [DEBUG] org.apache.maven:maven-settings:jar:3.3.9:compile [DEBUG] org.apache.maven:maven-settings-builder:jar:3.3.9:compile [DEBUG] org.apache.maven:maven-builder-support:jar:3.3.9:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:3.3.9:compile [DEBUG] org.apache.maven:maven-model-builder:jar:3.3.9:compile [DEBUG] com.google.guava:guava:jar:18.0:compile [DEBUG] org.apache.maven:maven-aether-provider:jar:3.3.9:compile [DEBUG] org.eclipse.aether:aether-spi:jar:1.0.2.v20150114:compile [DEBUG] org.eclipse.aether:aether-impl:jar:1.0.2.v20150114:compile [DEBUG] org.eclipse.aether:aether-api:jar:1.0.2.v20150114:compile [DEBUG] org.eclipse.aether:aether-util:jar:1.0.2.v20150114:compile [DEBUG] com.google.inject:guice:jar:no_aop:4.0:compile [DEBUG] javax.inject:javax.inject:jar:1:compile [DEBUG] aopalliance:aopalliance:jar:1.0:compile [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.21:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:3.0.22:compile [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.5.2:compile [DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.6:compile [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile [DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile [DEBUG] org.apache.commons:commons-lang3:jar:3.4:compile [DEBUG] org.slf4j:slf4j-api:jar:1.7.5:compile [DEBUG] org.gradle:gradle-tooling-api:jar:2.13:compile [DEBUG] org.codehaus.groovy:groovy-all:jar:2.0.6:compile [DEBUG] Created new class realm plugin>org.fortasoft:gradle-maven-plugin:1.0.8 [DEBUG] Importing foreign packages into class realm plugin>org.fortasoft:gradle-maven-plugin:1.0.8 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>org.fortasoft:gradle-maven-plugin:1.0.8 [DEBUG] Included: org.fortasoft:gradle-maven-plugin:jar:1.0.8 [DEBUG] Included: javax.enterprise:cdi-api:jar:1.0 [DEBUG] Included: javax.annotation:jsr250-api:jar:1.0 [DEBUG] Included: org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.2 [DEBUG] Included: org.apache.maven:maven-builder-support:jar:3.3.9 [DEBUG] Included: com.google.guava:guava:jar:18.0 [DEBUG] Included: org.eclipse.aether:aether-util:jar:1.0.2.v20150114 [DEBUG] Included: com.google.inject:guice:jar:no_aop:4.0 [DEBUG] Included: aopalliance:aopalliance:jar:1.0 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.21 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.22 [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.6 [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 [DEBUG] Included: org.apache.commons:commons-lang3:jar:3.4 [DEBUG] Included: org.gradle:gradle-tooling-api:jar:2.13 [DEBUG] Included: org.codehaus.groovy:groovy-all:jar:2.0.6 [DEBUG] Configuring mojo org.fortasoft:gradle-maven-plugin:1.0.8:invoke from plugin realm ClassRealm[plugin>org.fortasoft:gradle-maven-plugin:1.0.8, parent: sun.misc.Launcher$AppClassLoader@135fbaa4] [DEBUG] Configuring mojo 'org.fortasoft:gradle-maven-plugin:1.0.8:invoke' with basic configurator --> [DEBUG] (f) gradleProjectDirectory = /Users/pmandala/ORAHUB/spark-cloud-service/bdcsce-dist [DEBUG] (f) gradleVersion = 2.13 [DEBUG] (f) mavenBaseDir = /Users/pmandala/ORAHUB/spark-cloud-service/bdcsce-dist [DEBUG] (f) session = org.apache.maven.execution.MavenSession@79e18e38 [DEBUG] (f) tasks = [hello] [DEBUG] -- end configuration -- [INFO] jvmArgs: null [INFO] gradleProjectDirectory: /Users/pmandala/ORAHUB/spark-cloud-service/bdcsce-dist [DEBUG] Connecting from tooling API consumer version 2.13 [INFO] Build Downloading https://services.gradle.org/distributions/gradle-2.13-bin.zip [INFO] Download https://services.gradle.org/distributions/gradle-2.13-bin.zip [DEBUG] waiting.... [DEBUG] waiting.... [DEBUG] waiting.... [DEBUG] waiting....
[INFO] Build [INFO] [DEBUG] waiting.... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:16 min [INFO] Finished at: 2016-12-22T14:29:14-08:00 [INFO] Final Memory: 10M/309M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.fortasoft:gradle-maven-plugin:1.0.8:invoke (default) on project bdcsce-dist: org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-2.13-bin.zip'. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.fortasoft:gradle-maven-plugin:1.0.8:invoke (default) on project bdcsce-dist: org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-2.13-bin.zip'. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.MojoFailureException: org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-2.13-bin.zip'. at org.fortasoft.maven.plugin.gradle.GradleMojo.execute(GradleMojo.java:270) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 20 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException