Results 1 to 2 of 2

Thread: Add Jar to STS MVC template

  1. #1
    Join Date
    Aug 2010
    Posts
    11

    Default Add Jar to STS MVC template

    Hello,
    Using STS and I am not sure how to add a new Jar to the project. I created a new "Spring Template Project" -> and selected "Spring MVC Project".

    It looks like it may be using Maven in the background? Anyone? Need to add my mysql driver.

    Thanks,

  2. #2
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,638

    Default

    Hi!

    If you are using a Maven based project (as generated by the template projects) you need to add the new dependency to that library to the pom.xml file. If you double click on that, it opens an editor where you can add that dependency. Otherwise you can edit the pom.xml file directly.

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •