Error resolving version for plugin 'org.apache.maven.plugins:maven-compiler-plugin' from the repo...

Error resolving version for plugin 'org.apache.maven.plugins:maven-compiler-plugin' from the repositories [local (E:\apache-maven-3.5.3\repository), nexus
 (http://localhost:8080/nexus-2.14.5-02/content/groups/public)]: Plugin not found in any plugin repository

在创建maven聚合工程的父工程刚开始就出现了上面的错误,可以看到是org.apache.maven.plugin的maven-complier-plugin的版本解析错误。错误的配置如下:

Error resolving version for plugin 'org.apache.maven.plugins:maven-compiler-plugin' from the repo..._第1张图片

解决的办法:为插件声明版本:

添加标签:

  
      
          
              org.apache.maven.plugins
              maven-compiler-plugin
              2.5.1
              
                  1.7
                  1.7
                  UTF-8
              
          
      
  

你可能感兴趣的:(Error resolving version for plugin 'org.apache.maven.plugins:maven-compiler-plugin' from the repo...)