You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Hong Xing <st...@gmail.com> on 2005/10/24 07:40:12 UTC
[M2]How to change the m2's defalut webapp dir to my own webroot dir?
Hi all,
In my previous projects, I have the following project layout:
my-webapp
|-- pom.xml
|-- WebRoot
| |-- index.jsp
| `-- WEB-INF
| `-- classes
| `-- lib
`-- src
When I used "mvn package" to package my war, it can't find my WebRoot and failed.
So how can I change the m2's defalut webapp dir to my own webroot dir in pom.xml?
Re: [M2]How to change the m2's defalut webapp dir to my own webroot dir?
Posted by Brett Porter <br...@gmail.com>.
It goes in the configuration element for maven-war-plugin. There are
plenty of examples in the documentation, such as the getting started
guide.
Regards,
Brett
On 10/24/05, Hong Xing <st...@gmail.com> wrote:
>
> How to set it in the pom.xml?
>
> Hong Xing,star.hong@gmail.com
> 2005-10-24
> ----- 收到以下来信内容 -----
> 发件人: Brett Porter
> 收件人: Maven Users List,star.hong
> 时 间: 2005-10-24, 13:48:39
> 主 题: Re: [M2]How to change the m2's defalut webapp dir to my own webroot dir?
>
>
> http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
>
> warSourceDirectory is the configuration element to set to WebRoot.
>
> On 10/23/05, Hong Xing <st...@gmail.com> wrote:
> > Hi all,
> >
> > In my previous projects, I have the following project layout:
> >
> > my-webapp
> > |-- pom.xml
> > |-- WebRoot
> > | |-- index.jsp
> > | `-- WEB-INF
> > | `-- classes
> > | `-- lib
> > `-- src
> >
> > When I used "mvn package" to package my war, it can't find my WebRoot and failed.
> > So how can I change the m2's defalut webapp dir to my own webroot dir in pom.xml?
> >
>
Re: [M2]How to change the m2's defalut webapp dir to my own webroot dir?
Posted by Hong Xing <st...@gmail.com>.
How to set it in the pom.xml?
Hong Xing,star.hong@gmail.com
2005-10-24
----- 收到以下来信内容 -----
发件人: Brett Porter
收件人: Maven Users List,star.hong
时 间: 2005-10-24, 13:48:39
主 题: Re: [M2]How to change the m2's defalut webapp dir to my own webroot dir?
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
warSourceDirectory is the configuration element to set to WebRoot.
On 10/23/05, Hong Xing <st...@gmail.com> wrote:
> Hi all,
>
> In my previous projects, I have the following project layout:
>
> my-webapp
> |-- pom.xml
> |-- WebRoot
> | |-- index.jsp
> | `-- WEB-INF
> | `-- classes
> | `-- lib
> `-- src
>
> When I used "mvn package" to package my war, it can't find my WebRoot and failed.
> So how can I change the m2's defalut webapp dir to my own webroot dir in pom.xml?
>
Re: [M2]How to change the m2's defalut webapp dir to my own webroot dir?
Posted by Brett Porter <br...@gmail.com>.
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
warSourceDirectory is the configuration element to set to WebRoot.
On 10/23/05, Hong Xing <st...@gmail.com> wrote:
> Hi all,
>
> In my previous projects, I have the following project layout:
>
> my-webapp
> |-- pom.xml
> |-- WebRoot
> | |-- index.jsp
> | `-- WEB-INF
> | `-- classes
> | `-- lib
> `-- src
>
> When I used "mvn package" to package my war, it can't find my WebRoot and failed.
> So how can I change the m2's defalut webapp dir to my own webroot dir in pom.xml?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org