Maven - No plugin found for prefix 'war' in the current project and in the plugin groups

襲冷發表於2018-05-18

一、問題

    Eclipse 建立或匯入 Maven Web 專案後,在 pom.xml 檔案中出現異常

    Multiple annotations found at this line:
        - No plugin found for prefix 'war' in the current project and in the plugin groups [] available from the repositories
            ……
        - Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from
            ……
二、方案

    在 pom.xml 中新增該外掛即可

    <plugin>    
        <groupId>org.apache.maven.plugins</groupId>    
        <artifactId>maven-resources-plugin</artifactId>    
        <version>2.6</version>    
        <configuration>    
            <encoding>utf-8</encoding>    
        </configuration>    
    </plugin>





相關文章