Preparing the extension template, issue with gradle
anaRodrigues
New Altair Community Member
Can't initialize the project:
Also, on eclipse I get this error:
I don't know what to do here, could someone help please?
./gradlew --no-daemon initializeExtensionProjectI get this error:
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/6.8/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
FAILURE: Build failed with an exception.
* What went wrong:
com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: org/gradle/api/internal/java/JavaLibrary
> java.lang.NoClassDefFoundError: org/gradle/api/internal/java/JavaLibraryAlso, on eclipse I get this error:
Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-6.8-bin.zip'.
com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: org/gradle/api/internal/java/JavaLibrary
java.lang.NoClassDefFoundError: org/gradle/api/internal/java/JavaLibrary
org/gradle/api/internal/java/JavaLibrary rapidminer-extension-template-master line 0 Gradle Error Marker
Tagged:
0
Best Answers
-
Hi @gmeier
I believe now both my java and gradle versions are correct:
When I try to initialize, I get this error:PS C:\Users\ASUS\Documents\Mestrado BBC\tese\rapidminer-extension-template-master> ./gradlew initializeExtensionProject Starting a Gradle Daemon (subsequent builds will be faster) FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'rapidminer-extension-template-master'. > Could not resolve all dependencies for configuration ':provided'. > Could not resolve com.rapidminer.studio:rapidminer-studio-settings:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-settings:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-settings/9.8.0/rapidminer-studio-settings-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. Searched in the following locations: https://jcenter.bintray.com/com/rapidminer/rapidminer-dependencies/9.8.0/rapidminer-dependencies-9.8.0.pom https://jcenter.bintray.com/com/rapidminer/rapidminer-dependencies/9.8.0/rapidminer-dependencies-9.8.0.jar https://maven.rapidminer.com/content/groups/public/com/rapidminer/rapidminer-dependencies/9.8.0/rapidminer-dependencies-9.8.0.pom https://maven.rapidminer.com/content/groups/public/com/rapidminer/rapidminer-dependencies/9.8.0/rapidminer-dependencies-9.8.0.jar > Could not resolve com.rapidminer.studio:rapidminer-studio-interfaces:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-interfaces:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-interfaces/9.8.0/rapidminer-studio-interfaces-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-filesystem:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-filesystem:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-filesystem/9.8.0/rapidminer-studio-filesystem-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-license:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-license:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-license/9.8.0/rapidminer-studio-license-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-logging:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-logging:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-logging/9.8.0/rapidminer-studio-logging-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-i18n:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-i18n:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-i18n/9.8.0/rapidminer-studio-i18n-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-security:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-security:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-security/9.8.0/rapidminer-studio-security-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-tools:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-tools:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-tools/9.8.0/rapidminer-studio-tools-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-encryption:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-encryption:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-encryption/9.8.0/rapidminer-studio-encryption-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-globalsearch:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-globalsearch:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-globalsearch/9.8.0/rapidminer-studio-globalsearch-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 18s
Ana0 -
Hi @anaRodrigues
It seems there was a problem with our dependency management and this was fixed in our maven on Friday. You might have to clear your maven cache for the RapidMiner Studio artifact, but now it should work.
Cheers
Jan0
Answers
-
Hi @anaRodrigues,
are you using the extension template from https://github.com/rapidminer/rapidminer-extension-template? I am a bit puzzled that this is using gradle 6.8 for you; when running 'gradlew -version' this leads to a 4.6 version for me. Just executing 'gradlew --no-daemon initializeExtensionProject' in the folder which contains the README.md should work. The error you quoted could be caused by a wrong gradle version, so try to ensure that you are using a 4.x version. We are working on making the extensions compatible with gradle 6 but that template has not been adjusted yet.
0 -
Hi @gmeier,
You are right, I had changed the gradle version to match the one I have installed. I did everything from the beginning without changing anything and still got an error. I will try downgrading the gradle version on eclipse.
Description Resource Path Location TypeCould not run build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-4.6-bin.zip'.Unable to start the daemon process.This problem might be caused by incorrect configuration of the daemon.For example, an unrecognized jvm option is used.Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.6/userguide/gradle_daemon.htmlPlease read the following process output to find out more:-----------------------FAILURE: Build failed with an exception.* What went wrong:Could not create service of type DaemonContext using DaemonServices.createDaemonContext().* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.org rapidminer-extension-template-master line 0 Gradle Error Marker
Thank you,
Ana0 -
Hi @anaRodrigues,you can also try without the --no-daemon, that should work, too. Maybe that helps already.If it does not work with eclipse, just go to the folder and run it in the command line:
(also works with --no-daemon but then there is no popup and instead you need to enter Y)0 -
Hi @gmeier,
Still not working (from command line):FAILURE: Build failed with an exception. * What went wrong: Could not determine java version from '15.0.2'. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org
Thanks,
Ana0 -
Hi @anaRodrigues,we are making progress Now you need a java 8 version for gradle.You can check with 'gradlew -version', there the JVM should be 1.8.You can either point your JAVA_HOME environment variable to a jdk 8 or try to use
org.gradle.java.home=/path_to_jdk_directory
in the gradle.properties.0 -
Hi @gmeier,
This is where my JAVA_HOME is pointing:
Also, my java version:The gradlew -version command is not recognized.PS C:\> javac -version javac 15.0.2
PS C:\> gradlew -version gradlew : The term 'gradlew' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + gradlew -version + ~~~~~~~ + CategoryInfo : ObjectNotFound: (gradlew:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
I have the GRADLE_HOME environment variable set, so I don't know why the command is not working.
I have also downgraded my gradle version to this 4.6
However, if I ask for the gradle version:I get the same error as before.PS C:\> gradle -version FAILURE: Build failed with an exception. * What went wrong: Could not determine java version from '15.0.2'. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org
Sorry for the trouble and thank you,
Ana0 -
Hi @anaRodrigues,
yes, that means you have Java 15, but you need 8. You can for example download it from here and then point your JAVA_HOME to it.
For the 'gradlew -version' command, you need to go to your extension-template folder and execute it there.0 -
Hi @gmeier
I believe now both my java and gradle versions are correct:
When I try to initialize, I get this error:PS C:\Users\ASUS\Documents\Mestrado BBC\tese\rapidminer-extension-template-master> ./gradlew initializeExtensionProject Starting a Gradle Daemon (subsequent builds will be faster) FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'rapidminer-extension-template-master'. > Could not resolve all dependencies for configuration ':provided'. > Could not resolve com.rapidminer.studio:rapidminer-studio-settings:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-settings:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-settings/9.8.0/rapidminer-studio-settings-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. Searched in the following locations: https://jcenter.bintray.com/com/rapidminer/rapidminer-dependencies/9.8.0/rapidminer-dependencies-9.8.0.pom https://jcenter.bintray.com/com/rapidminer/rapidminer-dependencies/9.8.0/rapidminer-dependencies-9.8.0.jar https://maven.rapidminer.com/content/groups/public/com/rapidminer/rapidminer-dependencies/9.8.0/rapidminer-dependencies-9.8.0.pom https://maven.rapidminer.com/content/groups/public/com/rapidminer/rapidminer-dependencies/9.8.0/rapidminer-dependencies-9.8.0.jar > Could not resolve com.rapidminer.studio:rapidminer-studio-interfaces:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-interfaces:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-interfaces/9.8.0/rapidminer-studio-interfaces-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-filesystem:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-filesystem:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-filesystem/9.8.0/rapidminer-studio-filesystem-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-license:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-license:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-license/9.8.0/rapidminer-studio-license-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-logging:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-logging:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-logging/9.8.0/rapidminer-studio-logging-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-i18n:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-i18n:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-i18n/9.8.0/rapidminer-studio-i18n-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-security:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-security:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-security/9.8.0/rapidminer-studio-security-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-tools:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-tools:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-tools/9.8.0/rapidminer-studio-tools-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-encryption:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-encryption:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-encryption/9.8.0/rapidminer-studio-encryption-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-globalsearch:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-globalsearch:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-globalsearch/9.8.0/rapidminer-studio-globalsearch-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 18s
Ana0 -
Hi @anaRodrigues
It seems there was a problem with our dependency management and this was fixed in our maven on Friday. You might have to clear your maven cache for the RapidMiner Studio artifact, but now it should work.
Cheers
Jan0