Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

REST Assured Tutorial 2 – Setup a Basic REST Assured Maven Project in Eclipse IDE

Posted on 03/21/2025 By admin

As a part of End to End REST Assured Tutorial , in this post we will learn to setup a Maven – REST Assured in Eclipse IDE.

Maven is a build automation tool for Java Projects primarily. If you have worked on Selenium projects, you must have used Maven. The major use of Maven we understand to manage dependency of JAR files. Let’s continue the same understanding for REST Assured project as well. We will discuss the power of Maven tool later separately .

Let’s setup a REST Assured project step by step:-

  1. Create a Maven Java Project.
  2. Add Maven dependency of REST Assured in pom.xml
  3. Add Maven dependency of TestNG/JUNIT in pom.xml ( Required to manage and run tests effectively)
  4. Add Maven dependency of JSON Schema Validator in pom.xml ( Needed for JSON schema validator)
  5. Add Maven dependency of Jackson JSON Java parser ( Needed for mapping Java objects to and from JSON )
  6. Add Maven dependency of JAXB XML Java parser ( Needed for
    mapping Java objects to and from XML )

Later we can add other required dependencies for Reporting, Logging, Excel reader as we required. We do not need as of now so I do not want to confuse you as well. Even as of now you can skip Step 4, 5 and 6 as well. I will also suggest you to always add latest version of jar files.

Hope you are aware to create a maven project in Eclipse. If not follow step by step here:-

  1. Navigate to File -> New -> Other. Type “maven” in Wizard text box:-

2. Select “Maven Project” and click on Next. Check “Create a simple project (skip archetype selection) ” checkbox. Leave remaining fields as it is. You can customize other fields if you understand them. Click on Next.

3. Give some name in to “Group id” and “Artifact id”. You can also give values to Name and Description fields. Click on Finish button.

4. You should see a Java project with name equal to Artifact id value is created in Package Explorer.

5. Now open pom.xml file and start adding dependencies. Please note there will be no tag in pom.xml so you need to add explicitly.

Navigate to Maven Central website and search for required dependencies and add them.

To find latest version of required jars, below are direct links:-

REST Assured
TestNG
JSON Schema Validator
Jackson Java Parser
JAXB

My pom.xml as of writing this post: –

 4.0.0 RestAssuredMSE RestAssuredMSE 0.0.1-SNAPSHOT RestAssuredDemo Rest assured project by MSE   io.rest-assured rest-assured 4.1.2 test   org.testng testng 7.0.0 test   io.rest-assured json-schema-validator 4.1.2   com.fasterxml.jackson.core jackson-databind 2.10.0   javax.xml.bind jaxb-api 2.3.1  

Now save the project, you will see workspace will be built i.e. maven will download all dependencies defined in pom.xml above. 

Some important points:-

  1. You no need to add dependency of JSONPath and XMLPath explicitly. RestAssured includes both by default. You can see in Maven Dependencies folder under your project. 

2. You no need to add Jackson Core and Annotation dependencies explicitly as Jackson Databind will download them as transitive dependencies.

If you have any doubt, feel free to comment below.If you like my posts, please like, comment, share and subscribe.#ThanksForReading

#HappyLearning

Uncategorized

Post navigation

Previous Post: selenium quiz
Next Post: Git Tutorial 14 – How To Create, Switch And List Branches In Git?

Related Posts

How Much Java Required For Selenium? | Make Selenium Easy Uncategorized
TestNG Tutorials 1: Why Do We Require TestNG In Selenium? Uncategorized
relativexpathhelper – Make Selenium Easy Uncategorized
threadlocal in selenium webdriver Uncategorized
image – Make Selenium Easy Uncategorized
Amod Mahajan, Author at Make Selenium Easy – Page 48 of 48 Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark