title: How to create spring boot project from existing maven project
body: <p>I have created a maven project in eclipse and I want to deploy it on a server(tomcat I guess). I believe this can be done via spring boot.
  My question is this: this project has imported several jar files located on my PC and has another project that is in the workspace in its build path. I worry that during the integration(turning it into maven) I might lose all the dependencies. What is generally the best way to import jar files to a project and how to add another project in its build path? Please comment with any other specifications that you need.</p>
  
  <p>This is the pom.xml</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" 
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
    &lt;groupId&gt;org.apache.jena&lt;/groupId&gt;
    &lt;artifactId&gt;jena-examples&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
  
    &lt;name&gt;Apache Jena - Code Examples&lt;/name&gt;
    &lt;description&gt;A collection of example code illustrating uses of Apache Jena&lt;/description&gt;
    &lt;url&gt;http://jena.apache.org/&lt;/url&gt;
  
    &lt;properties&gt;
      &lt;ver.jena&gt;[3.1.0,)&lt;/ver.jena&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
    &lt;/properties&gt;
  
    &lt;organization&gt;
      &lt;name&gt;Apache Software Foundation&lt;/name&gt;
      &lt;url&gt;http://apache.org&lt;/url&gt;
    &lt;/organization&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.jena&lt;/groupId&gt;
        &lt;artifactId&gt;apache-jena-libs&lt;/artifactId&gt;
        &lt;version&gt;${ver.jena}&lt;/version&gt;
        &lt;type&gt;pom&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;4.10&lt;/version&gt;
        &lt;type&gt;jar&lt;/type&gt;
        &lt;scope&gt;compile&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;commons-cli&lt;/groupId&gt;
        &lt;artifactId&gt;commons-cli&lt;/artifactId&gt;
        &lt;version&gt;1.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.mashape.unirest&lt;/groupId&gt;
          &lt;artifactId&gt;unirest-java&lt;/artifactId&gt;
          &lt;version&gt;1.4.9&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
        &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
        &lt;version&gt;4.3.6&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
        &lt;artifactId&gt;httpasyncclient&lt;/artifactId&gt;
        &lt;version&gt;4.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
        &lt;artifactId&gt;httpmime&lt;/artifactId&gt;
        &lt;version&gt;4.3.6&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.json&lt;/groupId&gt;
        &lt;artifactId&gt;json&lt;/artifactId&gt;
        &lt;version&gt;20140107&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
          &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
          &lt;version&gt;3.8&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
       &lt;groupId&gt;org.glassfish.jersey.core&lt;/groupId&gt;
       &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
       &lt;version&gt;2.8&lt;/version&gt;
   &lt;/dependency&gt;
   &lt;dependency&gt;
       &lt;groupId&gt;org.glassfish.jersey.media&lt;/groupId&gt;
       &lt;artifactId&gt;jersey-media-json-jackson&lt;/artifactId&gt;
       &lt;version&gt;2.8&lt;/version&gt;
   &lt;/dependency&gt;
   &lt;dependency&gt;
          &lt;groupId&gt;com.github.galigator.openllet&lt;/groupId&gt;
          &lt;artifactId&gt;openllet-owlapi&lt;/artifactId&gt;
          &lt;version&gt;2.6.4&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.github.galigator.openllet&lt;/groupId&gt;
          &lt;artifactId&gt;openllet-jena&lt;/artifactId&gt;
          &lt;version&gt;2.6.4&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
  &lt;/project&gt;
  </code></pre>