No plugin found for prefix 'install' in the current project
发布于 2018-10-30|
[ERROR] No plugin found for prefix 'install' in the current project and in the p
lugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the re
positorie..
##### 执行如下> mvn install:install-file
-Dfile=D:\Temp\ojdbc6.jar
-DgroupId=com.oracle
-DartifactId=ojdbc6 -
Dversion=11.2.0 -Dpackaging=jar
##### 错误如下
> [ERROR] No plugin found for prefix 'install' in the current project and in the p
lugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the re
positories [local ({my repository path}), central (https://repo.maven.
apache.org/maven2)]
##### 解决方法
C:\Users\acer\.m2 中 settings.xml文件内容
```xml
D:\Program Files\apache-maven-3.5.4\repository
alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/
central
nexus
nexus
local private nexus
http://maven.oschina.net/content/groups/public/
true
false
nexus
local private nexus
http://maven.oschina.net/content/groups/public/
true
false
```