Build your project using maven
mvn clean install
now all the dependencies downloaded to your local Maven repository.(you can define it.)
Then all the dependencies are in one location. Go to module(project) properties in IntelliJ IDEA by right click on that project. set your local repository as maven repository. Then re import dependencies. Now you solved that issue. If you have more issues leave a comment here