Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Repository Layout Definition

This is the proposed final layout for the repository available in Maven 2.x repository. This is current as at March 15, 2005 and all comments prior to that have been considered to be incorporatedand its related Ant tasks.

Info

This document should be incorporated into the main Maven site shortly, and a link left here as some external people have linked in directly.

Issues with the old layout

...

Code Block
/$groupId/$type + "s"/$artifactId-$version.$type

The

...

new layout:

Changes from the old way includes:

...

For each file that is the repository there must be a file containing the checksum of the file, typically md5 or sha1. There may also be a digital signature (eg .asc an ascii armoured openpgp signature)

A complete example

In the /org/codehaus/plexus directory:

Code Block
plexus/1.0
      /plexus-RELEASE.version.txt
      /plexus-1RELEASE.0version.pomtxt.md5
plexus/1.0/
          /plexus-1.0.pom
          /plexus-1.0.pom.md5
plexus-container/
                /plexus-container-RELEASE.version.txt
plexus-container/0.15-SNAPSHOT/
                              /plexus-container-0.15-200407151214.jar
                              /plexus-container-0.15-200407151214.jar.md5
                              /plexus-container-0.15-200407151214.jar.sha1
                              /plexus-container-0.15-200407151214.pom
                              /plexus-container-0.15-200407151214.pom.md5
                              /plexus-container-0.15-200407151315.jar
                              /plexus-container-0.15-200407151315.jar.md5
                              /plexus-container-0.15-200407151315.pom
                              /plexus-container-0.15-200407151315.pom.md5
                              /plexus-container-0.15-SNAPSHOT.version.txt
                              /plexus-container-0.15-SNAPSHOT.version.txt.md5
plexus-container/0.16-SNAPSHOT/
                              /plexus-container-0.16-200407151612.jar
                              /plexus-container-0.16-200407151612.jar.md5
                              /plexus-container-0.16-200407151612.pom
                              /plexus-container-0.16-200407151612.pom.md5
                              /plexus-container-0.16-SNAPSHOT.version.txt
                              /plexus-container-0.16-SNAPSHOT.version.txt.md5
plexus-container/0.15/
                     /plexus-container-0.15.jar
                     /plexus-container-0.15.jar.md5
                     /plexus-container-0.15.pom
                     /plexus-container-0.15.pom.md5
                     /plexus-container-0.15-javadoc.jar
                     /plexus-container-0.15-javadoc.jar.md5
                     /plexus-container-0.15-javasrc.jar
                     /plexus-container-0.15-javasrc.jar.md5

plexus-container/0.16/
                     /plexus-container-0.16.jar
                     /plexus-container-0.16.jar.md5
                     /plexus-container-0.16.pom
                     /plexus-container-0.16.pom.md5
                     /plexus-container-0.16-javadoc.jar
                     /plexus-container-0.16-javadoc.jar.md5
                     /plexus-container-0.16-javasrc.jar
                     /plexus-container-0.16-javasrc.jar.md5
                     /plexus-container-0.16-src.tar.gz
                     /plexus-container-0.16-src.tar.gz.md5
                     /plexus-container-0.16-bin.tar.gz
                     /plexus-container-0.16-bin.tar.gz.md5
some-ejb/1.0/
            /some-ejb-1.0.jar
            /some-ejb-1.0.jar.md5
            /some-ejb-1.0.pom
            /some-ejb-1.0.pom.md5
            /some-ejb-1.0-client.jar
            /some-ejb-1.0-client.jar.md5

Different Repositories

To ease the different uses and archival policies there will later be added 3 repository types:

...