| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <project xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd' xmlns='http://maven.apache.org/POM/4.0.0'> |
| <modelVersion>4.0.0</modelVersion> |
| <groupId>testwar</groupId> |
| <artifactId>MWAR-129</artifactId> |
| <packaging>war</packaging> |
| <version>1.0-SNAPSHOT</version> |
| <name>MWAR-129 Maven Webapp</name> |
| <url>http://maven.apache.org</url> |
| <dependencies> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>3.8.1</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <defaultGoal>package</defaultGoal> |
| <resources> |
| <resource> |
| <filtering>true</filtering> |
| <directory>src/main/resources</directory> |
| </resource> |
| <resource> |
| <directory>src/main/java</directory> |
| <includes> |
| <include>**/*.xml</include> |
| </includes> |
| </resource> |
| </resources> |
| <testResources> |
| <testResource> |
| <directory>src/test/resources</directory> |
| </testResource> |
| <testResource> |
| <directory>src/main/webapp</directory> |
| <includes> |
| <include>**/*.xml</include> |
| </includes> |
| </testResource> |
| <testResource> |
| <directory>src/test/webapp</directory> |
| <includes> |
| <include>**/*.xml</include> |
| </includes> |
| </testResource> |
| </testResources> |
| <finalName>${project.artifactId}</finalName> |
| <plugins> |
| <plugin> |
| <artifactId>maven-war-plugin</artifactId> |
| <!--version>2.0.2</version--> |
| <!--version>2.1-alpha-2-SNAPSHOT</version--> |
| <version>@pom.version@</version> |
| <configuration> |
| <warSourceDirectory>src/main/webapp</warSourceDirectory> |
| <webResources> |
| <resource> |
| <filtering>true</filtering> |
| <directory>src/main/webapp</directory> |
| <targetPath>.</targetPath> |
| <includes> |
| <include>param.jsp</include> |
| </includes> |
| </resource> |
| </webResources> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>profile1</id> |
| <activation> |
| <property> |
| <name>profile1</name> |
| </property> |
| </activation> |
| <build> |
| <finalName>profile1</finalName> |
| </build> |
| <properties> |
| <app.mainStyleSheet>profile1.css</app.mainStyleSheet> |
| </properties> |
| </profile> |
| <profile> |
| <id>profile2</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| <property> |
| <name>profile2</name> |
| </property> |
| </activation> |
| <build> |
| <finalName>profile2</finalName> |
| </build> |
| <properties> |
| <app.mainStyleSheet>profile2.css</app.mainStyleSheet> |
| </properties> |
| </profile> |
| </profiles> |
| </project> |