How to add my own jar in my process and execute methods in it?

Hello everyone, 

I would like to develop custom code using a Maven project, generate a jar file, and then use it in my process.

How can I include my jar in my process, to use it in a script connector for instance ?

 

Thank you !

Hi,

Once you have your library built with maven you have two options:

  1. Publish your library on a remote repository (Maven central, Github package or a private Nexus or Artifactory);
  2. Go to Project Overview > Extension > Add custom extension… > Other > From a Repository
  3. Fill the Maven GAV accordingdly and import the dependency.

The other options is:

  1. Retrieve the built jar file
  2. Go to Project Overview > Extension > Add custom extension… > Other > From File
  3. Browse the jar file and import (it will copy the jar file in your project)

Then:

  1. Now your library is in the project classpath and can be used in Groovy scripts
  2. You’ll need to add your library in the Process configuration (Configure in the toolbar) for all processes that consumes this library.

HTH
Romain

Hello Romain, 

thanks a lot for your answer ! It's perfect !

 

This topic is solved ! :)