maven-resources-plugin 報錯問題解決
阿新 • • 發佈:2018-12-18
eclipse新配了Maven環境,在匯入新專案報了maven-resources-plugin錯誤
在網上查了之後找到解決辦法:
在Maven的conf資料夾下找到setting檔案,在裡面找到<mirrors>標籤,新增一個maven的倉庫地址:
<mirrors> //在這個標籤下新增 <!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. | <mirror> <id>mirrorId</id> <mirrorOf>repositoryId</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://my.repository.com/repo/path</url> </mirror> --> //以上是註釋的部分 //以下是新增的內容: <mirror> <id>Central</id> <url>http://repo1.maven.org/maven2</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors>
重新updateMaven專案,問題解決!!!