How to Add Dependency for Plugins

I am working on a Plugin that will receive a request from client at a sub domain and perform some basic SQL Transactions and return the result in JSON format. I have learn’t all the components that are required to build this plugin. I have learn’t how to build a RESTFUL API using Spring. I have learn’t how to use database and Prepared Statements. Now I need to put all these together to make a functional plugin. Sql requires a JDBC driver which I imported using NetBeans during pratcise. I also used some Maven Dependency during Spring Practice.

<groupId>org.clinton</groupId>
    <artifactId>gs-rest-greeting</artifactId>
    <version>0.1.0</version>     <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.3.5.RELEASE</version>
    </parent>     <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.jayway.jsonpath</groupId>
            <artifactId>json-path</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>     <properties>
        <java.version>1.8</java.version>
    </properties>

Problem:

Now how do I add this to my plugin as a dependency. I went through a the default plugins and found out that Bookmarks plugins uses DataBase. But I didn’t see any libraries. According to the Plugin Documentation, Libraries and Dependency should live in the lib/ folder. How come I don’t see this for the Bookmark Plugin. I am missing something… And I need help!