Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MAVEN: No plugin found for prefix 'dependency' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]

Tags:

maven-2

[ERROR] No plugin found for prefix 'dependency' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\mdhore.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]

<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-dependency-plugin</artifactId> 
    <version>3.0.2</version> 
    <executions> 
      <execution> 
        <id>copy-dependencies</id> 
        <phase>package</phase> 
        <goals> 
          <goal>copy-dependencies</goal> 
        </goals> 
        <configuration> 
          <!-- configure the plugin here --> 
        </configuration> 
      </execution> 
    </executions> 
  </plugin> 
</plugins>
like image 910
Sonu Avatar asked Feb 23 '18 01:02

Sonu


1 Answers

according to this you have to provide group and artifact id. I run mvn dependencies:tree like the following and it worked.

mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:tree -Dverbose=true
like image 99
hatef alipoor Avatar answered Sep 18 '22 21:09

hatef alipoor