I\'m using resource filtering on jsps, based on profiles. I\'m also developing locally using mvn jetty:run
, but the filtering phase does not run.
How can I
You may want to use the jetty:run-exploded goal rather than jetty:run. From the documentation:
This goal first assembles your webapp into an exploded war file and then deploys it to Jetty.
This may ensure that the appropriate war lifecycle phases are executed before the server is started.
Also are you sure the jci profile is being activated? if another profile is specified for the build, the
From John Casey's response:
The above example is working as designed. The
element is meant to specify that this profile will be activated if no other profiles are active in the build. Therefore, specific activation of any profile will cause this one to be deactivated.