Skip to content

Commit 4e1e3ca

Browse files
committed
fix(use-new-docker-compose): use exec-maven-plugin instead of docker-compose-maven-plugin librairy
1 parent 4b1e3e1 commit 4e1e3ca

1 file changed

Lines changed: 38 additions & 19 deletions

File tree

pom.xml

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -169,38 +169,57 @@
169169
</executions>
170170
</plugin>
171171
<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>
182175
<executions>
183176
<!-- Clean up any leftover container from a previous run -->
184177
<execution>
185178
<id>docker-compose-down-before</id>
186179
<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>
190192
</execution>
191193
<execution>
192194
<id>docker-compose-up</id>
193195
<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>
197208
</execution>
198209
<execution>
199210
<id>docker-compose-down</id>
200211
<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>
204223
</execution>
205224
</executions>
206225
</plugin>

0 commit comments

Comments
 (0)