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
>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Project-Layout%2C-Java-Resources%2C-Web-Resources-tp18480694p18489270.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