Fórum
Liferay 7 Developer Studio
Gustavo Oliveira, modificado 7 Anos atrás.
Liferay 7 Developer Studio
Junior Member Postagens: 98 Data de Entrada: 23/09/15 Postagens Recentes
Ive just downloaded Liferay Developer Studio and Im trying to create a simple portlet using the wizard to test it.
gradle-wrapper.properties (generated):
build.gradle (generated):
When I try do deploy it I get this error:
Unable to build output
Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.14-bin.zip'
What I need to change to deploy a simple mvc portlet?
gradle-wrapper.properties (generated):
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-bin.zip
build.gradle (generated):
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins", version: "1.0.369"
}
repositories {
mavenLocal()
maven {
url "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public"
}
}
}
apply plugin: "com.liferay.plugin"
dependencies {
compile group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
compile group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
compile group: "javax.portlet", name: "portlet-api", version: "2.0"
compile group: "javax.servlet", name: "servlet-api", version: "2.5"
compile group: "jstl", name: "jstl", version: "1.2"
compile group: "org.osgi", name: "org.osgi.compendium", version: "5.0.0"
}
repositories {
mavenLocal()
maven {
url "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public"
}
}
When I try do deploy it I get this error:
Unable to build output
Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.14-bin.zip'
What I need to change to deploy a simple mvc portlet?
David H Nebinger, modificado 7 Anos atrás.
RE: Liferay 7 Developer Studio
Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
The gradle wrapper is a simple script that will download a version of gradle if it has not been pulled before. As with most dependencies, they will come from the net during builds.
Are you behind a proxy of some kind?
Are you behind a proxy of some kind?
Gustavo Oliveira, modificado 7 Anos atrás.
RE: Liferay 7 Developer Studio
Junior Member Postagens: 98 Data de Entrada: 23/09/15 Postagens Recentes
Yes, but its open. I can download the link from the properties file, just tested it. Is there another url that I should test if its blocking?
https://services.gradle.org/distributions/gradle-2.14-bin.zip
Ive updated the workspace from the update site listed in the documentation and when I change the plugin version it's downloading all dependencies normally.
It downloaded a gradle-wrapper.jar on gradle/wrapper and when I execute build-css or build-lang it works. I just get this error when I try to deploy it.
https://services.gradle.org/distributions/gradle-2.14-bin.zip
Ive updated the workspace from the update site listed in the documentation and when I change the plugin version it's downloading all dependencies normally.
It downloaded a gradle-wrapper.jar on gradle/wrapper and when I execute build-css or build-lang it works. I just get this error when I try to deploy it.
Gustavo Oliveira, modificado 7 Anos atrás.
RE: Liferay 7 Developer Studio
Junior Member Postagens: 98 Data de Entrada: 23/09/15 Postagens Recentes
Found the problem, my workspace was using JDK 8 but the IDE was opening using JAVA_HOME and its configured with JDK 7. Just changed the DeveloperStudio.ini and it worked.
My bad
My bad
David H Nebinger, modificado 7 Anos atrás.
RE: Liferay 7 Developer Studio
Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
No worries. Will give others some ideas if they happen to run into the same issue...