Uploaded image for project: 'Maven WAR Plugin'
  1. Maven WAR Plugin
  2. MWAR-314

failOnMissingWebXml ignored when webXml set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 3.3.0
    • None
    • None
    • Windows 7, IBM RAD 9.0

    Description

      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?

      Attachments

        1. build.log
          272 kB
          Andre Tadeu de Carvalho
        2. MWAR-314.zip
          3 kB
          Andre Tadeu de Carvalho
        3. pom.xml
          0.7 kB
          Jakob Galbavy

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              jakobgalbavy Jakob Galbavy
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m