«Truth can only be found in one place: the code.»
We’re changing our modularized application at work from building and deploying with Ant to Maven. The requirements to that process is:
The plan looks like this:
src the maven standard src/main/java and add it to source controlsrc/* to src/main/java/ and src/main/resources/ with source control not to lose any historypom.xmlI wanted to be sure that I won’t have any disaster with the last steps to merge stuff together. I read about the weekness of svn in merging branches. And indeed, I tried it and run into merge problems.
So, what was needed is that I had to merge each module manually. Please!?!?
svn merge http://server/branch/module1/src/com src/main/java/
svn merge http://server/branch/module1/src/ src/main/resource/
svn merge http://server/branch/module1/test/com src/test/java/
svn merge http://server/branch/module1/src/ src/main/resource/
...So I came up with the solution to use git on the client site. I got the code from the svn repository, which I kept synchronized with git master:
git svn clone file:///some/repo -T trunk -b branches -t tagsI did my work on a git branch and got the changes from my colleagues on git master once in a while. At the end I merge git branch with git master and with svn trunk. Gotya!