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

前端 未结 29 1490
执笔经年
执笔经年 2020-11-22 11:56
org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Faile         


        
29条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 12:35

    In addition to what @JackDev replies, what also solved my problem was to

    1) Install the jdk under directory with no spaces:

    C:/Java
    

    Instead of

    C:/Program Files/Java
    

    This is a known issue in Windows. I fixed JAVA_HOME as well

    2) Install maven as in Java case, under C:/Maven. Fixed the M2_HOME accordingly.

    3) I java 7 and java 8 on my laptop. So I defined the jvm using eclipse.ini. This is not a mandatory step if you don't have -vm entry in your eclipse.ini. I updated:

    C:/Java/jdk1.7.0_79/jre/bin/javaw.exe
    

    Instead of:

    C:/Java/jdk1.7.0_79/bin/javaw.exe
    

    Good luck

提交回复
热议问题