Preparing Your Operator to Build
Complete the following remaining tasks before uploading the custom operator to TIBCO Data Science - Team Studio
-
Edit the files pom.xml and plugins.xml.
-
Optionally, customize the operator icon.
Before you begin
- Procedure
- Open the file
pom.xmlin thePluginTemplateProjectfolder and find the following line:<artifactId>plugin-template</artifactId>
- Replace the contents of the tag with the preferred name of the compiled
.jar file.
For example, if the output jar is named MyColumnFilter.jar, change the tag as follows.
<artifactId>MyColumnFilter</artifactId>
This modification is the only one needed in this file. The other code in pom.xml downloads dependencies based on the Custom Operator SDK.
Note: When you update your pom.xml file, IntelliJ might display a pop-up directing you to import changes to Maven Projects. - If IntelliJ displays the prompt to import changes, click
Import Changes.
This refreshes the dependencies necessary to build your operator.
- Specify the signature class to the
plugins.xmlfile.This tells TIBCO Data Science - Team Studio where to find information about the operator after uploading the JAR.- Open PluginTemplateProject/src/main/resources/plugins.xml. It should look like this:
<?xml version="1.0" encoding="UTF-8"?> <alpine-plugins> </alpine-plugins>
- Add the Signature class (the one with the metadata) to this file as follows:
<?xml version="1.0" encoding="UTF-8"?> <alpine-plugins> <plugin> <signature-class>com.mycompany.plugins.MyColumnFilterSignature</signature-class> </plugin> </alpine-plugins>
Note: You must use the full package name to refer to your signature class.Important: Be sure to fill in those two fields, or the operator is not build.
- Open PluginTemplateProject/src/main/resources/plugins.xml. It should look like this:
What to do nextFollow the instructions in
Installing the Custom Sample Operator for your Version to build your operators and upload them to the
TIBCO Data Science - Team Studio web application.