Hi
I am working on a maven-based web project. The pom includes the maven-war-plugin, which is configured to apply profile filters.
I would like (need?) IDEA to apply the profile's properties to the files included in the filtering when deploying to my tomcat run configuration. But I can't figure out how to do this?
Here are the relevant parts of my pom:
the plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-alpha-1</version>
<configuration>
<warName>${project.build.finalName}</warName>
<outputDirectory>${war.output}</outputDirectory>
<webappDirectory>${war.output}/${project.build.finalName}</webappDirectory>
<webResources>
<resource>
<directory>conf/serverProperties</directory>
<filtering>true</filtering>
<includes>
<include>WEB-INF/log4j.properties</include>
<include>WEB-INF/classes/release.properties</include>
<include>WEB-INF/classes/config.properties</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
and the profile:
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<build.id>dev</build.id>
</properties>
<build>
<filters>
<filter>
conf/serverProperties/dev.properties
</filter>
</filters>
</build>
</profile>
Can anyone help me please?