7
<repository>
  <id>oauth-maven-repo</id>
  <name>OAuth Maven repository</name>
  <url>http://oauth.googlecode.com/svn/code/maven</url>
  <layout>default</layout>
</repository>

What does repository layout mean, compared to setting snapshots / releases?

Jason
  • 12,229
  • 20
  • 51
  • 66

1 Answers1

9

The <layout> tag is there to allow you to use the legacy option to support the maven 1 repository layout. You can use it to handle fetching artifacts by configuring it in the <repository> tag, or you can use it with the deploy plugin to deploy to Maven 1 repos.

Ryan Gross
  • 6,423
  • 2
  • 32
  • 44
  • that's correct - and legacy is no longer supported in maven-3 so you'll find it's not used at the moment. If a new format is devised (and some plugins do create these, such as the AppAssembler plugin's "flat" layout), it may use the argument again – Brett Porter Sep 06 '11 at 04:05
  • I am trying to use this repo with a maven-3 pom.xml, so can I remove it? – Jason Sep 06 '11 at 09:32
  • 3
    Yes, you can remove it safely. The default value is `default`. – Ryan Gross Sep 06 '11 at 12:24