Hi devs !
Hope all goes well for you !
Just to let you know some work I have done on spare time.
This work is actually here :
https://github.com/florent-andre/lenya/tree/maven-migration
and of course will be pushing back to apache svn when less experimental.
So, as experienced with the cocoon3 + maven experience (current trunk),
too bigs technology steps are not suitable for our community.
So, my main idea is to do little modifications with minimal breaks.
In this context, I choose to start the migration to maven3 :
* Changes are mostly at the build level, no big code drawback
* And when it's done, we will appreciate the goods (centralized
dependencies versioning, release, profiles, standard structure, etc...)
One of the tricky stuff I see in ant build is the capability to patch
web.xml and cocoon.xconf.
This feature is really interesting and don't have to be lost imo.
I search around an existing maven plugin to do so, but don't find it,
and so go to implement one using cocoon's ant's task code.
After some fights with maven plugin development I get something working
[1]. This is really not clean but do the trick.
Under this folder you will see :
/maven-xpatch : that is the plugin's code
/test : that contains 2 tests projects intended to be in
integration-test of the plugin when I clear my mind on how to well test
maven plugins.
The idea of this plugin is :
- listall dependencies of the project (the webapp in our case)
- if dependenc(y|ies) have META-INF/patches folder with patch files in
it, apply the patches to the current webapp project.
Again, really experimental for now, open to all comments/advices.
Apart from that I started to convert src/java folder to a maven project
(core-api) and get it done.
Next convert will be src/impl into core-impl.
Apart from this two "specials" folder I will change source folder
configuration in maven in order to not change our code organization and
to it compilable by ant before total switching to maven.
Mvn will be a good step IMO, that will help us to go to the next ones,
as I think, could be (unordered) : updated version of dependencies, osgi
compliance, code re-organisation, inclusion of new frameworks (cocoon3,
apache camel,...), ....
Feedbacks welcome !
++
[1]
https://github.com/florent-andre/lenya/tree/maven-migration/src/maven-xpatch-plugin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]