Activating a profile that configures a different web.xml file to use

Hi I have a maven project that contains the following section

   <profiles>
        <profile>
            <id>development</id>

            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-war-plugin</artifactId>
                        <configuration>
                            <webXml>${basedir}/src/main/conf/web-test.xml</webXml>
                        </configuration>
                    </plugin>                
                </plugins>
            </build>
        </profile>

    </profiles>


Eg. when this profile is activated, a different web.xml file should be used.
I activated this profile in the maven tab and re-imported the project but somehow the exploded directory will still contain the old web.xml

Is this a bug or am I missing something ?
1 comment

Hmm actually it seems that intellij picks up the web.xml file in it's web facet

but the original was in src/main/webapp/WEB-INF/web.xml

and somehow intellij does not overwrite it with the one configured in the facet.

So i was able to work around it.

0

Please sign in to leave a comment.