父pom.xml中的$ {project.artifactId}解析为奇数

 恨之无用_367 发布于 2023-02-11 15:57

我有大量的项目,在他们的pom.xml中有相同的URL:

https://github.com/malkusch/${project.artifactId}


    scm:git:git://github.com/malkusch/${project.artifactId}.git
    scm:git:git@github.com:malkusch/${project.artifactId}.git
    https://github.com/malkusch/${project.artifactId}



    github
    https://github.com/malkusch/${project.artifactId}/issues

所以我认为把它放到父pom.xml中是一个好主意.但有效的pom会产生奇怪的$ {project.artifactId}:


  de.malkusch.parent
  oss-parent
  1.1-SNAPSHOT

de.malkusch.localized
localized
https://github.com/malkusch/localized/localized

  scm:git:git://github.com/malkusch/localized.git/localized
  scm:git:git@github.com:malkusch/localized.git/localized
  https://github.com/malkusch/localized/localized


  github
  https://github.com/malkusch/localized/issues

您注意到只有issueManagement.url已正确解析.其他的都很奇怪,特别是$ {project.artifactId} .git - > localized.git/localized.我正在使用Maven 3.0.4.我使用了一些未定义的功能吗?这是一个错误吗?

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有