Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add new dependency inside SEPIA server #214

Open
rajamohamed opened this issue Nov 16, 2022 · 1 comment
Open

How to add new dependency inside SEPIA server #214

rajamohamed opened this issue Nov 16, 2022 · 1 comment

Comments

@rajamohamed
Copy link

Hi,
Thank you for this SEPIA Framework. I am trying to use it to have a chat robot that will answer to my questions :)
Now, I am trying to add a new dependency inside the sepi-assist-server or the sepia-core-tool
So I have modified the pom.xml and I have build the jar.

<dependency>
	<groupId>io.camunda</groupId>
	<artifactId>spring-zeebe-starter</artifactId>
	<version>8.0.1</version>
</dependency>

Then I have replaced the old jar of sepia-assist-API-2.7.0.jar and sepia-core-tools-2.3.0.jar.
Then I boot SEPIA server with the run-sepia.bat and all works fine.

But when I try to upload my new service by adding this annotation

import io.camunda.zeebe.spring.client.EnableZeebeClient;
@EnableZeebeClient

It throws this error
2022-11-16 17:41:29 [main] INFO HttpTools - RESULT: {"result":"fail","error":"ERROR: Class 'CRAApprouval' - Compile errors: \nstring:\/\/\/net\/b07z\/sepia\/sdk\/services\/uid1003\/TestQA.java - Line 3: package io.camunda.zeebe.spring.client does not exist \nstring:\/\/\/net\/b07z\/sepia\/sdk\/services\/uid1003\/TestQA.java - Line 30: cannot find symbol\n symbol: class EnableZeebeClient \n"}

Can you please help me how to manage dependencies ?

Thank you in advance.

@fquirin
Copy link
Contributor

fquirin commented Nov 17, 2022

Welcome @rajamohamed 🙂 ,

the steps you've described seem to be correct. You did build both core-tools and assist-server Jars right?
Did you use the SDK in a Java IDE (like Eclipse) to build your new service? If there is a dependency issue it should show up before the upload 🤔 .

There is another method to add Jars I've described a few weeks ago in another issue: #204 (comment)
Maybe this can make things a bit easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants