Skip to content

Instantly share code, notes, and snippets.

@Qkyrie
Created July 17, 2013 07:50
Show Gist options
  • Save Qkyrie/6018561 to your computer and use it in GitHub Desktop.
Save Qkyrie/6018561 to your computer and use it in GitHub Desktop.
maven profiles for filtering property-files with filters
...
<profile>
<id>myId</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<filter.properties>filter-values-myId.properties</filter.properties>
</properties>
</profile>
...
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<filters>
<filter>src/main/filters/${filter.properties}</filter>
</filters>
...
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment