当前位置: 首页 > 面试题库 >

部署工件失败

聂建茗
2023-03-14
问题内容

当我尝试部署应用程序时,出现以下错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project acme-db: Failed to deploy artifacts: Could not transfer artifact com.acme:acme-db:jar:0.8.1 from/to artifactory.acme.com (http://artifactory.acme.com/libs-release-local): Access denied to: http://artifactory.acme.com/libs-release-local/com/acme/acme-db/0.8.1/acme-db-0.8.1.jar, ReasonPhrase:Forbidden. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE

问题答案:

您必须在MAVEN_HOME / conf / settings.xml节服务器中验证您的凭据

<server>
  <id>nexus</id>
  <username>deploy</username>
  <password>123456</password>
</server>

id必须与pom.xml中的分发管理中的id匹配

<distributionManagement>
    <repository>
        <id>nexus</id>
        <url>...</url>
    </repository>
</distributionManagement>


 类似资料:
  • PS:这是一个由另一个开发人员开始的项目,我一直在工作中没有问题,在过去的6个坐骑。我现在认为问题可能来自netbeans或glassfish中的配置错误,因为我在以前的代码版本中都遇到了同样的错误。

  • 我正在尝试在Heroku上托管Flask web应用程序,同时使用以下步骤来托管我的web应用程序: 在我完成所有这些之后,我的终端绝对没有错误,但是烧瓶应用程序仍然不工作。下面给出了Heroku的日志。 2022-02-12T09:27:20.056100 00:00heroku[router]: at=错误代码=H14 desc="没有web进程运行"方法=GET路径="/"主机=bukkit

  • 问题内容: 我们在hudson上使用了Maven发布插件,并试图实现发布过程的自动化。发布:准备工作正常。当我们尝试执行release:perform时,它会失败,因为它尝试将源工件两次上载到存储库。 我尝试过的事情 从超级pom中删除确实包含maven源插件的配置文件(不起作用) 在hudson上将发布目标指定为-P!attach-source release:prepare release:p

  • 我正在尝试使用mvn deploy:deploy file命令将第三方私有包直接发布到我的Azure工件提要,如下所示: 但我有一个奇怪的错误: [错误]无法执行目标org.apache.maven.plugins:maven-部署插件:2.7:项目CAST_2015上的部署文件(default-cli):无法部署工件:无法传输工件pl.group.id:工件:jar:0.0.2 from/to

  • 经过几天的研究,接近自杀倾向在这里我的问题,真的真的希望我太愚蠢了,不能自己找到问题.... 安装程序: Windows7 / 专家 3.2.3 / jdk 1.7.0_60 (64 位) / 人工 3.5.0 问题: - mvn 全新安装部署 -- 干杯 j. 日志: SETTINGS.XML POM.XML http://maven.apache.org/xsd/maven-4.0.0.xsd

  • 我曾尝试使用Wildfly管理控制台(Wildfly 10.1.0.Final)部署我的应用程序,但由于以下原因/错误,不幸失败: 无法上载部署:{"WFLYCTL0080:失败的服务"= 我使用了控制台上提供的替换部署功能。在此之前,我已经使用相同的函数上传了我的. war应用程序,并成功部署。 我已经在本地测试了我的应用程序,它可以在没有任何错误的情况下部署和执行。