Compiling the Samples

After downloading the samples locally, build them for the TIBCO Data Science - Team Studio web application.

Perform this task on the development computer.
Before you begin
    Procedure
  1. Change your directory (cd) to CustomPlugins/PluginExampleProject.
    If you intend to build the samples on Windows, be sure to read the Windows considerations in Compiling the Samples on Windows.
  2. Run the following command:
    mvn package
    Note: If you are unable to access Maven Central at your company, TIBCO Data Science - Team Studio can provide an assembly JAR with the necessary dependencies included. You must change the location of the dependencies in the pom.xml file to point to the JAR locally instead of Maven Central. See the Knowledge Base article How to Compile Custom Operators with an Assembly JAR. for instructions.

    Running mvn package does the following:

    • Validates that the package is correct and has all the necessary information and JARs. If any JARs are missing, it downloads them automatically. This step takes longer the first time because the JARs are being retrieved.
    • Compiles all of the sample code.
    • Runs any unit tests.
    • Creates a JAR that can be uploaded into a TIBCO Data Science - Team Studio instance.
Note: If you encounter problems, check the troubleshooting advice.
What to do next

After you have confirmed that the samples build and run on your computer, you can begin Building Your First Custom Operator in Scala - a Column Filter.