首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在当前项目中找不到前缀“help”的插件

在当前项目中找不到前缀“help”的插件
EN

Stack Overflow用户
提问于 2021-03-02 18:17:09
回答 1查看 575关注 0票数 0

我正在使用azure构建管道来打包我的代码,并使用maven来编译我的代码,但是我得到了下面的错误。

代码语言:javascript
复制
2021-03-02T09:38:48.1737056Z Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.1/maven-compiler-plugin-3.1.pom
2021-03-02T09:38:48.1737158Z [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:3.1: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.1
2021-03-02T09:38:48.1737237Z Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/flatten-maven-plugin/1.0.0/flatten-maven-plugin-1.0.0.pom
2021-03-02T09:38:48.1737345Z [WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:flatten-maven-plugin:1.0.0: Plugin org.codehaus.mojo:flatten-maven-plugin:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:flatten-maven-plugin:jar:1.0.0

2021-03-02T09:38:48.1747396Z [INFO] BUILD FAILURE
2021-03-02T09:38:48.1747597Z [INFO] ------------------------------------------------------------------------
2021-03-02T09:38:48.1747769Z [INFO] Total time:  05:16 min
2021-03-02T09:38:48.1747937Z [INFO] Finished at: 2021-03-02T09:38:48Z
2021-03-02T09:38:48.1748208Z [INFO] ------------------------------------------------------------------------
2021-03-02T09:38:48.1748988Z [ERROR] No plugin found for prefix 'help' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\testuser\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
2021-03-02T09:38:48.1749191Z [ERROR]```
EN

回答 1

Stack Overflow用户

发布于 2021-03-03 15:21:03

您可以尝试在pom中直接使用插件,例如:

代码语言:javascript
复制
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.3</version>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
                <testSource>1.8</testSource>
                <testTarget>1.8</testTarget>
                <compilerArgument>-Xlint:deprecation</compilerArgument>
            </configuration>
        </plugin>
    </plugins>
</build>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66437406

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档