title: How to embed maven project in a Java Swing Application
body: <p>I wanted to create and java desktop application which can display a .shp (Shape File) and edit the attribute table of that shape file.
  I was following <a href="http://docs.geotools.org/latest/userguide/tutorial/quickstart/netbeans.html" rel="nofollow">this quick start tutorial</a> on geotools web site to learn the part of displaying the shape file in a application.
  I successfully created the app in the tutorial and i could display a shape file in that.</p>
  
  <p>Now i want to do the same in the java swing application i have already created with few other functions.
  I have a JFrame in which i want to display the map(shape file). 
  I copied the code &amp; all the required libraries in maven project to the java swing project but it gave me this error.</p>
  
  <pre><code>Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/vividsolutions/jts/geom/Geometry
  </code></pre>
  
  <p>I think it's not possible to run the copied code without the pom.xml file in the maven project.</p>
  
  <p>I might be wrong in calling it "maven application" or "maven project". I have very little knowledge in maven but a fairly good knowledge in Java SE.</p>
  
  <p>I simply want to do is to display the map in the java swing application as i did in the maven application.</p>
  
  <p>Can any one help me on this? </p>
  
  <p>Thank You!</p>