What doesn't work is when you run "maven eclipse" from the command line
maven re-writes your .classpath and .project files. If you run: "maven -Dgoal=eclipse multiproject:goal" it will supposedly look into
each directory and then build the .classpath based on each sub project's
project.xml file. What it winds up doing is creating a .classpath and
.project file in each sub project. What it should do is add all of the
dependencies to the top level .classpath file.


So, if you run "maven eclipse" on a normal project, every class you open
up will be able to see all necessary jars from the project.xml.  In a
multiproject, it won't.  You will open up a java file and get a page full
of errors because it won't be able to see the correct jars.

The way around it is to manually edit the .classpath file and check it in,
so it is the same no matter where you check it out.  All the jar files will
be pointing to "MAVEN_REPO" anyway, so it won't change per developer.

Hope this made things clearer.


Charlie




Michael MATTOX wrote:

It will not work to have this mounted as an eclipse project because of the
problems I explained before. If you are using eclipse as your CVS client,
you will likely want this mounted as an eclipse project in order to keep
info synchronized. If you are using a different CVS client, and regularly
synchronize the whole project, it will work fine.



We plan to use Eclipse with SubVersion (SVN). It's still not clear why it won't work but I think I must play around with it a bit to find out for myself. I know ANT pretty well but I find Maven and this nested project stuff confusing!

Michael


-- This E-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return E-mail. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to