Things might go wrong when you follow online instructions, or tutorials you see on this blog or others. Your setup might not be the same as mine, you might not notice that some of the earlier steps have failed.
When things go wrong, drop down to the command line and make sure that the basics work:
- mvn -v
- javac -version
In your project folder make sure that “mvn clean” works without error.
Then try a “mvn compile” and make sure you don’t get any download errors reported.
Many of the recent questions I receive relate to simple maven configuration issues.
I have created 2 new videos, and a hints and tips lecture, which show some troubleshooting steps that you can take if you encounter maven problems.
These are over on the full Selenium WebDriver course, but I have made them free previews so you should be able to watch them even if you haven’t signed up for the full course.
- Maven Troubleshooting Hints
- Maven Troubleshooting Downloads
- Maven Troubleshooting Proxies and Cache issues
Please refer to these first, if you encounter any maven issues.
You can also read the slideshare presentation.