admin管理员组

文章数量:1612060

问题描述:

我的外部本地包,需要打包到我的maven库里。然后报错如下:

 No plugin found for prefix 'install' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\my\.m2\repo), nexus (http://g.lordar:8081/nexus/content/groups/public/), lordar (http://g.lordar:8081/nexus/content/groups/public/)] -> [Help 1]
[ERROR]

问题解决:

这是之前的 配置信息:

<mirrors>

   
<!-- 阿里云镜像 -->
<mirror> 
<id>alimaven</id> 
<name>aliyun maven</name> 
<url>http://maven.aliyun/nexus/content/repositories/central/</url> 
<mirrorOf>central</mirrorOf> 
</mirror>

 <!-- maven官方镜像 -->
<mirror>
<id>mirrorId</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name </name>
<url>http://repo1.maven/maven2/</url>
</mirror>

<!-- 又一个镜像 -->
<mirror> 
<id>alimaven</id> 
<name>aliyun maven</name> 
<url>http://central.maven/maven2</url> 
<mirrorOf>central</mirrorOf> 
</mirror>

  </mirrors>

只留下阿里云镜像:

<!-- 阿里云镜像 -->
<mirror> 
<id>alimaven</id> 
<name>aliyun maven</name> 
<url>http://maven.aliyun/nexus/content/repositories/central/</url> 
<mirrorOf>central</mirrorOf> 
</mirror>

问题解决!!!

本文标签: 解决方案prefixPlugininstallProject