Foren

IDE3.0.1 GA2 Could not execute build using Gradle distribution

Stan X, geändert vor 7 Jahren.

IDE3.0.1 GA2 Could not execute build using Gradle distribution

Regular Member Beiträge: 208 Beitrittsdatum: 28.01.08 Neueste Beiträge
Env:

CentOS 7
java version "1.8.0_102"
liferay-ide-eclipse-linux-x64-3.0.1-ga2-201606151031.tar

I am following:

https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/installing-liferay-ide

When I tried to create a new module and click on Finish, I get the following popup message:

Error

Project create error: 0. [ExceptionTransformer.transform]
org.gradle.tooling.BuildException: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.14-bin.zip'.

---

Some notes:

- JAVA_HOME is set.

- Tried -Dosgi.requiredJavaVersion=1.8 in eclipse.ini

- There is gradle-2.14 in /root/.gradle/wrapper/dists/gradle-2.14-bin/76oc0mnc3ieqtsukq90mp0rxk/gradle-2.14.

- Also tried, “Install Liferay IDE into Eclipse” with Neon. Same error message.

- Tried on Win7. Same error message.

- There is no proxy. I am able to download https://services.gradle.org/distributions/gradle-2.14-bin.zip with wget.
thumbnail
Gregory Amerson, geändert vor 7 Jahren.

RE: IDE3.0.1 GA2 Could not execute build using Gradle distribution

Liferay Legend Beiträge: 1123 Beitrittsdatum: 16.02.10 Neueste Beiträge
Can you give us the full stack trace?
Miguel Angel Gonzalez, geändert vor 7 Jahren.

RE: IDE3.0.1 GA2 Could not execute build using Gradle distribution

New Member Beiträge: 3 Beitrittsdatum: 04.03.16 Neueste Beiträge
I have the same problem. Do you get resolve the problem?
Thank in advance
Miguel Angel Gonzalez, geändert vor 7 Jahren.

RE: IDE3.0.1 GA2 Could not execute build using Gradle distribution

New Member Beiträge: 3 Beitrittsdatum: 04.03.16 Neueste Beiträge
I answered myself.

I think there is a problem in liferay IDE and the wizard related to create module don't take proxy eclipse configuration. All work correct when your network conection don't need proxy.

Best Regards
thumbnail
Gregory Amerson, geändert vor 7 Jahren.

RE: IDE3.0.1 GA2 Could not execute build using Gradle distribution

Liferay Legend Beiträge: 1123 Beitrittsdatum: 16.02.10 Neueste Beiträge
Miguel Angel Gonzalez:
I answered myself.

I think there is a problem in liferay IDE and the wizard related to create module don't take proxy eclipse configuration. All work correct when your network conection don't need proxy.

Best Regards



We will try to add support for proxies in Liferay IDE 3.1 M2
https://issues.liferay.com/browse/IDE-2920
Miguel Angel Gonzalez, geändert vor 7 Jahren.

RE: IDE3.0.1 GA2 Could not execute build using Gradle distribution

New Member Beiträge: 3 Beitrittsdatum: 04.03.16 Neueste Beiträge
Thank you.

While the solution comes. I got it to work change manually the property systemProxiesEnable=true in eclipse/configuration/.settings/org.eclipse.core.net.prefs (https://www.eclipse.org/forums/index.php/t/148701/)
Gabor J, geändert vor 7 Jahren.

RE: IDE3.0.1 GA2 Could not execute build using Gradle distribution

New Member Beiträge: 2 Beitrittsdatum: 16.09.16 Neueste Beiträge
Another possible reason can be that the gradle build triggered by eclipse is using a JRE instead of a JDK. Check the eclipse error log. You might need to change java runtime in eclipse.ini.