Compiling the Samples

After you download the samples locally, you build them for the Team Studio web application.

Perform this task on the development computer.

Prerequisites

You must have installed and configured all required tools, and installed the custom samples for the appropriate version of the product.

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, 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 thre Knowledge Base article How to Compile Custom Operators with an Assembly JAR. for instructions.

    Running mvn package does the following:

    1. 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.
    2. Compiles all of the sample code.
    3. Runs any unit tests.
    4. Creates a JAR that can be uploaded into a Team Studio instance.

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.