# How to create jar libraries from Custom Keywords?

**URL:** <https://forum.katalon.com/t/how-to-create-jar-libraries-from-custom-keywords/12214>\
**Category:** Integrations\
**Tags:** integrations, katalon-studio\
**Created:** [July 24, 2018, 9:53am UTC](https://forum.katalon.com/t/how-to-create-jar-libraries-from-custom-keywords/12214 "2018-07-24T09:53:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drunda\_Nibel](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Drunda\_Nibel](https://forum.katalon.com/u/Drunda_Nibel)\
**Post date:** [July 24, 2018, 9:53am UTC](https://forum.katalon.com/t/how-to-create-jar-libraries-from-custom-keywords/12214/1 "2018-07-24T09:53:01Z")

</div>

I have developed some Custom Keywords for various Katalon Studio projects in our company. Up to now I synchronized the contents of the last edited project’s Keywords directory manually to the Keywords directories of all other projects. However, this process is becoming increasingly confusing and error-prone.

In addition, we will continue to work on the projects in distributed teams in the future, whereby I will take care of the further maintenance of the Custom Keywords as well as the initial creation of new Test Suites. On the other hand, the product managers and developers of the applications to be tested should be able to edit the Test Suites (and especially the included Test Cases) independently in the event of necessary adjustments and, if necessary, also jump back to earlier versions of my Custom Keywords basis.

Therefore I would like to maintain and version my Custom Keywords a little more professionally as a general code base for all projects. But as far as I understand the interaction between Katalon Studio and Git so far, the testing projects can only be versioned as a complete package, right?

So I guess the best way to achieve my goal would be to pack my Custom Keywords into jar libraries that could then be included in any other Katalon Studio projects. Unfortunately, I have no experience with Java projects in general or with Maven in particular - is this where Maven comes in? Or is there another “best case” to implement this? And what exactly would I have to do?

Many thanks in advance for any hints!

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [July 24, 2018, 2:10pm UTC](https://forum.katalon.com/t/how-to-create-jar-libraries-from-custom-keywords/12214/2 "2018-07-24T14:10:13Z")

</div>

… And we all sit back and wait for Kazurayum to respond 😃

---

<div class="post-metadata">

**Author:** ![Drunda\_Nibel](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Drunda\_Nibel](https://forum.katalon.com/u/Drunda_Nibel)\
**Post date:** [July 24, 2018, 2:14pm UTC](https://forum.katalon.com/t/how-to-create-jar-libraries-from-custom-keywords/12214/3 "2018-07-24T14:14:28Z")

</div>

@Russ McTyre

To be honest, I was hoping a little bit that you might also know something about this? 🙂 So my question is also of interest to you?

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [July 24, 2018, 2:19pm UTC](https://forum.katalon.com/t/how-to-create-jar-libraries-from-custom-keywords/12214/4 "2018-07-24T14:19:56Z")

</div>

Your question? No… I have no interest in that at all – but Kaz’s _answer_, on the other hand…

(Sorry, couldn’t resist) :B

Oh, and who is Russ McTyre? 😃

---

<div class="post-metadata">

**Author:** ![Drunda\_Nibel](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Drunda\_Nibel](https://forum.katalon.com/u/Drunda_Nibel)\
**Post date:** [July 24, 2018, 2:48pm UTC](https://forum.katalon.com/t/how-to-create-jar-libraries-from-custom-keywords/12214/5 "2018-07-24T14:48:08Z")

</div>

> Oh, and who is Russ McTyre? ![D](http://forum.katalon.com/resources/emoji/lol.png)

Sorry, that was taken over by the forum software, after I had accepted the suggestion for “Russ Thomas” while typing “@Russ”. Strange. Unfortunately, I can’t fix this mistake any more, because when I try to edit the post, I only get to my starting post of this thread. - Obviously, another bug, but I’ve noticed it several times before.

---

<div class="post-metadata">

**Author:** ![Drunda\_Nibel](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Drunda\_Nibel](https://forum.katalon.com/u/Drunda_Nibel)\
**Post date:** [July 25, 2018, 6:43am UTC](https://forum.katalon.com/t/how-to-create-jar-libraries-from-custom-keywords/12214/6 "2018-07-25T06:43:09Z")

</div>

For those who are also interested in an answer to my question: kazurayam has now replied to me in another thread: [http://forum.katalon.com/discussion/comment/19610#Comment\_19610](http://forum.katalon.com/discussion/comment/19610#Comment_19610)

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [August 3, 2018, 3:45am UTC](https://forum.katalon.com/t/how-to-create-jar-libraries-from-custom-keywords/12214/7 "2018-08-03T03:45:38Z")

</div>

Drunda,

I think the [“Import/Export Keyword”](https://docs.katalon.com/pages/viewpage.action?pageId=13698840 "Link: https://docs.katalon.com/pages/viewpage.action?pageId=13698840") which was added in Katalon Studio 5.5 is for you

see

> **[How to define Global Variables within Scripts, i.e. "on the fly"?](http://forum.katalon.com/discussion/6822/how-to-define-global-variables-within-scripts-i-e-on-the-fly#latest)**
>
> Hi, I wonder if there is a way to bypass the manual profile configuration to define global variables.

  
for my comments

---

<div class="post-metadata">

**Author:** ![Sriharsha\_Teegavarap](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@Sriharsha\_Teegavarap](https://forum.katalon.com/u/Sriharsha_Teegavarap)\
**Post date:** [November 21, 2018, 3:27am UTC](https://forum.katalon.com/t/how-to-create-jar-libraries-from-custom-keywords/12214/8 "2018-11-21T03:27:58Z")

</div>

Hi All,  
I am also have similar situation. We want the keywords to be available to each team so that they can use it. However,  
I don’t see an option to export my keyword as a jar (i don’t see import export functionality) in katalon 5.7 . Has it been removed ?

---

<div class="post-metadata">

**Author:** ![Drunda\_Nibel](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Drunda\_Nibel](https://forum.katalon.com/u/Drunda_Nibel)\
**Post date:** [November 21, 2018, 9:54am UTC](https://forum.katalon.com/t/how-to-create-jar-libraries-from-custom-keywords/12214/9 "2018-11-21T09:54:12Z")

</div>

Hi Sriharsha,

> I don’t see an option to export my keyword as a jar (i don’t see import export functionality) in katalon 5.7 . Has it been removed ?

So far there is no special Git export function for Custom Keywords, right.

But there is a Git import function, try a right click on the Keywords item in the Project Explorer. 🙂

However, this feature is not particularly well thought out. See the bug report of kazurayam and my workaround and improvement suggestions in [this discussion](http://forum.katalon.com/discussion/comment/24337/#Comment_24337), where you can also vote for it.

**Edit:**

Sorry, I overlooked that you were still interested in exporting your Custom Keywords as jar libraries. This is actually not (yet) possible out-of-the-box.

I myself didn’t follow this approach any further, because we now have separated repositories for all our Custom Keywords that can be used across projects, which we manage with an external Git client (Sourcetree) and the help of symlinks due to the restrictions in Katalon Studio. If you are interested in this setup, I can tell you more about it in another post.

---

<div class="post-metadata">

**Author:** ![Ibus](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@Ibus](https://forum.katalon.com/u/Ibus)\
**Post date:** [November 21, 2018, 12:06pm UTC](https://forum.katalon.com/t/how-to-create-jar-libraries-from-custom-keywords/12214/10 "2018-11-21T12:06:01Z")

</div>

Some (most of sane) customers/clients/companies usually consider that sharing/uploading binaries (e.g jar’s) into the VCS it is bad practice, and should be discouraged.

Therefore, for custom keywords, I will opt for sharing them as code (and training the team how to properly use Git or whatever VCS is in use)

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [March 13, 2019, 10:12pm UTC](https://forum.katalon.com/t/how-to-create-jar-libraries-from-custom-keywords/12214/11 "2019-03-13T22:12:32Z")

</div>

See

> [@How to develop Custom Keywords Plugins](http://forum.katalon.com/t/how-to-package-custom-keyword-as-plugin/20321):
>
> Dear guys, Previously, we have announced a tutorial to [build standard plugins](https://docs.katalon.com/katalon-store/docs/publisher/create-plugin.html) for Katalon Studio. In this post, we’ll introduce a more lightweight process for sharing custom keywords as plugins. Custom Keyword plugin is available since Katalon Studio 6.0.6. Develop a Custom Keywords plugin Sample: [GitHub - katalon-studio/katalon-studio-excel-keywords-plugin](https://github.com/katalon-studio/katalon-studio-excel-custom-keywords-plugin). A Custom Keywords plugin is essentially a normal Katalon Studio project with some Custom Keywords implementation. So the steps are qu…

for a new solution. You can create a jar which contains your custom keyword classes, build process is implemented using Gradle.
