Created
April 20, 2015 15:24
-
-
Save polster/7ae8e0e9477feeeaca1c to your computer and use it in GitHub Desktop.
Multiple config profiles with Maven
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profiles> | |
<profile> | |
<id>local</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<build> | |
<resources> | |
<resource> | |
<directory>src/main/resources</directory> | |
</resource> | |
<resource> | |
<directory>src/main/config/local</directory> | |
</resource> | |
</resources> | |
</build> | |
</profile> | |
<profile> | |
<id>dev</id> | |
<build> | |
<resources> | |
<resource> | |
<directory>src/main/resources</directory> | |
</resource> | |
<resource> | |
<directory>src/main/config/dev</directory> | |
</resource> | |
</resources> | |
</build> | |
</profile> | |
</profiles> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src/main/resources | |
| | |
+- local | |
| | | |
| `- specific.properties | |
+- dev | |
| | |
`- specific.properties |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment