1. 程式人生 > >No plugin found for prefix 'install' in the current project解決方案

No plugin found for prefix 'install' in the current project解決方案

 本來以下配置,報上面的錯

  <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>nexus-aliyun</id>
	<mirrorOf>*</mirrorOf>
	<name>Nexus aliyun</name>
	<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
<mirror>
	<id>maven2</id>
	<mirrorOf>*</mirrorOf>
	<name>maven</name>
	<url>http://repo1.maven.org/maven2 </url>
</mirror>

    <!-- 中央倉庫在中國的映象 -->
    <mirror>
        <id>maven.net.cn</id>
        <name>oneof the central mirrors in china</name>
        <url>http://maven.net.cn/content/groups/public/</url>
        <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>

  然後把除了maven2的映象地址都刪除了,就可以了。

  只保留下面這個

<mirror>
	<id>maven2</id>
	<mirrorOf>*</mirrorOf>
	<name>maven</name>
	<url>http://repo1.maven.org/maven2 </url>
</mirror>