Select active Spring profile based on Maven profile
build-war uses the Spring postgres profile, default is hsqldb and dev
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -24,6 +24,7 @@
|
||||
<maven.compiler.target>1.9</maven.compiler.target>
|
||||
<java.version>1.9</java.version>
|
||||
<packaging.type>jar</packaging.type>
|
||||
<activeProfiles>hsqldb,dev</activeProfiles>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -159,6 +160,7 @@
|
||||
<id>build-war</id>
|
||||
<properties>
|
||||
<packaging.type>war</packaging.type>
|
||||
<activeProfiles>postgres</activeProfiles>
|
||||
</properties>
|
||||
<build>
|
||||
<finalName>financer##${project.version}</finalName>
|
||||
|
||||
Reference in New Issue
Block a user