Stian Soiland-Reyes wrote:
I wanted to try changing to using the "multiple project" approach as
from File->Import->Maven projects. I don't think there's a way to
convert a checked out project (with the Maven dependency management
enabled) to multiple projects, so I copied the directories from my
workspace to a new directory, and then did the File->Import->Maven
projects.
You can delete project from workspace without deleting it from the file system and then re-import it again using different settings.
I run into a couple of issues when having the "old" mega-projects
open, as they got picked up as project dependencies, which gave me
cyclic dependency issues. I closed all the old mega-projects and did
Maven -> Update dependencies - which worked perfectly and picked up
the nested-module-projects instead.
m2eclipse does not support scenario when same dependency version appear in workspace more then once. It doesn't seem like there is any practical need for that, so we don't plan to support this (at least not any time soon). So, you need to close/delete your second copy.

However, after doing this I no longer can commit changes or pick up
updates from CVS, although the CVS/ directories have been copied over.
Although I know this is not the Eclipse CVS mailing list, is there a
trick to "reconnect" the CVS connection again after importing these
projects?  Or would it work to import directly from the directory of
the already checked out mega-projects, and do the commits and updates
from those? If so, then I think it's a bit tricky because of this
dependency-issue I mentioned above, I have to do the the
open/close-dance for each CVS update.
We don't do anything special for enabling VCS sharing. It is possible that your second project interfered, or there is a bug in Team/CVS plugin, so it is missing VCS info. You can try "Team / Share..." menu to manually force this.

I noticed on 
http://docs.codehaus.org/display/M2ECLIPSE/Integration+with+Eclipse+Team+CVS
that it's possible (in the upcoming version?) to check out as Maven
directly from the CVS repository perspective. This would be brilliant!
 When is the next version coming out?
No concrete date yet. Should be withing next few weeks. We may have dev build sooner.

I assume this would enable the CVS "nature" of the projects so that I
can later do Team->Update and ->Commit and so on..?
There is no "CVS nature". Eclipse Team CVS provider is supposed to automatically pickup projects that have CVS information. But Maven SCM handler for Team CVS is directly using Team/CVS provider to checkout project, so CVS info should be compatible.

I have Eclipse 3.4.0 j2ee with m2eclipse 0.9.5.20080717-1821 tried
using "Check out from SCM" typing in a very difficult URL
(ext:[EMAIL PROTECTED]:/cvsroot/taverna:t2core) - but
to no success:

7/29/08 11:27:42 AM BST: cvs : failure
7/29/08 11:27:42 AM BST: cvs : /bin/sh -c cd
/Users/stain/Documents/workspace/t3 && cvs -z3 -f -d
:ext:[EMAIL PROTECTED]:/cvsroot/taverna -q checkout -r
HEAD -d maven.1217327259098 t2core
7/29/08 11:27:42 AM BST: Checkout error;  The cvs command failed.

is this an issue with RSYNC_RSH=ssh (which I've set) or ssh-agent..?)
I can't test for "ext" protocol, but it worked ok for pserver using the following url: scm:cvs:pserver:anonymous:@taverna.cvs.sourceforge.net:/cvsroot/taverna:t2core

Though for some reason imported projects are not being connected to CVS and you have to manually lick Team / Share... action. I will look into that, but in a mean time, can you please tell me if you have Subclipse plugin installed by any chance and if so, what version?

Another related question.. what happens if I go for the
multiple-project set-up and a colleague of me checks in a new nested
module - how do I pick it up? In our current "Enable nested modules"
set up it's just a matter of doing a CVS update and "Update project
configuration" (previously: "Update source folders").
This scenario is not quite supported. You will have to manually import new project into your workspace by pointing import wizard to the root project. There is a JIRA issue for this. Please comment and vote at http://jira.codehaus.org/browse/MNGECLIPSE-534

 regards,
 Eugene



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to