You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jiangshachina <ji...@gmail.com> on 2006/11/09 09:59:46 UTC
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Puzzles on Standard Directory Structure?
Posted by jiangshachina <ji...@gmail.com>.
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 <ji...@gmail.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Puzzles on Standard Directory Structure?
Posted by Wendy Smoak <ws...@gmail.com>.
On 11/12/06, jiangshachina <ji...@gmail.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Puzzles on Standard Directory Structure?
Posted by jiangshachina <ji...@gmail.com>.
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 <ji...@gmail.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Puzzles on Standard Directory Structure?
Posted by Wendy Smoak <ws...@gmail.com>.
On 11/9/06, jiangshachina <ji...@gmail.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org