Maven resource filtering doesn't write output to "WEB-INF" inside my war

Solution Unverified - Updated -

Issue

  • I have maven resource filtering activated in the pom.xml, following page Apache Maven Resources Plugin > Filtering, but when I run the build, variable substitutions happen as they should but the output files are written to WEB-INF/classes. The un-filtered source configuration files are copied to WEB-INF and loaded eventually.
  • In maven-resource-plugin (mvn resources:resources and resources-copy-resources), how to set up the output path correctly in the pom.xml ?
  • How to do maven filtering into WEB-INF rather than into WEB-INF/classes in a war project ?

Environment

  • Apache Maven
    • 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content