Open abhsc opened 7 years ago
I have the same issue on Windows 10 home. Any one has an answer?
Sorry, I have currently no easy access to a Windows machine. Is it specific to windows or does it appear on other platforms for you, too ?
Same issue with docker-maven-plugin:0.23.0 when using wait on mapped TCP poirt
[INFO] DOCKER> [toto/couchbase-product-offering:master] "couchbase-product-offering": Start container 48014c6da1b9 [INFO] DOCKER> [toto/couchbase-product-offering:master] "couchbase-product-offering": Waiting for mapped ports [3093] on host 192.168.62.101 [INFO] DOCKER> [toto/couchbase-product-offering:master] "couchbase-product-offering": Waited on tcp port '[/192.168.62.101:3093]' 8514 ms [ERROR] DOCKER> Error occurred during container startup, shutting down... [INFO] DOCKER> [toto/couchbase-product-offering:master] "couchbase-product-offering": Stop and removed container 48014c6da1b9 after 0 ms [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 34.256 s [INFO] Finished at: 2017-11-21T18:52:20+01:00 [INFO] Final Memory: 69M/502M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.23.0:start (prepare-it-couchbase) on project product-offering-service: A type incompatibility occurred while executing io.fabric8:docker-maven-plugin:0.23.0:start: java.lang.Integer cannot be cast to java.lang.String [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>io.fabric8:docker-maven-plugin:0.23.0 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/C:/Cat1/Data/Maven/.m2/repository/io/fabric8/docker-maven-plugin/0.23.0/docker-maven-plugin-0.23.0.jar [ERROR] urls[1] = file:/C:/Cat1/Data/Maven/.m2/repository/org/apache/httpcomponents/httpclient/4.5.3/httpclient-4.5.3.jar [ERROR] urls[2] = file:/C:/Cat1/Data/Maven/.m2/repository/org/apache/httpcomponents/httpcore/4.4.6/httpcore-4.4.6.jar [ERROR] urls[3] = file:/C:/Cat1/Data/Maven/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar [ERROR] urls[4] = file:/C:/Cat1/Data/Maven/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar [ERROR] urls[5] = file:/C:/Cat1/Data/Maven/.m2/repository/com/github/jnr/jnr-unixsocket/0.12/jnr-unixsocket-0.12.jar [ERROR] urls[6] = file:/C:/Cat1/Data/Maven/.m2/repository/com/github/jnr/jnr-ffi/2.0.9/jnr-ffi-2.0.9.jar [ERROR] urls[7] = file:/C:/Cat1/Data/Maven/.m2/repository/com/github/jnr/jffi/1.2.11/jffi-1.2.11.jar [ERROR] urls[8] = file:/C:/Cat1/Data/Maven/.m2/repository/com/github/jnr/jffi/1.2.11/jffi-1.2.11-native.jar [ERROR] urls[9] = file:/C:/Cat1/Data/Maven/.m2/repository/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar [ERROR] urls[10] = file:/C:/Cat1/Data/Maven/.m2/repository/org/ow2/asm/asm-commons/5.0.3/asm-commons-5.0.3.jar [ERROR] urls[11] = file:/C:/Cat1/Data/Maven/.m2/repository/org/ow2/asm/asm-analysis/5.0.3/asm-analysis-5.0.3.jar [ERROR] urls[12] = file:/C:/Cat1/Data/Maven/.m2/repository/org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.jar [ERROR] urls[13] = file:/C:/Cat1/Data/Maven/.m2/repository/org/ow2/asm/asm-util/5.0.3/asm-util-5.0.3.jar [ERROR] urls[14] = file:/C:/Cat1/Data/Maven/.m2/repository/com/github/jnr/jnr-x86asm/1.0.2/jnr-x86asm-1.0.2.jar [ERROR] urls[15] = file:/C:/Cat1/Data/Maven/.m2/repository/com/github/jnr/jnr-constants/0.9.1/jnr-constants-0.9.1.jar [ERROR] urls[16] = file:/C:/Cat1/Data/Maven/.m2/repository/com/github/jnr/jnr-enxio/0.12/jnr-enxio-0.12.jar [ERROR] urls[17] = file:/C:/Cat1/Data/Maven/.m2/repository/com/github/jnr/jnr-posix/3.0.29/jnr-posix-3.0.29.jar
I got the same issue executing clean install docker:run on an ubuntu 16.04.3 with maven 3.3.9 and plugin version 0.23.0
mee too
I had same problem. Exposing docker port helps. The Docker client will default to connecting to unix:///var/run/docker.sock on Linux, and tcp://127.0.0.1:2376 on Windows.
In fabric config you must specify docker host:
I am also facing this issue. Any working solution available ?
I still see the issue in latest version 0.44.0. I am using Java 17.
Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
Maven home: /usr/share/maven
Java version: 17.0.9, vendor: Eclipse Adoptium, runtime: /opt/java/openjdk
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.15.123.1-microsoft-standard-wsl2", arch: "amd64", family: "unix"
[main] ERROR org.apache.maven.cli.MavenCli - Failed to execute goal io.fabric8:docker-maven-plugin:0.44.0:stop (stop-databus-stack) on project dbus-api-client: A type incompatibility occurred while executing io.fabric8:docker-maven-plugin:0.44.0:stop: class io.fabric8.maven.docker.log.LogDispatcher cannot be cast to class io.fabric8.maven.docker.log.LogDispatcher (io.fabric8.maven.docker.log.LogDispatcher is in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @3e4a79c9; io.fabric8.maven.docker.log.LogDispatcher is in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @59b5a91f)
@fmiguelez : Could you please share reproducer project?
Description
While testing/ running the plugin, I found this combination of goals causes the plugin to fail: clean + docker:stop
Whilst each work by themselves.
Info
mvn -v
) : Apache Maven 3.5.0 With executions bound as followsSample output