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

<webXML/> tag doesn't work during aggregated build.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • None
    • None

    Description

      When building parent aggregator, subprojects <webXml/> tag uses the wrong base directory (perhaps the base directory of the parent?) to search for the specified web.xml.

      <parent>
      <groupId>SalesStation</groupId>
      <artifactId>SSBuild</artifactId>
      <version>SNAPSHOT</version>
      <relativePath>../SSBuild/pom.xml</relativePath>
      </parent>
      <modelVersion>4.0.0</modelVersion>
      <groupId>SalesStation</groupId>
      <artifactId>SS</artifactId>
      <packaging>war</packaging>
      <version>SNAPSHOT</version>
      <name>SalesStation SS webapp</name>

      <build>
      <sourceDirectory>WEB-INF/src</sourceDirectory>
      <finalName>SS</finalName>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-war-plugin</artifactId>
      <configuration>
      <warSourceDirectory>.</warSourceDirectory>
      <excludes>target/**</excludes>
      <!-- The ../SS is in there to fix a Maven Bug :o( -->
      <webXml>../SS/WEB-INF/maven-web.xml</webXml>
      </configuration>
      </plugin>

      Attachments

        1. MWAR-20-maven-war-plugin.patch
          2 kB
          Maria Odea B. Ching

        Issue Links

          Activity

            People

              oching Maria Odea B. Ching
              daveboden David Boden
              Votes:
              1 Vote for this issue
              Watchers:
              1 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 - 3h
                  3h