gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 17:26:52 25 4
gpt4 key购买 nike

[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>

最佳答案

根据 this您必须提供组和工件 ID。我跑 mvn dependencies:tree像下面这样,它起作用了。

mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:tree -Dverbose=true

关于maven-2 - MAVEN : No plugin found for prefix 'dependency' in the current project and in the plugin groups [org. apache.maven.plugins, org.codehaus.mojo],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48939973/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com