Maven 工件存储库目录结构规范
我想知道 Maven 存储库结构的规范。
我知道我可以使用 archiva 或 Nexus 来创建存储库。我对那些信息不感兴趣。
我尝试使用短语搜索 apache 的 maven 网站和 google “maven 工件存储库结构规范”,我主要获得 Maven 客户端上预期的开发目录结构。
我希望有人解释这里的结构,或者向我指出一份全面的单个文档(即,通过让我遵循永无休止的链接轨迹来解释目录结构的文档),该文档解释了例如
- 如何创建一个简单的 Maven 存储库使用静态文件系统目录,部署到apache http服务器。
- 或者如何在 googlecode 上创建一个显示为 Maven 存储库的目录结构。
I would like to know the specs for the maven repository structure.
I know I could use archiva or nexus to create a repository. I am not interested in those information.
I have tried searching apache's maven website and google with the phrase
"maven artifact repository structure specs", and I mostly get the development directory structure expected on the maven client.
I would like someone to explain the structure here or point me to a comprehensive single document (i.e. one that does not explain the directory structure by making me follow a never ending trail of links) that explains for example,
- How to create a simple maven repository using a static file system directory, deployed to apache http server.
- or how to create a directory structure on googlecode that would appear as a maven repository.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是规范(早该在 Maven 本身中进行记录):
https: //cwiki.apache.org/confluence/display/MAVENOLD/Repository+Layout+-+Final
也就是说,我不会参考它以您所描述的方式创建存储库。最好的办法是使用带有适当参数的
mvn deploy:deploy-file
来上传您想要的文件,因为它可以为您编写适当的元数据和结构。这可以在文件系统位置完成并同步到您想要的位置。另一种选择是运行存储库管理器(例如 Archiva),并使用 Web 界面上传,直到您满意为止,然后将目录结构同步到您想要的位置。
Here is the specification (long overdue for documenting in Maven itself):
https://cwiki.apache.org/confluence/display/MAVENOLD/Repository+Layout+-+Final
That said, I wouldn't refer to that for creating the repository in the way you've described. The best thing to do is to use
mvn deploy:deploy-file
with appropriate parameters to upload the files that you want to, as it can write appropriate metadata and structure for you. This can be done to a filesystem location and synced to the location you want to.Another alternative is to run a repository manager, like Archiva, and upload using the web interface until you are happy, then sync the directory structure to the location that you want to.