You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ha <ng...@yahoo.com> on 2007/07/17 21:46:30 UTC

M1 to M2 Migration Input Please

Here is my plan to convert our company M1 projects to M2, please give me your
input and if there is anything that I need to be awared of . Many thanks.
-----------
Note:
-	Run M1 and M2 in parallel
-	Have only one repo M1 (not parallel repository M1 and M2) since M2 One
plugin can install and deploy in M1 repository.
------------
PLAN:

1	Select a pilot project to convert from M1 to M2

1.1	Convert project's project.xml and project.properties into a pom.xml
using M2 One plugin:
-	one:maven-one-plugin : Package a Maven 1 plugin
-	one:deploy-maven-one-repository : Deploy the artifact in a Maven 1 remote
repository.
-	one:install-maven-one-repository : Install the artifact in the Maven 1
local repository.
-	one:convert Convert a M1 project.xml to a M2 pom.xml 


1.2	Ajust POM.xml  (after item1 done): 
-	modify version
-	PHASE/SCOPE
-	dependencies 
as required.

1.3	Compare plugin between M1 in M2 and replaced, if not exited, create one.
1.4	Replace Reactor plugin in M1 by specifying subprojects in pom.xml parent
and children
1.5	Convert source location to m2 structure format
or
Create softlinks in M2 source structure pointed to M1 location.

1.6	Replace *.properties with settings.xml (for local configuration) 
or
move into pom.xml (common configuration) 
or
profiles.xml (project level)


1.7	Test pilot project and compare M1 with M2 build life cycle result.

2	Repeat steps 1.1->1.7 for all M1 projects
3	Convert m1 format repo to m2 layout
4	End of Migration


-- 
View this message in context: http://www.nabble.com/M1-to-M2-Migration-Input-Please-tf4099109s177.html#a11656511
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org