You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2005/10/27 21:22:27 UTC

svn commit: r328934 - /maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-m1-repos-with-m2.apt

Author: jvanzyl
Date: Thu Oct 27 12:22:23 2005
New Revision: 328934

URL: http://svn.apache.org/viewcvs?rev=328934&view=rev
Log:
o guide to using m1 style repositories with m2

Added:
    maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-m1-repos-with-m2.apt   (with props)

Added: maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-m1-repos-with-m2.apt
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-m1-repos-with-m2.apt?rev=328934&view=auto
==============================================================================
--- maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-m1-repos-with-m2.apt (added)
+++ maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-m1-repos-with-m2.apt Thu Oct 27 12:22:23 2005
@@ -0,0 +1,38 @@
+ ------
+ Guide to using Maven 1.x repositories with Maven 2.x
+ ------
+ Jason van Zyl
+ ------
+ 12 October 2005
+ ------
+
+Guide to using Maven 1.x repositories with Maven 2.x
+
+ When you are migrating from Maven 1.x to Maven 2.x you will first be trying to convert your build and
+ to make this easier we have provided a way for you to use your existing Maven 1.x repository so that
+ you don't have to convert your repository before trying to migrate your projects. To use a Maven 1.x
+ repository with your Maven 2.x project you need to specify this in your POM as follows:
+
++----+
+
+<project>
+  ...
+  <repositories>
+    <repository>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+      <id>my-m1-repository</id>
+      <name>Maven 1.x Repository</name>
+      <url>http://repostory.mycompany.com/maven1</url>
+      <layout>legacy</layout>
+    </repository>
+  </repositories>
+  ...
+</project>
+
++----+
+
+ Enabling the snapshots is important as Maven 2.x makes a distinction between repositories that contain snapshots
+ and those that don't. In Maven 1.x there is no distinction, so setting snapshots to true will give you the Maven 1.x
+ style repository behaviour while using Maven 2.x.
\ No newline at end of file

Propchange: maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-m1-repos-with-m2.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-m1-repos-with-m2.apt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"