Re: Puzzles on Standard Directory Structure?
On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: I may have known the goal of src/main/assembly(assembly descriptor files used by maven-assembly-plugin). Now I want to ask what files should be put at src/main/conf? It seems that the folder would include configuration files, but which configuration files? ... Now, how do Maven to deal with src/main/conf? Maven would copy the files under the directory to somewhere? ... I find nothing is interesting :( I haven't seen it used, and I don't think Maven does anything with it by default right now. Use it if it makes sense for your build, perhaps in combination with a custom plugin. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Puzzles on Standard Directory Structure?
Hello Wendy, I haven't seen it used, and I don't think Maven does anything with it by default right now. Oh, that's means that the directories just are recommended by Maven, but Maven does nothing for it as default. Then I have to deal with the directories by manual. What's a better way to add the directories(and files under them) to archive files? I'm using maven-antrun-plugin now. But I don't think it's the best way. Use it if it makes sense for your build, perhaps in combination with a custom plugin. I'll consider the solution. a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: I may have known the goal of src/main/assembly(assembly descriptor files used by maven-assembly-plugin). Now I want to ask what files should be put at src/main/conf? It seems that the folder would include configuration files, but which configuration files? ... Now, how do Maven to deal with src/main/conf? Maven would copy the files under the directory to somewhere? ... I find nothing is interesting :( I haven't seen it used, and I don't think Maven does anything with it by default right now. Use it if it makes sense for your build, perhaps in combination with a custom plugin. -- Wendy - 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#a7310071 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Puzzles on Standard Directory Structure?
On 11/12/06, jiangshachina [EMAIL PROTECTED] wrote: Oh, that's means that the directories just are recommended by Maven, but Maven does nothing for it as default. It probably means that during the design discussions, someone thought a 'conf' directory would be useful. I haven't seen it mentioned, maybe there's already a plan for it, maybe not. Maven isn't finished yet. :) Then I have to deal with the directories by manual. What's a better way to add the directories(and files under them) to archive files? I'm using maven-antrun-plugin now. But I don't think it's the best way. If you want a file to be in the archive, then put it under src/main/resources (or src/main/webapp, as the case may be.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Puzzles on Standard Directory Structure?
Hi Wendy, If you want a file to be in the archive, then put it under src/main/resources (or src/main/webapp, as the case may be.) The two approaches I have used. I just want to know whether there are other ways. But the two approaches above are most direct and easy :D a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/12/06, jiangshachina [EMAIL PROTECTED] wrote: Oh, that's means that the directories just are recommended by Maven, but Maven does nothing for it as default. It probably means that during the design discussions, someone thought a 'conf' directory would be useful. I haven't seen it mentioned, maybe there's already a plan for it, maybe not. Maven isn't finished yet. :) Then I have to deal with the directories by manual. What's a better way to add the directories(and files under them) to archive files? I'm using maven-antrun-plugin now. But I don't think it's the best way. If you want a file to be in the archive, then put it under src/main/resources (or src/main/webapp, as the case may be.) -- Wendy - 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#a7310644 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Puzzles on Standard Directory Structure?
Hello, I may have known the goal of src/main/assembly(assembly descriptor files used by maven-assembly-plugin). Now I want to ask what files should be put at src/main/conf? It seems that the folder would include configuration files, but which configuration files? To src/main/java, Maven just think there are Java source files in there. Then Maven compiles the source. To src/main/resources, Maven just think there are resource files associate with Java source files. Then Maven copy the files into jar(classes dir). Now, how do Maven to deal with src/main/conf? Maven would copy the files under the directory to somewhere? ... I find nothing is interesting :( a cup of Java, cheers! Sha Jiang jiangshachina wrote: 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--tf2519880s177.html#a7254600 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Puzzles on Standard Directory Structure?
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: users@maven.apache.org 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]
Re: Puzzles on Standard Directory Structure?
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: users@maven.apache.org 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]
Re: Puzzles on Standard Directory Structure?
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: users@maven.apache.org 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
Re: Puzzles on Standard Directory Structure?
On 10/29/06, jiangshachina [EMAIL PROTECTED] wrote: 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 The archetype creates a simple webapp project. It doesn't create 'filters' or 'META-INF', because most webapps don't need them. If you do need them, then create the directories. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Puzzles on Standard Directory Structure?
Hi Wendy, Thank your for replying me so quickly ^_^ In fact, I have ever not saw any project have directory filters. Then I cannot understand the functions of the directory. Is there an example about filters? Best Regards! a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 10/29/06, jiangshachina [EMAIL PROTECTED] wrote: 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 The archetype creates a simple webapp project. It doesn't create 'filters' or 'META-INF', because most webapps don't need them. If you do need them, then create the directories. -- Wendy - 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#a7068344 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Puzzles on Standard Directory Structure?
On 10/29/06, jiangshachina [EMAIL PROTECTED] wrote: In fact, I have ever not saw any project have directory filters. Then I cannot understand the functions of the directory. Is there an example about filters? In the first reply to your original message, Adrian referred to to a section in the Better Builds with Maven book. You can also ask Google: http://www.google.com/search?q=maven+resource+filtering And the first result is: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Puzzles on Standard Directory Structure?
On 10/29/06, Wendy Smoak [EMAIL PROTECTED] wrote: In the first reply to your original message, Adrian referred to to a section in the Better Builds with Maven book. You can also ask Google: http://www.google.com/search?q=maven+resource+filtering And the first result is: ... the Getting Started guide, which has this: http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files? -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Puzzles on Standard Directory Structure?
Thanks very much! I must care the section in Better Builds with Maven and the links your gave me. Best regards! a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 10/29/06, Wendy Smoak [EMAIL PROTECTED] wrote: In the first reply to your original message, Adrian referred to to a section in the Better Builds with Maven book. You can also ask Google: http://www.google.com/search?q=maven+resource+filtering And the first result is: ... the Getting Started guide, which has this: http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files? -- Wendy - 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#a7068646 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Puzzles on Standard Directory Structure?
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: users@maven.apache.org 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
RE: Puzzles on Standard Directory Structure?
Hi Adrian, Thanks for your reply. I see a Sun recommended Java EE project directory structure, the link is following, http://java.sun.com/blueprints/code/projectconventions.html How can I make a balance between the Sun recommend directory structure and Maven standard directory structure. Or I don't refer to Sun recommend directory structure, if I want to use Maven. 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: users@maven.apache.org 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#a7046216 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Puzzles on Standard Directory Structure?
Looking at the link you sent, it seems to me that Maven has incorporated many of the Sun recommendations into their own directory structures. Also, you can configure directories etc manually in the pom and not rely on standards/conventions/defaults. So I'm not sure that one is exclusive of the other. The only immediately obvious difference is that Maven does not require a multi-level hierarchy as suggested by Sun. Instead, you can use whatever kind of filesystem structure you might like, and then use dependencies etc to bring in submodules etc to eventually build up a larger project (ie WAR or EAR). Wayne On 10/28/06, jiangshachina [EMAIL PROTECTED] wrote: Hi Adrian, Thanks for your reply. I see a Sun recommended Java EE project directory structure, the link is following, http://java.sun.com/blueprints/code/projectconventions.html How can I make a balance between the Sun recommend directory structure and Maven standard directory structure. Or I don't refer to Sun recommend directory structure, if I want to use Maven. 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: users@maven.apache.org 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#a7046216 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]
Re: Puzzles on Standard Directory Structure?
Hi Wayne, Thanks for your suggestion, I'll have a try. a cup of Java, cheers! Sha Jiang Wayne Fay wrote: Looking at the link you sent, it seems to me that Maven has incorporated many of the Sun recommendations into their own directory structures. Also, you can configure directories etc manually in the pom and not rely on standards/conventions/defaults. So I'm not sure that one is exclusive of the other. The only immediately obvious difference is that Maven does not require a multi-level hierarchy as suggested by Sun. Instead, you can use whatever kind of filesystem structure you might like, and then use dependencies etc to bring in submodules etc to eventually build up a larger project (ie WAR or EAR). Wayne On 10/28/06, jiangshachina [EMAIL PROTECTED] wrote: Hi Adrian, Thanks for your reply. I see a Sun recommended Java EE project directory structure, the link is following, http://java.sun.com/blueprints/code/projectconventions.html How can I make a balance between the Sun recommend directory structure and Maven standard directory structure. Or I don't refer to Sun recommend directory structure, if I want to use Maven. 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: users@maven.apache.org 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#a7046216 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--tf2519880.html#a7057992 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Puzzles on Standard Directory Structure?
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: users@maven.apache.org 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]