diff options
Diffstat (limited to 'dozentenmodulserver/pom.xml')
-rw-r--r-- | dozentenmodulserver/pom.xml | 69 |
1 files changed, 66 insertions, 3 deletions
diff --git a/dozentenmodulserver/pom.xml b/dozentenmodulserver/pom.xml index 2c8abb4e..43339e0d 100644 --- a/dozentenmodulserver/pom.xml +++ b/dozentenmodulserver/pom.xml @@ -1,4 +1,5 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> @@ -31,6 +32,68 @@ </repository> </repositories> + <profiles> + <profile> + <id>dozmod-server:start</id> + <build> + <defaultGoal>pre-integration-test</defaultGoal> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>3.0.0</version> + <executions> + <execution> + <id>docker-compose:up</id> + <phase>pre-integration-test</phase> + <goals> + <goal>exec</goal> + </goals> + </execution> + </executions> + <configuration> + <executable>docker-compose</executable> + <arguments> + <argument>up</argument> + <argument>--build</argument> + <argument>--force-recreate</argument> + <argument>--detach</argument> + </arguments> + </configuration> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>dozmod-server:stop</id> + <build> + <defaultGoal>validate</defaultGoal> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>3.0.0</version> + <executions> + <execution> + <id>docker-compose:down</id> + <phase>validate</phase> + <goals> + <goal>exec</goal> + </goals> + </execution> + </executions> + <configuration> + <executable>docker-compose</executable> + <arguments> + <argument>down</argument> + </arguments> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> + <build> <plugins> <plugin> @@ -82,8 +145,8 @@ <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> <configuration> - <useSystemClassLoader>false</useSystemClassLoader> - </configuration> + <useSystemClassLoader>false</useSystemClassLoader> + </configuration> </plugin> </plugins> </build> |