IntelliJ, Tomcat, Maven profiles and context.xml filtered
Hello,
i'm trying to achieve a simply task that with other IDEs i'm using (like MyEclipse for example) si really, really simply.
Basically i have a pom.xml file with a single profile (called local and active by default). I can see it also on maven intellij integration and it is enabled.
Then i have a tomcat 7 server where i have to deploy the exploded war to test it.
I have also a context.xml file that needs to be filtered on deploy with values taken from pom.xml local profile.
There is no way to do this.. i've tried lot of configurations in pom.xml to filter this but the context.xml is always deployed unfiltered.
<?xml version="1.0" encoding="UTF-8"?>
<Context debug="0" privileged="true" path="/asb">
<Parameter name="REDIS.HOST" value="${feed.redis.redis}" override="false" />
<Parameter name="REDIS.PORT" value="${feed.redis.port}" override="false" />
<Parameter name="REDIS.TIMEOUT" value="${feed.redis.timeout}" override="false" />
<Parameter name="REDIS.PASSWORD" value="${feed.redis.password}" override="false" />
</Context>
the various files should be taken from pom.xml before the deploy.
Is there a way to do this with intellij and tomcat?
I'm really getting crazy about this..
Please sign in to leave a comment.
Hello,
We have related issue on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-144735. Please follow it for updates.
As a workaround you may try to delegate build/run actions to Maven in "Settings/Preferences | Build, Execution, Deployment | Build Tools | Maven | Runner"