br4chu / docker-compose-maven-plugin

Maven plugin that talks to docker-compose command-line interface
Apache License 2.0
12 stars 4 forks source link

How to set wait timeout #13

Open agogala opened 2 years ago

agogala commented 2 years ago

I've tried to set wait timeout but receive the following error:

[ERROR] Failed to execute goal io.brachu:docker-compose-maven-plugin:0.11.0:up (default) on project pund-espis-rest-server: Unable to parse configuration of mojo io.brachu:docker-compose-maven-plugin:0.11.0:up for parameter wait: Cannot find default setter in class io.brachu.docker.compose.plugin.WaitConfig -> [Help 1]

Configuration is:

            <plugin>
                <groupId>io.brachu</groupId>
                <artifactId>docker-compose-maven-plugin</artifactId>
                <version>${docker-compose-plugin.version}</version>
                <configuration>
                    <workDir>src/test/resources</workDir>
                    <followLogs>true</followLogs>
                    <wait>2 minutes</wait>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>up</goal>
                            <goal>down</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

How to I set up wait interval?

dalbani commented 10 months ago

There's an example on https://github.com/br4chu/docker-compose-maven-plugin#configuration showing the syntax for <wait>.