Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does repository layout mean

Tags:

maven

maven-3

<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?

like image 456
Jason Avatar asked Sep 05 '11 16:09

Jason


People also ask

What is repository layout?

Repository Layouts allows you to take full control over the layout used by each repository and uses layout definitions to identify module artifacts and descriptors. Repository layouts supports these smart module management facilities for any build technology: Automatic snapshot/integration versions cleanup.

What is repository in Maven?

What is a Maven Repository? In Maven terminology, a repository is a directory where all the project jars, library jar, plugins or any other project specific artifacts are stored and can be used by Maven easily.

How .m2 repository is created?

It is created by the maven when you run any maven command. By default, maven local repository is %USER_HOME%/. m2 directory. For example: C:\Users\SSS IT\.


1 Answers

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.

like image 131
Ryan Gross Avatar answered Sep 28 '22 06:09

Ryan Gross