You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wendy Smoak <ws...@gmail.com> on 2005/11/18 18:32:16 UTC
[m2] No source code in webapp?
The webapp archetype doesn't create a src/main/java folder. I assume
this is because the recommended structure is to have a multi-module
project with 'project-core.jar' and have the webapp depend on that.
So... just _how_ frowned-upon is it to have source code in a 'war'
project, which ultimately ends up in WEB-INF/classes?
Thanks,
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] No source code in webapp?
Posted by Brett Porter <br...@gmail.com>.
I think its perfectly reasonable to have web related code in the web
project if it won't be used anywhere else.
On 11/19/05, Wendy Smoak <ws...@gmail.com> wrote:
> The webapp archetype doesn't create a src/main/java folder. I assume
> this is because the recommended structure is to have a multi-module
> project with 'project-core.jar' and have the webapp depend on that.
>
> So... just _how_ frowned-upon is it to have source code in a 'war'
> project, which ultimately ends up in WEB-INF/classes?
>
> Thanks,
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] No source code in webapp?
Posted by "Nathaniel G. Auvil" <na...@yahoo.com>.
just create a src/main/java directory. when you do a 'mvn package' it will compile and put the classes under the WEB-INF/classes directory
Wendy Smoak <ws...@gmail.com> wrote: The webapp archetype doesn't create a src/main/java folder. I assume
this is because the recommended structure is to have a multi-module
project with 'project-core.jar' and have the webapp depend on that.
So... just _how_ frowned-upon is it to have source code in a 'war'
project, which ultimately ends up in WEB-INF/classes?
Thanks,
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.