Time for action – configuring Maven on STS

We learned how to configure Tomcat on STS. Similarly, to build our project, STS will use Maven. But we have to tell STS where Maven has been installed so that it can use the Maven installation to build our projects. Let's take a look at how we can configure Maven on STS:

  1. Open STS if it is not already open.
  2. Navigate to Window | Preferences | Maven | Installations.
  3. On the right-hand side, you can see the Add button, to locate Maven's installation.
  4. Click on the Add button and choose Maven's installed directory, as shown in the following screenshot:
    Time for action – configuring Maven on STS

    Selecting Maven's location during the Maven configuration on STS ...

Get Spring MVC Beginner’s Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.