Some problems with maven may be caused by network and other factors when importing the project.
I have encountered this problem for many years using the maven-deploy plugin. Even if I did not include the plugin directly in my POM, an error occurred. As a solution I had to force the plugin to include a version into my POM plugin section just to remove the red squiggles.
Cannot resolve plugin org.apache.maven.plugins:*
-
org.apache.maven.plugins:maven-clean-plugin:2.4.1
-
org.apache.maven.plugins:maven-deploy-plugin
-
org.apache.maven.plugins:maven-install-plugin
-
org.apache.maven.plugins:maven-site-plugin
-
...........
Solution:
After trying every solution on StackOverflow, I found the problem:
On my computer, there is a directory of .m2/repository/org/apache/maven/plugins/maven-deploy-plugin under the personal user directory, there is a version of'X.Y' and '2.8.2' etc. Deleted the entire maven-deploy-plugin directory, and then re-imported my Maven project. Rebuild to keep the network open.