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.

Don’t you use Maven?

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


This is my jar