Fork me on GitHub

Deploy an artifact in legacy layout

"Legacy" is the layout used in maven 1 repositories while maven 2 uses "default". They are different in terms of directory structure, timestamp of snapshots in default and existence of metadata files in default.

  • legacy layout directory structure:

      groupId
      |--artifactId
         |--jars
            `--artifact
    
  • default layout directory structure:

      groupId
      |--artifactId
         |--version
         |  `---artifact
         |---metadata
    

Legacy layout support was removed in version 3.0.0 of this plugin. There is no repositoryLayout parameter in the 3.x/4.x lines: Maven 3 and later only support the default (Maven 2) repository layout, and a -DrepositoryLayout=legacy flag on the command line is silently ignored by Maven (it does not select a legacy layout).

To deploy into a Maven 1 (legacy) layout repository, use maven-deploy-plugin 2.x with Maven 2, or convert the repository to the default layout with a repository manager.