You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andre Tadeu de Carvalho (JIRA)" <ji...@apache.org> on 2018/12/31 19:16:00 UTC

[jira] [Commented] (MWAR-314) failOnMissingWebXml ignored when webXml set

    [ https://issues.apache.org/jira/browse/MWAR-314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16731430#comment-16731430 ] 

Andre Tadeu de Carvalho commented on MWAR-314:
----------------------------------------------

[~khmarbaise],

I attached the test case and the corresponding *build.log* for this test case. It seems that **failOnMissingWebXml** is not being checked at **WarProjectPackagingTask::handleDeploymentDescriptors**:

 

 
{noformat}
Caused by: org.apache.maven.plugin.MojoFailureException: The specified web.xml file '/home/andre/workspaces/oss/maven-war-plugin/target/it/MWAR-314/src/main/webapp/WEB-INF/web.xml' does not exist
at org.apache.maven.plugins.war.packaging.WarProjectPackagingTask.handleDeploymentDescriptors (WarProjectPackagingTask.java:236)
at org.apache.maven.plugins.war.packaging.WarProjectPackagingTask.performPackaging (WarProjectPackagingTask.java:110)
at org.apache.maven.plugins.war.AbstractWarMojo.buildWebapp (AbstractWarMojo.java:526)
at org.apache.maven.plugins.war.AbstractWarMojo.buildExplodedWebapp (AbstractWarMojo.java:442)
at org.apache.maven.plugins.war.WarMojo.performPackaging (WarMojo.java:234)
at org.apache.maven.plugins.war.WarMojo.execute (WarMojo.java:197){noformat}
 

I will create a pull request for this one.

 

 

> failOnMissingWebXml ignored when webXml set
> -------------------------------------------
>
>                 Key: MWAR-314
>                 URL: https://issues.apache.org/jira/browse/MWAR-314
>             Project: Maven WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.4
>         Environment: Windows 7, IBM RAD 9.0
>            Reporter: Jakob Galbavy
>            Assignee: Karl Heinz Marbaise
>            Priority: Minor
>         Attachments: MWAR-314.zip, build.log, pom.xml
>
>
> Hi,
> if the webXml attribute is set in the configuration of the plugin (in my case inherited from a parent pom), the failIOnMissingWebXml boolean is ignored.
> To reproduce that:
> * import maven project from attached pom OR create new project (simple archetype), package: war
> * use attached pom.xml OR include the plugin in the pom and set webXml to something and failOnMissingWebXml to false
> * mvn clean install
> -> failed
> ********
> * comment the webXml attribute out
> * mvn clean install
> -> success
> cheers
> Jakob
> PS: in my understanding of xml, using <webXml /> in the pom should set that attribute to NULL, but that doesn't work either. Is that another bug or supposed to be like that?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)