报错

Maven deploy时报错

Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project admin: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]

原因

pom文件没有配置distributionManagement 标签

发布仓库一般分为Releases版和snapshot版,所以要配置2个仓库地址

<distributionManagement><repository><id>nexus-releases</id><name>corp nexus-releases</name><url>http://你的nexusIP:8081/nexus/content/repositories/releases/</url></repository><snapshotRepository><id>nexus-snapshot</id><name>corp nexus-snapshot</name><url>http://你的nexusIP:8081/nexus/content/repositories/snapshots/</url></snapshotRepository>
</distributionManagement>

在setting.xml中添加配置:

<servers><!-- 发布Releases版的账号,ID要与distributionManagement中的Releases ID一致 --><server><id>nexus-releases</id><username>admin</username><password>******</password></server><!-- 发布snapshot版的账号,ID要与distributionManagement中的snapshot ID一致 --><server><id>nexus-snapshot</id><username>admin</username><password>******</password></server>
</servers>

参考

maven deploy时报错
https://www.cnblogs.com/gqymy/p/9216713.html

maven deploy 时报错-repository element was not specified in the POM inside distributionManagement eleme相关推荐

  1. Deployment failed: repository element was not specified in the POM inside distributionManagement ele

    Deployment failed: repository element was not specified in the POM inside distributionManagement ele ...

  2. eclipse maven工程时报错Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart

    在新建maven工程时报错: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RE ...

  3. 关于使用eclipse maven UpdateProject时报错,无法更新本地仓库的问题解决方案

    关于使用eclipse maven UpdateProject时报错,无法更新本地仓库的问题解决方案 参考文章: (1)关于使用eclipse maven UpdateProject时报错,无法更新本 ...

  4. eclipse 配置Maven问题解决办法:新建maven工程时报错:Could not resolve archetype org.apache.maven.archetypes ....

    此文乃本作者配置maven,被其折磨n天,究极解决方案,好文要顶啊.欢迎致电: zhe-jiang.he@hp.com 首先各maven.archetypes下载地址: http://mirrors. ...

  5. eclipse 配置Maven问题解决办法:新建maven工程时报错:Could not resolve archetype org.apache.maven.archetypes .

    eclipse 配置Maven问题解决办法:新建maven工程时报错:Could not resolve archetype org.apache.maven.archetypes . 参考文章: ( ...

  6. 启动Maven程序时报错 Error executing Maven

    启动Maven程序时报错 Error executing Maven 异常信息 [INFO] Error stacktraces are turned on. [ERROR] Error execut ...

  7. 第三方SDK在maven打包时报错

    引入第三方SDK在打包的时候出现错误该如何处理 在最近的一个项目中引入了第三方的SDK但是在打包却提示找不到jar包因为我是外部引用的具体引用方式如下 这里路径指向对应的jar包即可导入,但是在打包时 ...

  8. maven install时报错 dependencies.dependency.version' for cn.e3mall:e3-manager-pojo:jar is missing.

    报错信息: 我的项目结构为: 在打包pojo时报错 原因是在本地仓库找不到e3-parent jar包 (当然联网时中央仓库也不找到我自己写的jar包) 解决方法:先将父工程 install 将其依赖 ...

  9. Eclipse执行import命令导入maven项目时报错:Add a version or custom suffix using Name template in Advanced set...

    新建了两个maven项目在E盘workspace目录,后面移到workspace/app_engine目录下提交svn,再通过Eclipse的File->import导入时报错了: Projec ...

  10. maven build时报错Failed to execute goal org.apache.maven.plugins......

    可能原因有很多个,  1. maven私服连不上了, 有一些jar包没有下载到本地, 或者是私服的路径配置错误 2 可能是一个jar包下载失败, jar包坏了, 可以删掉本地的repository, ...

最新文章

  1. java gui 案例_JavaGui入门—布局的嵌套使用附实例
  2. 个人遇到局域网不能访问解决分享
  3. Beautiful Sequence CodeForces - 1264B(暴力)
  4. 每年通过率仅1%的“天才考试”,中国到底应不应该学?
  5. AT91RM9200Linux移植笔记(三)-移植Linux kernel 2.6.17
  6. js连续指定两次或者多次的click事件(解决办法)
  7. linux进程管理之mm_struct,【转】Linux进程管理之SMP负载平衡(续二)
  8. flutter绘图基础之三阶贝塞尔曲线cubicTo
  9. 【错误分析】NX error status: 32
  10. postifx网络服务的搭建和配置
  11. dorado 7 使用总结
  12. stopwords怎么用_【技术】怎么用Python画出好看的词云图?
  13. linux添加Qt的fontconfig,qt – 如何在Red Hat 5.3中将fontconfig更新为更新版本?
  14. idea 代码格式化快捷方式
  15. smarty入门教程
  16. 《冬月集:自渡》 一个会写诗的程序员
  17. 山海镜花vivo服务器微信号,《山海镜花》正式公测!开服说明
  18. Mosquitto设置用户名密码
  19. Vue+ElementUI中 el-dialog弹框蒙层问题
  20. 根据经纬度查询,mysql查询计算经纬度

热门文章

  1. word简历头像图片与文本组合步骤
  2. JAVA打字游戏的实现
  3. Android Alpha换算表
  4. 文本数据挖掘实验:文本分类
  5. Base64自定义编码表及破解
  6. 深入浅出SpringBoot2.x
  7. mitmproxy的介绍以及配置过程中的问题
  8. STM32F1读取MLX90614ESF非接触式温度传感器
  9. 电商网站建设步骤_电商网站建设的注意事项_OctShop
  10. NVIDIA ShadowPlay、Record、Highlights的区别