Maven plugin for Eclipse
Hi guys. I installed Maven plugin from https://www.eclipse.org/m2e/m2e-downloads.html and the version is 1.2. So I copied the link to the “Install New software” section of Eclipse and is successfully installed.
When I created a new MAVEN project all the CUCUMBER dependencies are created and later on without creating any java class file I just ran to see how it goes. There was an error message created as in the screenshot shown.
where did it go wrong? Is the version of Maven correct? What shall I do to run Maven successfully using Cucumber jar files?
I wanted to run Cucumber feature files with Step definitions Java class file by using Selenium web driver commands in order to test a web page. For this I installed Maven as it is a build tool so that I can run all the feature files as a test suite. This is the purpose of why I installed Maven onto Eclipse when I rain the project by selecting Run as -Maven Test I am getting with the above error message.
Move to project directory where pom.xml is located and execute below commands
mvn clean // This cleans target folder of u r maven project any existing data etc will be clean like existing test run results
mvn -e install // Build project by downloading dependencies and run test. Java files containing name test will only be run
mvn clean install -DskipTests // Build project by downloading dependencies and does not run test
YOu can also combine command like
mvn -e clean install -DskipTests or mvn -e clean install
Error shown by you are warning , project can be build with them and test can be executed unless some compilation error occurs in pom.xml while creating build