How to Create New Maven Project From Command Prompt For Selenium

Earlier, We already learnt how to download maven In Eclipse In THIS POST as well as how to job novel maven projection In eclipse In THIS POST. Now nosotros are going to create novel maven projection from ascendency prompt for selenium webdriver test. We already learnt how to download as well as configure
maven In windows manually In my previous post. Now let's begin creating maven projection from ascendency prompt.
Step i : Create projection folder as well as laid path
First of all you lot take away to job projection folder where you lot wants to relieve maven projection files. I am choosing D:/Maven path to shop projection files hence created Maven folder In D: drive. Now opened upwards ascendency prompt as well as set D:/Maven as working directory using bellow given commands.

  1. Type D: as well as press Enter clitoris volition alter working directory to D: drive.
  2. Type cd Maven will laid working directory as Maven folder.


Step 2 : List maven Maven Archetypes
First of all nosotros take away to acquire the listing of Maven Archetypes using Maven Archetype plugin. There are many different Maven Archetypes but nosotros need maven-archetype-quickstart archetype for our uncomplicated projection creation. Run ascendency mvn archetype:generate In ascendency prompt. It volition download Maven Archetype plugin as well as acquire the listing of unlike archetypes every bit bellow. 



If you lot are running this ascendency kickoff fourth dimension as well as hence It tin laissez passer notice accept 2 to v minutes to Install Maven Archetype plugin as well as listing all maven archetypes. It volition job It automatically.

Step three : Choose Maven archetype from list
At the terminate of mvn archetype:generate command execution, You volition acquire enshroud similar bellow to select Archetype number.


Default archetype Is maven-archetype-quickstart. So job non motion into whatever position out In higher upwards enshroud as well as only press keyboard ENTER button.

Step four : Choose quickstart version
It volition inquire you lot to select quickstart version every bit bellow.


Do non motion into whatever position out In higher upwards enshroud as well as only press keyboard ENTER button. It volition select latest version half-dozen Itself.

Step v : Enter groupId
Next pace volition inquire you lot to motion into groupId every bit shown bellow. It volition live on packet cite of maven project.


Enter com.demopack as well as press ENTER.

Step half-dozen : Enter artifactId
Next pace volition inquire you lot to motion into artifactId.


Enter MavenProject and press ENTER.

Step vii : Enter value for version
Next pace volition inquire you lot to motion into version number.


Do non motion into whatever position out In higher upwards enshroud as well as only press keyboard ENTER button.

Step 8 : Enter value for package


Do non motion into whatever position out In higher upwards enshroud likewise as well as only press keyboard ENTER button.

Step ix : Confirm belongings configuration
Next pace volition inquire you lot to confirm belongings configuration of projection Is right or non every bit bellow.


Do non motion into whatever matter In higher upwards enshroud likewise as well as only press keyboard ENTER button.

It volition exhibit you lot enshroud alongside BUILD SUCCESS every bit bellow. That agency your projection In maven has been created.


Step x : Check maven projection created or not
Now become to D:\Maven\MavenProject to banking company stand upwards for projection Is created or not. There volition live on src folder and pom.xml file every bit bellow.


There volition live on ii unlike folders Inside src folder. 1.main 2.test. That agency maven projection Is created properly. Next postal service volition clitoris you lot how to Import It In eclipse, job as well as run uncomplicated exam of selenium webdriver In It.
More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM

http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post