...
Voici un exemple de code:
Bloc de code |
---|
<profile>
<id>Production</id>
<activation>
<property>
<name>Production</name>
<value>true</value>
</property>
</activation>
<build>
<filters>
<filter>src/main/resources/properties/defaults.properties</filter>
<filter>src/main/resources/properties/config.properties</filter>
</filters>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<defaultGoal>package</defaultGoal>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1</version>
<configuration>
<webResources>
<resource>
<filtering>true</filtering>
<directory>src/main/webapp</directory>
<includes>
<include>WEB-INF/web.xml</include>
<include>WEB-INF/portlet.xml</include>
</includes>
</resource>
</webResources>
<warName>esup-blank-${misc.version}</warName>
</configuration>
</plugin>
</plugins>
</build>
</profile>
|