Basic Maven Project Setup and Cleaning Instructions
If you encounter issues with your Maven project, follow these steps:
Initial Setup
- Copy the Maven project under your workspace
- Import it as existing Maven project in your workspace
- Then Force update maven project
- Right click on project → Maven → Update Project
- Check "Force Update of Snapshots/Releases"
- Click OK
If Initial Setup Doesn't Work
- Run Maven Goals - clean compile
- Right click on project → Run as → Maven Build
- Goals: clean compile
- Click Run
- Project clean
- Right click on project → Clean...
- This should download the dependencies
If Problems Persist
If the above steps don't work:
- Exit from STS (IDE)
- Delete
<repository>
folder from under .m2
directory
- Re-enter IDE
- Then Force update maven project
- Run Maven clean and project clean
- Right click on project → Maven → Update Project
- Right click on project → Run as → Maven Build → Goals: clean compile
- Right click on project → Clean...
This should download maven dependencies properly.