Eclipse 編譯springboot jar包失敗問題

錯誤提示:

Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved

查閱了很多都沒有解決,後來終於找到了一篇博客,解決了問題。

解決方案:

在 pom.xml 文件中添加:

    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.4</version>
    </dependency>

在 settings.xml 文件中添加:

   <mirror>  
      <id>alimaven</id>  
      <name>aliyun maven</name>  
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
      <mirrorOf>central</mirrorOf>          
    </mirror>
然後執行maven  build  和maven install 解決

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章