You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2005/12/31 21:11:42 UTC
[Myfaces Wiki] Update of "Maven2 Migration" by schof
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.
The following page has been changed by schof:
http://wiki.apache.org/myfaces/Maven2_Migration
New page:
= Current Tasks (List of steps for the Maven Migration) =
== SVN Reorg ==
* Backup current repository layout to http://svn.apache.org/repos/asf/myfaces/legacy/tags/before_maven_reorg/ '''[DONE]'''
* Remove the core, current and tomahawk-only externals. (Current will be restored when reorg is complete) '''[DONE]'''
* Rename 'share' subproject to 'commons' '''[DONE]'''
* Remove unecessary files from build/src/trunk (if we need anything from there it can be restored from legacy) '''[DONE]'''
* Remove build.properties and cactus.properties from each of the subprojects (some of the stuff in there may need to be moved to maven scripts eventually) '''[DONE]'''
* Create a 'main' directory under each 'src' directory for the subprojects. '''[DONE]'''
* Move the contents of 'src/java' into 'main/java' '''[DONE]'''
* Add a new 'current' external which includes: api, build, commons, impl, sandbox, tomahawk (NOTE: Forrest is skipped for now) '''[DONE]'''
* Add the POM's for each of the subprojects '''[DONE]'''
* Add the POM for the top level build dir (this POM can build all subprojects) '''[DONE]'''
* Add new 'src/main/resources' for each of the subprojects '''[DONE]'''
* Move the contents of 'impl/tld', 'tomahawk/tld', 'sandbox/tld' to 'impl/src/main/tld', 'sandbox/src/main/tld' and 'tomahawk/src/main/tld' '''[DONE]'''
* Setup resources for impl subproject '''[DONE]'''
{{{
svn mkdir https://svn.apache.org/repos/asf/myfaces/impl/trunk/src/main/resources/META-INF \
-m "creating META-INF dir"
svn mkdir https://svn.apache.org/repos/asf/myfaces/impl/trunk/src/main/resources/org \
-m "creating resource dir"
svn mkdir https://svn.apache.org/repos/asf/myfaces/impl/trunk/src/main/resources/org/apache/ \
-m "creating resource dir"
svn mkdir https://svn.apache.org/repos/asf/myfaces/impl/src/main/resources/org/apache/myfaces \
-m "creating resource dir"
svn move https://svn.apache.org/repos/asf/myfaces/impl/trunk/src/main/java/org/apache/myfaces/resource \
https://svn.apache.org/repos/asf/myfaces/impl/trunk/src/main/resources/org/apache/myfaces \
-m "moving impl resources"
}}}
* Since there are a ton of tomahawk and sandbox resources use svn to copy the entire source code branch and then remove
the *.java stuff '''[DONE]'''
{{{
svn copy https://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/src/main/java/org \
https://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/src/main/resources/
-m "copying potential tomahawk resources"
svn copy https://svn.apache.org/repos/asf/myfaces/sandbox/trunk/src/main/java/org \
https://svn.apache.org/repos/asf/myfaces/sandbox/trunk/src/main/resources/
-m "copying potential sandbox resources"
}}}
* Additional tomahawk resource configuration '''[DONE]'''
{{{
svn mkdir https://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/src/main/resources/META-INF \
-m "creating META-INF dir"
svn move https://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/conf/faces-config.xml \
https://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/src/main/resources/META-INF \
-m "moving tomahawk resources"
svn remove https://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/conf/ \
-m "removing conf dir"
}}}
* Additional sandbox resource configuration '''[DONE]'''
{{{
svn mkdir https://svn.apache.org/repos/asf/myfaces/sandbox/trunk/src/main/resources/META-INF \
-m "creating META-INF dir"
svn move https://svn.apache.org/repos/asf/myfaces/sandbox/trunk/conf/faces-config.xml \
https://svn.apache.org/repos/asf/myfaces/sandbox/trunk/src/main/resources/META-INF \
-m "moving sandbox resources"
svn remove https://svn.apache.org/repos/asf/myfaces/sandbox/conf/ \
-m "removing conf dir"
}}}
* Add an ignore for the TLD's that the build creates in resources/META-INF for impl, sandbox and tomahawk (so we don't accidentally check them in) '''[DONE]'''
* Copy LICENSE.TXT and NOTICE.TXT into each of the resources directories. '''[DONE]'''
* Remove build directory from each of the subprojects '''[DONE]'''
==== Examples ====
* Create a 'main' directory under each 'src' directory for the examples. '''[DONE]'''
* Move the 'src/java' directory into 'src/main/java' for each of the examples. '''[DONE]'''
* Copy the contents of the examples into a new 'webapp' dir (do this for all of the examples) '''[DONE]'''
{{{
svn copy https://svn.apache.org/repos/asf/myfaces/examples/trunk/blank \
https://svn.apache.org/repos/asf/myfaces/examples/trunk/blank/src/main/webapp \
-m "maven reorg"
}}}
* Remove the src directory since its a byproduct of the copy '''[DONE]'''
{{{
svn remove https://svn.apache.org/repos/asf/myfaces/examples/trunk/blank/src/main/webapp/src \
-m "maven reorg"
}}}
* Delete top level stuff (except for source dir) for each of the webapps '''[DONE]'''
* Add the pom.xml to the examples directory and to the webapps directories '''[DONE]'''
===== Simple Example =====
* Create a 'resources' directory under the 'src' directory. '''[DONE]'''
* Move the resources to the new resources dir '''[DONE]'''
{{{
svn mkdir https://svn.apache.org/repos/asf/myfaces/examples/trunk/simple/src/main/resources \
-m "creating resource dir"
svn mkdir https://svn.apache.org/repos/asf/myfaces/examples/trunk/simple/src/main/resources/org \
-m "creating resource dir"
svn mkdir https://svn.apache.org/repos/asf/myfaces/examples/trunk/simple/src/main/resources/org/apache \
-m "creating resource dir"
svn mkdir https://svn.apache.org/repos/asf/myfaces/examples/trunk/simple/src/main/resources/org/apache/myfaces \
-m "creating resource dir"
svn mkdir https://svn.apache.org/repos/asf/myfaces/examples/trunk/simple/src/main/resources/org/apache/myfaces/examples \
-m "creating resource dir"
svn move https://svn.apache.org/repos/asf/myfaces/examples/trunk/simple/src/main/java/org/apache/myfaces/examples/resource \
https://svn.apache.org/repos/asf/myfaces/examples/trunk/simple/src/main/resources/org/apache/myfaces/examples/resource \
-m "moving resources"
}}}
===== Sandbox Example =====
* No resources to move. '''[DONE]'''
===== Blank and Tiles Examples =====
* No resources to move. '''[DONE]'''
* Copy web.xml to src/main/webapp/WEB-INF/ '''[DONE]'''
{{{
svn copy -m "copy web.xml"
https://svn.apache.org/repos/asf/myfaces/examples/trunk/conf/basic-web.xml
https://svn.apache.org/repos/asf/myfaces/examples/trunk/blank/src/main/webapp/WEB-INF/web.xml
svn copy -m "copy web.xml"
https://svn.apache.org/repos/asf/myfaces/examples/trunk/conf/basic-web.xml
https://svn.apache.org/repos/asf/myfaces/examples/trunk/tiles/src/main/webapp/WEB-INF/web.xml
}}}
===== Building multiple modules and assembling the distro bundles =====
* Add the build/pom.xml from the test repos to build dir in the real repos '''[DONE]'''
* Remove the build dirs from each of the subprojects (they are currently svn:externals and they don't need to be replaced) '''[DONE]'''
* Create the following dirs in the build dir: src/main/assembly, src/main/resources '''[DONE]'''
* Add the dep.xml from the test repos to src/main/assembly '''[DONE]'''
* Copy the LICENSE and NOTICE (from any of the subprojects) to src/main/resources '''[DONE]'''