maven artifact repository directory structure specs

前端 未结 1 1903
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-10 03:50

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 informati

相关标签:
1条回答
  • 2020-12-10 04:18

    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.

    0 讨论(0)
提交回复
热议问题