You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Lin Sun <li...@gmail.com> on 2007/03/05 21:49:13 UTC

build a war file using maven when web.xml is not there

Hi,

I have seeing a maven error when building a war file and web.xml is not 
there in the project for a purpose to test we support optional web.xml 
in geronimo.

[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] The specified web.xml file 
'E:\geronimolatest2\testsuite\webservices-test
suite\jaxws-tests\jaxws-war2\src\main\webapp\WEB-INF\web.xml' does not exist
[INFO] 
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
------------------------------------------------------------------------

Seems inside maven there is a checking to check if web.xml exists... if 
not, stop the build war immediately.

I am using maven 2.0.5.  Would this be considered a bug in maven?  As 
with Java EE 5, web.xml can be optional.   Can someone shed some light 
on this?

Please reply to both the list and my email address, thx!

Lin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Fwd: build a war file using maven when web.xml is not there

Posted by Lin Sun <li...@gmail.com>.
Thanks.  I posted a comment in the JIRA, hopefully that will go to the 
dev list.

Lin

Wayne Fay wrote:
> 
> ---------- Forwarded message ----------
> From: Wayne Fay <wa...@gmail.com>
> Date: Mar 5, 2007 3:51 PM
> Subject: Re: build a war file using maven when web.xml is not there
> To: Maven Users List <us...@maven.apache.org>
> Cc: linsun_unc@gmail.com
> 
> 
> This is certainly not a "bug." The plugin simply does not have the
> functionality that you desire.
> 
> This is a feature request that should be filed in JIRA against the
> maven-war-plugin:
> http://jira.codehaus.org/browse/MWAR
> 
> Actually, now that I've searched, this has already been filed:
> http://jira.codehaus.org/browse/MWAR-30
> 
> Wayne
> 
> On 3/5/07, Lin Sun <li...@gmail.com> wrote:
>> Hi,
>>
>> I have seeing a maven error when building a war file and web.xml is not
>> there in the project for a purpose to test we support optional web.xml
>> in geronimo.
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The specified web.xml file
>> 'E:\geronimolatest2\testsuite\webservices-test
>> suite\jaxws-tests\jaxws-war2\src\main\webapp\WEB-INF\web.xml' does not 
>> exist
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> Seems inside maven there is a checking to check if web.xml exists... if
>> not, stop the build war immediately.
>>
>> I am using maven 2.0.5.  Would this be considered a bug in maven?  As
>> with Java EE 5, web.xml can be optional.   Can someone shed some light
>> on this?
>>
>> Please reply to both the list and my email address, thx!
>>
>> Lin
>>
>> ---------------------------------------------------------------------
>> 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: build a war file using maven when web.xml is not there

Posted by Wayne Fay <wa...@gmail.com>.
This is certainly not a "bug." The plugin simply does not have the
functionality that you desire.

This is a feature request that should be filed in JIRA against the
maven-war-plugin:
http://jira.codehaus.org/browse/MWAR

Actually, now that I've searched, this has already been filed:
http://jira.codehaus.org/browse/MWAR-30

Wayne

On 3/5/07, Lin Sun <li...@gmail.com> wrote:
> Hi,
>
> I have seeing a maven error when building a war file and web.xml is not
> there in the project for a purpose to test we support optional web.xml
> in geronimo.
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The specified web.xml file
> 'E:\geronimolatest2\testsuite\webservices-test
> suite\jaxws-tests\jaxws-war2\src\main\webapp\WEB-INF\web.xml' does not exist
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
>
> Seems inside maven there is a checking to check if web.xml exists... if
> not, stop the build war immediately.
>
> I am using maven 2.0.5.  Would this be considered a bug in maven?  As
> with Java EE 5, web.xml can be optional.   Can someone shed some light
> on this?
>
> Please reply to both the list and my email address, thx!
>
> Lin
>
> ---------------------------------------------------------------------
> 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