简体   繁体   English

插件 org.codehaus.mojo:exec-maven-plugin:1.5.0 或其依赖项之一无法解析

[英]Plugin org.codehaus.mojo:exec-maven-plugin:1.5.0 or one of its dependencies could not be resolved

I am trying to run my first project "Calculator" on netbeans-11 july version and it gives this error -我正在尝试在 netbeans-11 7 月版本上运行我的第一个项目“计算器”,它给出了这个错误 -
Plugin org.codehaus.mojo:exec-maven-plugin:1.5.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:exec-maven-plugin:jar:1.5.0: Could not transfer artifact org.codehaus.mojo:exec-maven-plugin:pom:1.5.0 from/to central ( https://repo.maven.apache.org/maven2 ): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.196.215] failed**: Connection timed out: connect -> [Help 1]插件 org.codehaus.mojo:exec-maven-plugin:1.5.0 或其依赖项之一无法解析:无法读取 org.codehaus.mojo:exec-maven-plugin:jar:1.5.0 的工件描述符:无法传输工件 org.codehaus.mojo:exec-maven-plugin:pom:1.5.0 from/to central ( https://repo.maven.apache.org/maven2 ):连接到 repo.maven.apache.org :443 [repo.maven.apache.org/151.101.196.215] 失败**:连接超时:连接 -> [帮助 1]

my pom.xml file -我的 pom.xml 文件 -

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>Calculator</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>12</maven.compiler.source>
    <maven.compiler.target>12</maven.compiler.target>
</properties>
</project>

how to resolve this ?如何解决这个问题?

I had the same issue, make sure your editor have finished downloading all Maven requirementents, also try to update your project under de Maven menu.我遇到了同样的问题,请确保您的编辑器已完成所有 Maven 要求的下载,并尝试在 de Maven 菜单下更新您的项目。 Finally, make sure you are not behind a proxy, if that is the case, configure your settings.xml like in this answer .最后,请确保您没有使用代理,如果是这种情况,请像在此答案中一样配置您的 settings.xml。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未能执行目标 org.codehaus.mojo:exec-maven-plugin:1.5.0:exec - Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec Java POM 插件问题(无法解析 mojo org.codehaus.mojo:exec-maven-plugin 的配置) - Java POM plugin issue (Unable to parse configuration of mojo org.codehaus.mojo:exec-maven-plugin) Maven错误:无法执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1:exec - Maven error: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec Smooks-无法执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1:exec - Smooks - Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec 为什么我会遇到 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec 错误? - Why am I running into org.codehaus.mojo:exec-maven-plugin:1.2.1:exec error? 无法执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1:exec( - Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec ( 无法执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1:exec - Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec 无法执行目标org.codehaus.mojo:exec-maven-plugin:1.4.0:exec - Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec Maven无法执行目标org.codehaus.mojo:exec-maven-plugin:1.3 - Maven Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3 Maven在命令行找不到org.codehaus.mojo:exec-maven-plugin - Maven can't find org.codehaus.mojo:exec-maven-plugin at command line
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM