gpt4 book ai didi

maven - pom.xml 中的 artifactId 和 groupId 有什么区别?

转载 作者:行者123 更新时间:2023-12-03 12:45:15 26 4
gpt4 key购买 nike

您将如何通过一些真实世界的组织示例(例如 Facebook 公司或 Google 公司)向新手 Web 开发人员或程序员解释它?

最佳答案

来自 maven.apache.org,Naming Conventions :

artifactId is the name of the jar without version. If you created it then you can choose whatever name you want with lowercase letters and no strange symbols. If it's a third party jar you have to take the name of the jar as it's distributed. eg. maven, commons-math

groupId will identify your project uniquely across all projects, so we need to enforce a naming schema. It has to follow the package name rules, what means that has to be at least as a domain name you control, and you can create as many subgroups as you want. Look at More information about package names. eg. org.apache.maven, org.apache.commons

关于maven - pom.xml 中的 artifactId 和 groupId 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39185798/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com