I just found that src/main/webapp is independent directory in Standard
Directory Structure.
Please see,
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
Then it's neither assembly nor config.
I'm confused by "Better Builds with Maven" *_*
The book doesn't list the directory webapp in appendix "B.1. Standard
Directory Structure".
Then I have the problem(released by my below attached letter), but it's not
factually :D

a cup of Java, cheers!
Sha Jiang


jiangshachina wrote:
> 
> Hi Wayne, 
> I may not express my mind clearly.
> Mergere's book Better Builds with Maven lists the Maven Standard Directory
> Structure as appendix.
> But the list is very general, but concrete. The following is the list:
>     pom.xml
>     LICENSE.txt
>     README.txt
>     target/
>     target/generated-sources/<plugin-id>
>     src/main/java/
>     src/main/resources/
>     src/main/filters/
>     src/main/assembly/
>     src/main/config/
>     src/test/java/
>     src/test/resources/
>     src/test/filters/
> 
> or I can rebuild the format as following,
>     myapp
>       |--pom.xml
>       |--LICENSE.txt
>       |--README.txt
>       |--target/
>       |--generated-sources
>           |--<plugin-id>
>       |--src
>           |--main
>               |--java/
>               |--resources/
>               |--filters/
>               |--assembly/
>               |--config/
>           |--test
>               |--java/
>               |--resources/
>               |--filters/
> 
> The following is Web app direcotry structure you shown me,
>> myapp
>> |--pom.xml
>> |--target/
>> |--src
>> |--|--main
>> |--|--|--filters/
>> |--|--|--java/
>> |--|--|--resources/
>> |--|--|--|--META-INF/
>> |--|--|--webapp/
>> |--|--|--|--WEB-INF/
> 
> I just want to know what is corresponding item of the webapp(your list) in
> Maven Standard Directory Structure shown by top list?
> According to your list, I think the corresponding item is assembly or
> config?
> Because I don't understand the meaning of general Standard Directory
> Structure, I have to understand the structure via real or concrete
> projects.
> And accumulating the experience on how to put right files into right
> directories, when I use standard/conventional configurations.
> 
>> Use mvn archetype:create to get a full webapp (war) structure created for
>> you to fill in.
> Your webapp is created by plugin archetype?
> I don't get directories src/main/filters and src/main/resources/META-INF
> when I use the plugin.
> My command is
> mvn archetype:create -DgroupId=demo.mvn -DartifactId=demo
> -Dversion=1.0-SNAPSHOT -DarchetypeArtifactId=maven-archetype-webapp
> 
> Best Regards!
> 
> a cup of Java, cheers!
> Sha Jiang
> 
> 
> Wayne Fay wrote:
>> 
>> I don't honestly understand your question.
>> 
>> For a webapp:
>> myapp
>> |--pom.xml
>> |--target/
>> |--src
>> |--|--main
>> |--|--|--filters/
>> |--|--|--java/
>> |--|--|--resources/
>> |--|--|--|--META-INF/
>> |--|--|--webapp/
>> |--|--|--|--WEB-INF/
>> 
>> There's more to it, but that shows webapp, META-INF, and WEB-INF and
>> should hopefully get you off on the right foot.
>> 
>> Use mvn archetype:create to get a full webapp (war) structure created
>> for you to fill in.
>> 
>> Wayne
>> 
>> On 10/29/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>>>
>>> Web application project has following conventional directory structure.
>>> myapp
>>>   |--pom.xml
>>>   |--LICENSE.txt
>>>   |--README.txt
>>>   |--target/
>>>   |--src
>>>       |--main
>>>           |--java/
>>>           |--myapp
>>>               |--WEB-INF/
>>>       |--test
>>>           |--java/
>>>           |--resources/     
>>> myapp is src/main/filters/, or src/main/config/, or src/main/assembly/?
>>> I think it must not be src/main/resources/ ^_^
>>>
>>> a cup of Java, cheers!
>>> Sha Jiang
>>>
>>>
>>> Adrian Shum-2 wrote:
>>> >
>>> >
>>> > Please refer to section of Resource filtering for use of
>>> src/main/filters.
>>> > It is something ilke 'merging' your resources with some filters.
>>> > You can put environment-specific settings in filters, and depends on
>>> > your profile setting, create 'final' resources from your resources and
>>> > your choice form the filters.
>>> >
>>> > For src/main/assembly, please find for info for Assembly plugin.
>>> > Assembly It is something related to creating a assebly for use of
>>> > real deployment.  Under that directory, definitions of assembly are
>>> > put.
>>> >
>>> > Adrian
>>> >
>>> > -----Original Message-----
>>> > From: jiangshachina [mailto:[EMAIL PROTECTED]
>>> > Sent: Friday, October 27, 2006 7:04 PM
>>> > To: [email protected]
>>> > Subject: Puzzles on Standard Directory Structure?
>>> >
>>> >
>>> >
>>> > Mergere's book "Better Builds with Maven", appendix B.1 "Standard
>>> > Directory
>>> > Structure".
>>> > I don't understand some of directories. For example, src/main/filters
>>> and
>>> > src/main/assembly.
>>> > The descriptions in the book, the former is "Standard location for
>>> > resource
>>> > filters", and the latter is "Standard location for assembly filters".
>>> > May  I have less experience on Web/Java EE application development,
>>> then I
>>> > can not understand the functions of the directories. Which files
>>> should be
>>> > put into src/main/filters or src/main/assembly.
>>> >
>>> > For example, which directory I would put JavaScript files into?
>>> >
>>> > a cup of Java, cheers!
>>> > Sha Jiang
>>> > --
>>> > View this message in context:
>>> >
>>> http://www.nabble.com/Puzzles-on-Standard-Directory-Structure--tf2519880.html#a7028194
>>> > Sent from the Maven - Users mailing list archive at Nabble.com.
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>> >
>>> >
>>> >
>>> > This email is confidential. If you are not the intended recipient,
>>> please
>>> > delete it from your system and notify the sender immediately. Any
>>> > unauthorized use, disclosure, dissemination or copying of this email
>>> is
>>> > prohibited. Taifook Securities Group, its group companies and their
>>> > content providers ("Parties") shall not be responsible for the
>>> accuracy or
>>> > completeness of this email or its attachment, if any, which could
>>> contain
>>> > virus, be corrupted, destroyed, incomplete, intercepted, lost or
>>> arrive
>>> > late.   The Parites do not accept liability for any damage caused by
>>> this
>>> > email.
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>> >
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Puzzles-on-Standard-Directory-Structure--tf2519880.html#a7058832
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Puzzles-on-Standard-Directory-Structure--tf2519880s177.html#a7069866
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to