Does a maven repository have a standard format?

后端 未结 2 1425
独厮守ぢ
独厮守ぢ 2021-01-11 11:32

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

2条回答
  •  滥情空心
    2021-01-11 11:42

    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.

提交回复
热议问题