留言板

IDE3.0.1 GA2 Could not execute build using Gradle distribution

Stan X,修改在7 年前。

IDE3.0.1 GA2 Could not execute build using Gradle distribution

Regular Member 帖子: 208 加入日期: 08-1-28 最近的帖子
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,修改在7 年前。

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

Liferay Legend 帖子: 1123 加入日期: 10-2-16 最近的帖子
Can you give us the full stack trace?
Miguel Angel Gonzalez,修改在7 年前。

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

New Member 帖子: 3 加入日期: 16-3-4 最近的帖子
I have the same problem. Do you get resolve the problem?
Thank in advance
Miguel Angel Gonzalez,修改在7 年前。

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

New Member 帖子: 3 加入日期: 16-3-4 最近的帖子
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,修改在7 年前。

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

Liferay Legend 帖子: 1123 加入日期: 10-2-16 最近的帖子
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,修改在7 年前。

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

New Member 帖子: 3 加入日期: 16-3-4 最近的帖子
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,修改在7 年前。

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

New Member 帖子: 2 加入日期: 16-9-16 最近的帖子
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.