Thanks for the clarification. I personally don't see a pressing need for this feature. I was just wondering if it was available. We've already learned to work with how things are, and it is turning out just fine.
Thanks again Eugene Kuleshov wrote: > > > Technically, src/main/webapp is not a resource folder and it shouldn't > be used as Java source folder because its content will be copied into > the classpath and we don't want that. > > So, this is strictly about presentation and it sounds like proposed > change is trying to work around limitations of "Package Explorer" and > "Project Explorer" views. For instance add src/main/webapp as a source > folder and exclude all its content, slomething like this in .classpath: > > <classpathentry excluding="**" kind="src" path="src/main/webapp"/> > > I am not sure if it is a good idea to use hack like this, but if users > think it would make their life better, we probably should implement it. > > So, if you would like to see this feature, please submit an > enhancement request and vote on it. Also, if someone would want to work > on implementation of this feature we will gladly accept the patch and > will give a pointers to help implementing it. > > Thanks > > Eugene > > > delsvr wrote: >> Not quite. Sorry, I wasn't being too clear. The webapp is already a >> source >> folder. It's just nested within the /src directory and not aliased at the >> top-level of Eclipse's Project Explorer. >> >> My Eclipse Project Explorer currently looks like: >> >> app >> |- Deployment Descriptor: ... >> |- Java Resources >> |- src/main/java >> |- src/test/java >> |- src/main/resources >> |- src/test/resources >> |- Libraries >> |- src >> |- main >> |- java >> |- resources >> |- webapp >> |- test >> |- ... >> >> There are aliases under "Java Resources" to certain directories. I'd like >> to >> add an alias to "src/main/webapp", mainly because the directory tree of >> our >> "webapp" is complicated and could benefit from losing 1-2 nests. It's >> also >> nice to have that directory higher up the Project Explorer, as it's >> accessed >> frequently. >> >> I hope that clarifies things. >> >> I don't think I should have to modify any versioned files (pom.xml), as >> this >> is just how a developer likes to view his project, and the project >> already >> builds (with maven) perfectly. >> >> Thanks >> >> >> Carlus Henry wrote: >> >>> If I am understanding you correctly, you are interested in having the >>> "src/main/webapp", folder be a source folder, buy you are running into >>> problems when you try to do it through Eclipse, since the .classpath >>> file >>> is >>> being managed by the m2eclipse plugin. >>> >>> If this is the case, you can try telling m2eclipse, through the pom, >>> that >>> the "src/main/webapp" folder should be considred a Java Source folder >>> similar to the "src/main/java" and "src/test/java". One way to >>> accomplish >>> this is to add the "src/main/webapp" to the resources section of your >>> pom.xml file, similar to the following: >>> ... >>> <build> >>> ... >>> <resources> >>> ... >>> <resource> >>> <directory>src/main/webapp</directory> >>> </resource> >>> </resources> >>> </build> >>> >>> >>> I hope this helps.... >>> >>> Thanks >>> Carlus >>> >>> >>> On Wed, Jul 16, 2008 at 1:52 AM, delsvr <[EMAIL PROTECTED]> wrote: >>> >>> >>>> I'm using m2eclipse 0.9.4.20080603-0114, and I really enjoy it except >>>> for >>>> one >>>> thing: >>>> >>>> There is a "Java Resources" folder that puts a few of the folders under >>>> /src >>>> in the top-level of the project, making their contents easily >>>> accessible >>>> (/src/main/java, /src/test/java, etc.); however, I'm having trouble >>>> customizing what gets included here. Namely, I'd like to have the >>>> "/src/main/webapp" folder at the top-level too, but if I add it as a >>>> "Source >>>> Folder" under Java Resources, it seems to change some classpath because >>>> my >>>> application will fail. >>>> >>>> Is there a way to have a "Web Resources" top-level directory that >>>> includes >>>> the jsp's, WEB-INF, etc. that are under "/src/main/webapp"? >>>> >>>> Thanks >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Project-Layout%2C-Java-Resources%2C-Web-Resources-tp18480694p18480694.html >>>> Sent from the Maven Eclipse - User mailing list archive at Nabble.com. >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> >>>> >>> >> >> > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > -- View this message in context: http://www.nabble.com/Project-Layout%2C-Java-Resources%2C-Web-Resources-tp18480694p18519314.html Sent from the Maven Eclipse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
