Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Maven Integration (M2E) » Files from resource folders?
Files from resource folders? [message #26874] Thu, 21 May 2009 21:04 Go to next message
Eclipse UserFriend
Originally posted by: ddd.asd.com

I have made a parent maven project with a few maven modules. In one of those
modules I have placed some XML files in the resource dir. Now these XML
files appears in both the module and under the parents resource folder.

1) Why do the resource file appears both under the module and the parent?

2) Since they also appear in the parent is it possible to fetch them from
other modules besides the one having them in its own resource folder?
Re: Files from resource folders? [message #27034 is a reply to message #26874] Mon, 25 May 2009 17:57 Go to previous message
Eclipse UserFriend
Originally posted by: igor.ifedorenko.com

This is a visual illusion ;-) M2E creates several workspace projects
that overlap the same physical filesystem directory structure.

Personally, I like it this way, because I can perform filesystem-centric
operations, like synchronize with repository, using single parent
project, yet, have individual modules as separate projects for proper
build lifecycle, dependency management and so on.

At the same time, there is a way to hide module folders from parent
project. Assuming you're using Eclipse 3.4 and a recent 0.9.9 dev build
(maybe 0.9.8 already had it), you can enable experimental
Window->Preferences->Maven->Hide Folders of Physically Nested Modules.
You will have to re-import your projects into workspce after you
enable/disable this feature.

--
Regards,
Igor

mlt wrote:
> I have made a parent maven project with a few maven modules. In one of
> those modules I have placed some XML files in the resource dir. Now
> these XML files appears in both the module and under the parents
> resource folder.
>
> 1) Why do the resource file appears both under the module and the parent?
>
> 2) Since they also appear in the parent is it possible to fetch them
> from other modules besides the one having them in its own resource folder?
>
Previous Topic:0.9.9 progress
Next Topic:[tycho] build problem (org.eclipse.jdt.core)
Goto Forum:
  


Current Time: Fri Dec 19 15:22:20 GMT 2014

Powered by FUDForum. Page generated in 0.02273 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software