Hi all,
I've using Maven 2 to build a WAR file. I want to specialise the generated
WAR for 1 or more environments e..g dev, test, live etc.
I've included the XML fragment below in my pom.xml. The filter properties
are working fine, by the WAR is not qualified with 'live' as expected.
 
Can anyone provide guidance on what I'm doing wrong?
 
    <profile>
      <id>target-live</id>
      
      <activation>
        <property>
          <name>target</name>
          <value>live</value>
        </property>
      </activation>
  
      <build>
       <filters>
  <filter>src/main/filters/live.properties</filter>
        </filters>
         <plugins>
        <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <groupId>org.apache.maven.plugins</groupId>
        <configuration>
          <classifier>live</classifier>
        </configuration>
        </plugin>
        </plugins>
      </build>
    </profile>
 
I've confirmed that the <configuration> block is being read correctly as if
I add
 
<configuration>
           <webXml>src/localdev/WEB-INF/web.xml</webXml>
          <classifier>foobar</classifier>
        </configuration>
.....then I get the expected error relating to the missing web XML file. So
why is the classifier not being used?
 
All help appreciated.
Shaun.

Reply via email to