|
169 | 169 | </executions> |
170 | 170 | </plugin> |
171 | 171 | <plugin> |
172 | | - <groupId>com.dkanejs.maven.plugins</groupId> |
173 | | - <artifactId>docker-compose-maven-plugin</artifactId> |
174 | | - <version>4.0.0</version> |
175 | | - <configuration> |
176 | | - <skip>${skipDocker}</skip> |
177 | | - <composeFile>${project.basedir}/docker-compose.yml</composeFile> |
178 | | - <detachedMode>true</detachedMode> |
179 | | - <removeVolumes>false</removeVolumes> |
180 | | - <removeOrphans>true</removeOrphans> |
181 | | - </configuration> |
| 172 | + <groupId>org.codehaus.mojo</groupId> |
| 173 | + <artifactId>exec-maven-plugin</artifactId> |
| 174 | + <version>3.3.0</version> |
182 | 175 | <executions> |
183 | 176 | <!-- Clean up any leftover container from a previous run --> |
184 | 177 | <execution> |
185 | 178 | <id>docker-compose-down-before</id> |
186 | 179 | <phase>pre-integration-test</phase> |
187 | | - <goals> |
188 | | - <goal>down</goal> |
189 | | - </goals> |
| 180 | + <goals><goal>exec</goal></goals> |
| 181 | + <configuration> |
| 182 | + <skip>${skipDocker}</skip> |
| 183 | + <executable>docker</executable> |
| 184 | + <arguments> |
| 185 | + <argument>compose</argument> |
| 186 | + <argument>-f</argument> |
| 187 | + <argument>${project.basedir}/docker-compose.yml</argument> |
| 188 | + <argument>down</argument> |
| 189 | + <argument>--remove-orphans</argument> |
| 190 | + </arguments> |
| 191 | + </configuration> |
190 | 192 | </execution> |
191 | 193 | <execution> |
192 | 194 | <id>docker-compose-up</id> |
193 | 195 | <phase>pre-integration-test</phase> |
194 | | - <goals> |
195 | | - <goal>up</goal> |
196 | | - </goals> |
| 196 | + <goals><goal>exec</goal></goals> |
| 197 | + <configuration> |
| 198 | + <skip>${skipDocker}</skip> |
| 199 | + <executable>docker</executable> |
| 200 | + <arguments> |
| 201 | + <argument>compose</argument> |
| 202 | + <argument>-f</argument> |
| 203 | + <argument>${project.basedir}/docker-compose.yml</argument> |
| 204 | + <argument>up</argument> |
| 205 | + <argument>-d</argument> |
| 206 | + </arguments> |
| 207 | + </configuration> |
197 | 208 | </execution> |
198 | 209 | <execution> |
199 | 210 | <id>docker-compose-down</id> |
200 | 211 | <phase>post-integration-test</phase> |
201 | | - <goals> |
202 | | - <goal>down</goal> |
203 | | - </goals> |
| 212 | + <goals><goal>exec</goal></goals> |
| 213 | + <configuration> |
| 214 | + <skip>${skipDocker}</skip> |
| 215 | + <executable>docker</executable> |
| 216 | + <arguments> |
| 217 | + <argument>compose</argument> |
| 218 | + <argument>-f</argument> |
| 219 | + <argument>${project.basedir}/docker-compose.yml</argument> |
| 220 | + <argument>down</argument> |
| 221 | + </arguments> |
| 222 | + </configuration> |
204 | 223 | </execution> |
205 | 224 | </executions> |
206 | 225 | </plugin> |
|
0 commit comments