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

<webXml> is not doing anything. web.xml still the default one regardless of the value of the attribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.1.0
    • None
    • filtering
    • None
    • Maven 3.5, Netbeans 8.2, Java8
    • Important

    Description

      I try to set a custom web.xml to my war-file by using the following configuration:
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-war-plugin</artifactId>
      <version>3.1.0</version>
      <configuration>
      <failOnMissingWebXml>true</failOnMissingWebXml>
      <configuration>
      <webXml>${basedir}/target/web.xml</webXml>
      </configuration>
      </configuration>
      </plugin>

      The setting: "<webXml>${basedir}/target/web.xml</webXml>" seems to have no function whatsoever. Regardless of the value I use the result is the same, even if the file is not existent the plugin gives no warning, at least. The plugin generates its default web.xml and this is it all.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ccgv Catalin Crihan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: