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

War plugin needs better handling of multiple executions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • None
    • None
    • winxp

    Description

      Currently the war plugin sets a reference that is used by install and deploy to know which file to work on. This is troublesome for running multiple executions. Would be nice if it was an option to turn this off so war could be run in an execution without messing with the normal lifecycle.

      <build>
      <finalName>cdr-ui</finalName>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-war-plugin</artifactId>
      <configuration>
      <excludes>*/.jar</excludes>
      </configuration>
      <executions>
      <execution>
      <id>default</id>
      <goals>
      <goal>war</goal>
      </goals>
      <configuration>
      <excludes>.dontcare</excludes>
      <warName>test</warName>
      </configuration>
      </execution>
      </executions>
      </plugin>
      </plugins>

      Something like above will generate 2 wars, but unexpectedly, the install and deploy pick up the test.war no the one named using <finalName>

      Attachments

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

        Activity

          People

            oching Maria Odea B. Ching
            brianf Brian E Fox
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5h Original Estimate - 5h
                5h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 6h
                6h