I had this problem and the comprehensive descriptions proposed in this helped me to fix it.
The second declared problem was my issue. I used a third-party repository which I had just added it do the repository
part of the pom file in my project. I add the same repository information into pluginrepository
to resolve this problem.