Products | Versions |
---|---|
Spotfire Data Science | 6.x |
How to Compile Custom Operators with an Assembly JAR
If you are unable to access Maven Central at your company, Spotfire Data Science can provide a JAR that contains the necessary dependencies for you. Please follow the prerequisites in How To Compile and Run the Sample Operators and before running mvn package
, make these changes to your pom.xml
file.
pom.xml
file of the project you want to compile. In this example, you should open PluginExampleProject/pom.xml
.<repositories>
section. <dependency>
and ends with </dependency>
.
4. In the <dependencies>
block, include this code:
<dependency>
<groupId>com.alpinenow</groupId>
<artifactId>alpinenow</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>path to the assembly JAR</systemPath>
</dependency>
Be sure that you include the path to the assembly JAR in the <systemPath>
section.
pom.xml
file and quit.mvn package
from your project's root directory. In this case, it would be the PluginExampleProject
folder.