How can I pack my project into a jar?

I am creating a Vaadin project with a jar local dependency created by me. How can I pack this program correctly?
Right now I get the following output, meaning it doesn’t recognise the imported jar.
image.png

Don’t you use Maven?

Yes, but I am getting this error now once the app has been deployed to google cloud

image.png

This is my jar