Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
574 views
in Technique[技术] by (71.8m points)

maven artifact repository directory structure specs

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.
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...