Skip to content

Instantly share code, notes, and snippets.

@robshep
Created December 30, 2014 22:24
Show Gist options
  • Save robshep/8b41f8dec3206872c96c to your computer and use it in GitHub Desktop.
Save robshep/8b41f8dec3206872c96c to your computer and use it in GitHub Desktop.
Force sping profile "test" during maven testing
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<spring.profiles.active>test</spring.profiles.active>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment