当前位置:   article > 正文

Cannot resolve plugin org.apache.maven.plugins:maven-resources-plugin:2.6

cannot resolve plugin org.apache.maven.plugins:maven-resources-plugin:2.6

IDEA使用maven时bulid报错,一系列插件(标题是其中一个)报红

解决办法

打开Settings -> Build,Execution,Deployment -> Build Tools -> Maven

  • User settings file项为C:\Users\zjm.m2\settings.xml,该目录下并没有settings.xml文件,新建并填入,参考博客
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    
    <pluginGroups />
    <proxies />
    <servers />
    
    <!-- maven自动下载的jar包,会存放到该目录下。这里要自己改成Local repository项的目录-->
    <localRepository>C:\Users\zjm\.m2\repository</localRepository>
    
    <mirrors>
        <mirror>
            <id>alimaven</id>
            <mirrorOf>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签