Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.3.2 or one of its dependencies could not be resolved

前端 未结 21 1504
抹茶落季
抹茶落季 2020-12-08 08:15

I got the following error message when I tried to create a Maven project in eclipse. Many have posted about proxies in settings.xml file and also flush the .m2 folder forcin

21条回答
  •  旧巷少年郎
    2020-12-08 08:42

    In my case the error was: CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 ....

    With eclipse luna from console in the pom.xml folder

    mvn clean
    mvn install
    

    With Juno I had to had this to my pom.xml

      
        
          
            
              org.apache.maven.plugins
              maven-compiler-plugin
              2.3.2
              
                
              
            
          
        
      
    

    And then

    mvn install
    

    And then from eclipse right click>maven>update project * Once the plugin is donwloaded you can remove the plugin from your pom.xml

提交回复
热议问题