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 1412
抹茶落季
抹茶落季 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

      <build>
        <pluginManagement>
          <plugins>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>2.3.2</version>
              <configuration>
                <!-- put your configurations here -->
              </configuration>
            </plugin>
          </plugins>
        </pluginManagement>
      </build>
    

    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

    0 讨论(0)
  • 2020-12-08 08:42

    I had this error, I follwed below three steps to solve,

    1). check proxy settings in settings.xml refer,

    2). .m2 diretory to release cached files causing problems

    3) Point your eclipse to correct JDK installation. Refer No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? to know how

    0 讨论(0)
  • 2020-12-08 08:43

    I have had this issue and I resolved it by following the next step:

    1- Close Eclipse.

    2- Go to user directory and delete the .m2 directory.

    3- Open Elipse.

    4- Right click on the project -> Run as -> maven install

    0 讨论(0)
提交回复
热议问题