Re: [M2]How to change the m2's defalut webapp dir to my own webroot dir?
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 <[EMAIL PROTECTED]> wrote: > > How to set it in the pom.xml? > > Hong [EMAIL PROTECTED] > 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 <[EMAIL PROTECTED]> 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?
How to set it in the pom.xml? Hong [EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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?
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[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?