The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

how to build Rapidminer Studio?

kt_112120kt_112120 Member Posts: 1 Learner III
edited June 2019 in Help

Hello, everyone.

In Github, there is source file of Rapidminer Studio. I want to build it on Eclipse-neon with using Gradle STS.

When I built the source file, error has occured.

Below is the error code.

1288 tests completed, 1069 failed
:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///D:/rapidminer/build/repor
ts/tests/index.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

BUILD FAILED

I have no idea to solve this problem. Will you tell me how to success the build?

 

Best, regards

Kobayashi

 

 

Tagged:

Answers

  • mmichelmmichel Employee-RapidMiner, Member Posts: 129 RM Engineering

    We are currently working on improving the open core documentation. You may find the following guide useful, it will be published and maintened at the official github repository: https://github.com/rapidminer/rapidminer-studio

     

    RapidMiner Studio Core as Dependency

     

    Using Gradle:

    apply plugin: 'java'

    repositories {
    maven { url 'https://maven.rapidminer.com/content/groups/public/' }
    }

    dependencies {
    compile group: 'com.rapidminer.studio', name: 'rapidminer-studio-core', version: '+'
    }

    Using Maven:

    <project>
    ...
    <repositories>
    <repository>
    <id>rapidminer</id>
    <url>https://maven.rapidminer.com/content/groups/public/</url&gt;
    </repository>
    </repositories>
    ...
    <dependency>
    <groupId>com.rapidminer.studio</groupId>
    <artifactId>rapidminer-studio-core</artifactId>
    <version>LATEST</version>
    </dependency>
    ...
    </project>

    Build RapidMiner Studio Core from Source
    1. Clone rapidminer-studio using git into a folder named `rapidminer-studio-core`
    2. Execute `gradlew jar`
    3. The jar file is located in build/libs

    Please have in mind that the jar file still require all dependencies listed in the build.gradle file.

     

    Import RapidMiner Studio Core into your IDE
    1. Your IDE has to support Gradle projects.
    1.1 Install Gradle 2.3+
    1.2. Install and configure a Gradle plugin for your IDE
    2. Import rapidminer-studio-core as a Gradle project

     

    Start the RapidMiner Studio Core GUI

    To start the graphical user interface of RapidMiner Studio Core create a new `GuiLauncher.java` file in src/main/java and run it with your IDE. If you want to use the generated jar, add the jar and all dependencies to the Java class path `java -cp "all;required;jars" GuiLauncher`. You can list the runtime dependencies by executing `gradlew dependencies --configuration runtime`.

     

    import com.rapidminer.gui.RapidMinerGUI;

    class GuiLauncher {
    public static void main(String args[]) throws Exception {
    System.setProperty(PlatformUtilities.PROPERTY_RAPIDMINER_HOME, Paths.get("").toAbsolutePath().toString());
    RapidMinerGUI.registerStartupListener(new ToolbarGUIStartupListener());
    RapidMinerGUI.main(args);
    }
    }

     

    Run RapidMiner Studio Core in CLI mode

    Prerequisite: Start the RapidMiner Studio GUI at least once and accept the EULA.

    To run RapidMiner Studio in command line mode create a new `CliLauncher.java` file in src/main/java with the following content:

     

     

    import com.rapidminer.RapidMiner;

    class CliLauncher {
    public static void main(String args[]) throws Exception {
    System.setProperty(PlatformUtilities.PROPERTY_RAPIDMINER_HOME, Paths.get("").toAbsolutePath().toString());
    RapidMiner.setExecutionMode(RapidMiner.ExecutionMode.COMMAND_LINE);
    RapidMiner.init();
    }
    }

     

Sign In or Register to comment.