Hi, Frank

I have similar directory tree. I wrote pom like follwing.

<project>
    :
  <build>
      :
    <resources>
      <resource>
        <directory>src/resources</directory>
      </resource>
    </resources>
  </build>
</project>

Thanks,
Keisuke

Frank Russo wrote:
> I have a webapp myself, but did it differently. 
>  
> I followed the web app mini guide link provided in other responses to this 
> thread. Here is my structure:
> 
>       src\main\webapp           contains some public html files.
>       src\main\webapp\css       
>       src\main\webapp\images    
>       src\main\webapp\js        
>       src\main\webapp\META-INF  
>       src\main\webapp\WEB-INF   
> 
> Properties files I have in src\resources. The package command puts them 
> automatically into WEB-INF\classes in the final war file.
>  
> Hope this helps...
> Frank Russo
> Senior Developer
> FX Alliance, LLC
> 
> 
> 
>>-----Original Message-----
>>From: Keisuke Matsubara [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ]
>>Sent: Friday, December 16, 2005 2:45 AM
>>To: Maven Users List
>>Subject: Re: [m2] WebApp Directory Layout
>>
>>
>>Hi, Green
>>
>>No,
>>WEB-INF/classes is used mainly for .class files.
>>Properties files can be included too , if you want.
>>
>>When your directory are following, you will find both class
>>files and properties files in WEB-INF/classes .
>>
>> src/main/java/**/*.java
>> src/main/resources/**/*.properties
>>
>>Thanks,
>>Keisuke
>>
>>Law Green-A20134 wrote:
>>
>>>Thank you, Keisuke
>>>
>>>In your solution, I suppose <ROOT_DIR>WEB-INF/classes is used for
>>>properties files instead of .class files, right?
>>>
>>>Regards,
>>>Green
>>>
>>>-----Original Message-----
>>>From: Keisuke Matsubara [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
>>>]
>>>Sent: 2005年12月16日 12:32
>>>To: Maven Users List
>>>Subject: Re: [m2] WebApp Directory Layout
>>>
>>>Hi, Green
>>>
>>>I fond following rules.
>>>
>>>src/main/resources
>>>  --><ROOT_DIR>WEB-INF/classes in war file
>>>
>>>src/main/webapp/
>>>  --><ROOT_DIR> in war file
>>>
>>>Thanks,
>>>Keisuke
>>>
>>>Law Green-A20134 wrote:
>>>
>>>
>>>>Hi,
>>>>
>>>>I am trying to use M2 for webapp (plain Servlet+velocity
>>
>>application)
>>
>>>>development. Is there any suggestion for the directory layout?
>>>>
>>>>Also I found the recommended directory layout page on the
>>
>>maven site:
>>
>>>>src/main/java        Application/Library sources   
>>>>src/main/resources   Application/Library resources 
>>>>src/main/filters     Resource filter files 
>>>>src/main/assembly    Assembly descriptors  
>>>>src/main/config      Configuration files   
>>>>src/test/java        Test sources  
>>>>src/test/resources   Test resources
>>>>src/test/filters     Test resource filter files    
>>>>src/site     Site  
>>>>LICENSE.txt  Project's license     
>>>>README.txt   Project's readme      
>>>>
>>>>Does the "src/site" designed for webapp site or for the site of the
>>>>project itself?
>>>>
>>>>Another question is where to put script files and other
>>
>>exec files in
>>
>>>>the recommended directory layout? Should I put em inside
>>>>src/main/resources?
>>>>
>>>>Thanks in advance,
>>>>Green
>>>>
>>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>
>>>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]
>>>
>>>
>>
>>---------------------------------------------------------------------
>>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