Maven for REST API

I been following some tutorials online now I have some Form of difficulty here , in order to create REST API i decided to use an already made one available here https://github.com/Bonitasoft-Community/rest-api-sql-data-source/releases now i been able to see some projects here now here comes the question, i am using eclipse, do i just create a new Maven empty project and import the files inside the same maven Project? Like something like this to explain better

If you want to create your own custom REST API extension you can create an Eclipse Maven project and reuse (and adapt) the content of the pom.xml available in the example: https://github.com/Bonitasoft-Community/rest-api-sql-data-source/blob/master/pom.xml

I recommend that you read the documentation about creating a REST API extension. You can also see this other REST API example that use Gradle (instead of Maven) for compilation and packaging.