On Sun, May 8, 2011 at 4:13 PM, lee-verizon <[email protected]> wrote:
> I have a basic question about how projects are/should be set up in
> eclipse. I used maven eclipse:eclipse to create .project and .classpath
> files for all the projects. But I see that the .classpath files have
> cross-project dependencies done using jar files rather than depending
> directly on the other projects in the eclipse workspace. For example, this:
>
> <classpathentry kind="var"
> path="M2_REPO/org/geotools/gt-api/8-SNAPSHOT/gt-api-8-SNAPSHOT.jar"
> sourcepath="M2_REPO/org/geotools/gt-api/8-SNAPSHOT/gt-api-8-SNAPSHOT-sources.jar"/>
>
> instead of this:
>
> <classpathentry combineaccessrules="false" kind="src" path="/gt-api"/>
>
> I would prefer the latter - is there a reason I should not do it that
> way? Is there a way to have maven or the maven-eclipse-plugin do this
> automatically?

mvn eclipse:eclipse cross links all projects depending on each other
that are generated in a single run of the command.
So you just have to build with eclipse:eclipse from the root instead
of inside a specific module to have all the projects interlinked with
each other

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to