Does a maven repository have a standard format?

蹲街弑〆低调 提交于 2019-11-30 23:06:46

问题


How are repos laid out? Are they the same? If so, who specifies the format.


回答1:


Repository layout for Maven is defined very strictly. Maven itself is the tool that completely handles the repository.

/$groupIdWithSlashes/$artifactId/$version/$artifactId-$version.$extension
/$groupIdWithSlashes/$artifactId/$version/$artifactId-$version-$classifier.$extension

Read more here on details of the layout, and here on details of metadata files.

Note that Nexus has similar layout in its storage, but (in some cases) slightly different format of metadata.xml file.

Other repository managers can have completely different layout in its internal storage - like Artifactory. Anyway, the URL structure must be (and is) identical.




回答2:


Just to update the links given by Petr above... The maven documents appear to have moved to Maven Repository Layout and Maven Repository Metadata



来源:https://stackoverflow.com/questions/13370666/does-a-maven-repository-have-a-standard-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!