Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker:start failure on windows #54

Closed
ntrvic opened this issue Apr 30, 2015 · 20 comments
Closed

docker:start failure on windows #54

ntrvic opened this issue Apr 30, 2015 · 20 comments
Labels

Comments

@ntrvic
Copy link

ntrvic commented Apr 30, 2015

Everything works on my mac but I just started testing this out on windows environment and am getting the following error:

C:\Users\CCS_Toshiba\Documents\trunk-r23686-docker>mvn docker:start -N -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
com.freedomoss.crowdcontrol:workfusion-application:pom:7.2.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for com.alexecollins.docker:docker-mave
n-plugin is missing. @ line 878, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building WorkFusion Application 7.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- docker-maven-plugin:2.8.4:start (default-cli) @ workfusion-applicatio
n ---
[INFO] Docker version 1.6.0
[INFO] Loaded class com.alexecollins.docker.orchestration.plugin.virtualbox.Boot
2DockerPlugin plugin
[INFO] Starting postgresql
[INFO] Container already running
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 39.980 s
[INFO] Finished at: 2015-04-30T08:36:56-04:00
[INFO] Final Memory: 21M/153M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.alexecollins.docker:docker-maven-plugin:2.8.4
:start (default-cli) on project workfusion-application: exit code 1, VBoxManage.
exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments are invalid (
extended info not available) VBoxManage.exe: error: Context: "RemoveRedirect(Bst
r(a->argv[3]).raw())" at line 523 of file VBoxManageControlVM.cpp -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal c
om.alexecollins.docker:docker-maven-plugin:2.8.4:start (default-cli) on project
workfusion-application: exit code 1, VBoxManage.exe: error: Code E_INVALIDARG (0
x80070057) - One or more arguments are invalid (extended info not available) VBo
xManage.exe: error: Context: "RemoveRedirect(Bstr(a->argv[3]).raw())" at line 52
3 of file VBoxManageControlVM.cpp
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: org.apache.maven.plugin.MojoExecutionException: exit code 1, VBoxMana
ge.exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments are invali
d (extended info not available) VBoxManage.exe: error: Context: "RemoveRedirect(
Bstr(a->argv[3]).raw())" at line 523 of file VBoxManageControlVM.cpp
at com.alexecollins.docker.mojo.AbstractDockerMojo.execute(AbstractDocke
rMojo.java:144)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:208)
... 20 more
Caused by: java.lang.RuntimeException: exit code 1, VBoxManage.exe: error: Code
E_INVALIDARG (0x80070057) - One or more arguments are invalid (extended info not
available) VBoxManage.exe: error: Context: "RemoveRedirect(Bstr(a->argv[3]).raw
())" at line 523 of file VBoxManageControlVM.cpp
at com.alexecollins.docker.orchestration.plugin.virtualbox.Boot2DockerPl
ugin.exec(Boot2DockerPlugin.java:85)
at com.alexecollins.docker.orchestration.plugin.virtualbox.Boot2DockerPl
ugin.deletePortForward(Boot2DockerPlugin.java:65)
at com.alexecollins.docker.orchestration.plugin.virtualbox.Boot2DockerPl
ugin.quietlyDeletePortForward(Boot2DockerPlugin.java:56)
at com.alexecollins.docker.orchestration.plugin.virtualbox.Boot2DockerPl
ugin.started(Boot2DockerPlugin.java:36)
at com.alexecollins.docker.orchestration.DockerOrchestrator.start(Docker
Orchestrator.java:271)
at com.alexecollins.docker.orchestration.DockerOrchestrator.start(Docker
Orchestrator.java:546)
at com.alexecollins.docker.mojo.StartMojo.doExecute(StartMojo.java:17)
at com.alexecollins.docker.mojo.AbstractDockerMojo.execute(AbstractDocke
rMojo.java:142)
... 22 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

@alexec alexec added the bug label Apr 30, 2015
@alexec
Copy link
Owner

alexec commented Apr 30, 2015

Hi,

The plugin run VBoxManage in the console. You should be able can get the output from this command using Maven's -X flag. Do you think you can please do this, and then see if the error still occurs when you run it in cmd.exe?

Thank you,

Alex

@ntrvic
Copy link
Author

ntrvic commented Apr 30, 2015

Hi,
Thanks for getting back so quickly. Here is the output of that command:

C:\Users\CCS_Toshiba\Documents\trunk-r23686-docker>VBoxManage controlvm boot2doc
ker-vm natpf1 delete 5432
VBoxManage.exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments ar
e invalid (extended info not available)
VBoxManage.exe: error: Context: "RemoveRedirect(Bstr(a->argv[3]).raw())" at line
523 of file VBoxManageControlVM.cpp

Thanks,
Victor

@alexec
Copy link
Owner

alexec commented Apr 30, 2015

Can you please run

VBoxManage controlvm boot2docker-vm natpf1 5432,tcp,127.0.0.1,5432,,5432

@ntrvic
Copy link
Author

ntrvic commented Apr 30, 2015

screen shot 2015-04-30 at 11 36 44 am

@ntrvic
Copy link
Author

ntrvic commented Apr 30, 2015

refreshed my environment and tried again ... this is what I got:

C:\Users\victor>VBoxManage controlvm boot2docker-vm natpf1 5432,tcp,127.0.0.1,54
32,,5432

C:\Users\victor>VBoxManage controlvm boot2docker-vm natpf1 5432,tcp,127.0.0.1,54
32,,5432
VBoxManage.exe: error: A NAT rule of this name already exists
VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component NATEng
ine, interface INATEngine, callee IUnknown
VBoxManage.exe: error: Context: "AddRedirect(Bstr(strName).raw(), proto, Bstr(st
rHostIp).raw(), RTStrToUInt16(strHostPort), Bstr(strGuestIp).raw(), RTStrToUInt1
6(strGuestPort))" at line 562 of file VBoxManageControlVM.cpp

C:\Users\victor>

@ntrvic
Copy link
Author

ntrvic commented Apr 30, 2015

to add to that(sometimes it fails sometimes it doesn't):

C:\Users\victor> VBoxManage controlvm boot2docker-vm natpf1 delete 5432
VBoxManage.exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments ar
e invalid (extended info not available)
VBoxManage.exe: error: Context: "RemoveRedirect(Bstr(a->argv[3]).raw())" at line
511 of file VBoxManageControlVM.cpp

C:\Users\victor>VBoxManage controlvm boot2docker-vm natpf1 5432,tcp,127.0.0.1,54
32,,5432

C:\Users\victor>VBoxManage controlvm boot2docker-vm natpf1 5432,tcp,127.0.0.1,54
32,,5432
VBoxManage.exe: error: A NAT rule of this name already exists
VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component NATEng
ine, interface INATEngine, callee IUnknown
VBoxManage.exe: error: Context: "AddRedirect(Bstr(strName).raw(), proto, Bstr(st
rHostIp).raw(), RTStrToUInt16(strHostPort), Bstr(strGuestIp).raw(), RTStrToUInt1
6(strGuestPort))" at line 562 of file VBoxManageControlVM.cpp

C:\Users\victor> VBoxManage controlvm boot2docker-vm natpf1 delete 5432

C:\Users\victor> VBoxManage controlvm boot2docker-vm natpf1 delete 5432
VBoxManage.exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments ar
e invalid (extended info not available)
VBoxManage.exe: error: Context: "RemoveRedirect(Bstr(a->argv[3]).raw())" at line
511 of file VBoxManageControlVM.cpp

C:\Users\victor>

@ntrvic
Copy link
Author

ntrvic commented Apr 30, 2015

so as long as I run VBoxManage controlvm boot2docker-vm natpf1 5432,tcp,127.0.0.1,5432,,5432 for every port before I run mvn docker:start, everything works.

@alexec
Copy link
Owner

alexec commented Apr 30, 2015

I think we need to be more tolerant of the error on Windows. Can you try the latest version with mvn -U

@ntrvic
Copy link
Author

ntrvic commented Apr 30, 2015

Running mvn -U docker:clean -N -X got the following error:

[DEBUG] Executing VBoxManage controlvm boot2docker-vm natpf1 delete 8080
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.560 s
[INFO] Finished at: 2015-04-30T12:04:56-07:00
[INFO] Final Memory: 17M/242M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.alexecollins.docker:docker-maven-plugin:2.8.4
:clean (default-cli) on project workfusion-application: exit code 1, VBoxManage.
exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments are invalid (
extended info not available) VBoxManage.exe: error: Context: "RemoveRedirect(Bst
r(a->argv[3]).raw())" at line 511 of file VBoxManageControlVM.cpp -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal c
om.alexecollins.docker:docker-maven-plugin:2.8.4:clean (default-cli) on project
workfusion-application: exit code 1, VBoxManage.exe: error: Code E_INVALIDARG (0
x80070057) - One or more arguments are invalid (extended info not available) VBo
xManage.exe: error: Context: "RemoveRedirect(Bstr(a->argv[3]).raw())" at line 51
1 of file VBoxManageControlVM.cpp
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: org.apache.maven.plugin.MojoExecutionException: exit code 1, VBoxMana
ge.exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments are invali
d (extended info not available) VBoxManage.exe: error: Context: "RemoveRedirect(
Bstr(a->argv[3]).raw())" at line 511 of file VBoxManageControlVM.cpp
at com.alexecollins.docker.mojo.AbstractDockerMojo.execute(AbstractDocke
rMojo.java:144)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:208)
... 20 more
Caused by: java.lang.RuntimeException: exit code 1, VBoxManage.exe: error: Code
E_INVALIDARG (0x80070057) - One or more arguments are invalid (extended info not
available) VBoxManage.exe: error: Context: "RemoveRedirect(Bstr(a->argv[3]).raw
())" at line 511 of file VBoxManageControlVM.cpp
at com.alexecollins.docker.orchestration.plugin.virtualbox.Boot2DockerPl
ugin.exec(Boot2DockerPlugin.java:85)
at com.alexecollins.docker.orchestration.plugin.virtualbox.Boot2DockerPl
ugin.deletePortForward(Boot2DockerPlugin.java:65)
at com.alexecollins.docker.orchestration.plugin.virtualbox.Boot2DockerPl
ugin.quietlyDeletePortForward(Boot2DockerPlugin.java:56)
at com.alexecollins.docker.orchestration.plugin.virtualbox.Boot2DockerPl
ugin.stopped(Boot2DockerPlugin.java:50)
at com.alexecollins.docker.orchestration.DockerOrchestrator.stop(DockerO
rchestrator.java:512)
at com.alexecollins.docker.orchestration.DockerOrchestrator.clean(Docker
Orchestrator.java:125)
at com.alexecollins.docker.mojo.CleanMojo.doExecute(CleanMojo.java:16)
at com.alexecollins.docker.mojo.AbstractDockerMojo.execute(AbstractDocke
rMojo.java:142)
... 22 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

I also noticed that even after removing the port forwarding dependency plugin, my containers started properly.

@alexec
Copy link
Owner

alexec commented Apr 30, 2015

Ah - you need to use the latest SNAPSHOT vernios (2.8.5-SNAPSHOT)

@ntrvic
Copy link
Author

ntrvic commented Apr 30, 2015

Do you mean for the >docker-maven-plugin or >docker-java-orchestration-plugin?

@alexec
Copy link
Owner

alexec commented Apr 30, 2015

I actually mean both - 2.8.6-SNAPSHOT is now the latest.

@ntrvic
Copy link
Author

ntrvic commented Apr 30, 2015

Does this look correct?

com.alexecollins.docker
docker-maven-plugin

            <configuration>
                <version>2.8.6-SNAPSHOT</version>
                <cache>true</cache>
                <!-- (optional) exclude certain images -->
                <!--<exclude>app,mysql</exclude>-->
            </configuration>
            <dependencies>
                <dependency>
                    <!-- set-up port forwarding if you're using boot2docker -->
                    <groupId>com.alexecollins.docker</groupId>
                    <artifactId>docker-java-orchestration-plugin-boot2docker</artifactId>
                    <version>2.8.6-SNAPSHOT</version>
                </dependency>
            </dependencies>
        </plugin>

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.924 s
[INFO] Finished at: 2015-04-30T14:20:20-07:00
[INFO] Final Memory: 24M/244M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.alexecollins.docker:docker-maven-plugin:2.8.4
:clean (default-cli) on project workfusion-application: 404 page not found -> [H
elp 1]

@alexec
Copy link
Owner

alexec commented May 1, 2015

Yes. But 2.8.4 is still in these somewhere.

@ntrvic
Copy link
Author

ntrvic commented May 1, 2015

Tried moving the version around... seems it cannot find 2.8.6-SNAPSHOT

WARNING] The POM for com.alexecollins.docker:docker-maven-plugin:jar:2.8.6-SNAPSHOT is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for com.alexecollins.docker:docker-maven-plugin:2.8.6-SNAPSHOT: Plugin com.alexecollins.docker:docker-maven-plugin:2.8.6-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact com.alexecollins.docker:docker-maven-plugin:jar:2.8.6-SNAPSHOT
org.apache.maven.plugin.PluginResolutionException: Plugin com.alexecollins.docker:docker-maven-plugin:2.8.6-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact com.alexecollins.docker:docker-maven-plugin:jar:2.8.6-SNAPSHOT
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:133)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:148)
at org.apache.maven.plugin.DefaultBuildPluginManager.loadPlugin(DefaultBuildPluginManager.java:81)
at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:138)
at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:121)
at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:85)
at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:260)
at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:220)
at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:103)
at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:83)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:85)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact com.alexecollins.docker:docker-maven-plugin:jar:2.8.6-SNAPSHOT
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:239)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:295)
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:129)
... 29 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact com.alexecollins.docker:docker-maven-plugin:jar:2.8.6-SNAPSHOT
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:449)
... 33 more
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (/Users/victor/.m2/repository)
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (/Users/victor/.m2/repository)
[DEBUG] Using connector WagonRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using connector WagonRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 13.8 KB/sec)
[DEBUG] Writing tracking file /Users/victor/.m2/repository/org/apache/maven/plugins/resolver-status.properties
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 21.3 KB/sec)
[DEBUG] Writing tracking file /Users/victor/.m2/repository/org/codehaus/mojo/resolver-status.properties
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (/Users/victor/.m2/repository)
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (/Users/victor/.m2/repository)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.710 s
[INFO] Finished at: 2015-05-01T09:28:24-04:00
[INFO] Final Memory: 10M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'docker' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/victor/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'docker' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/victor/.m2/repository), central (https://repo.maven.apache.org/maven2)]
at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:93)
at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:260)
at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:220)
at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:103)
at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:83)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:85)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

Process finished with exit code 1

@alexec
Copy link
Owner

alexec commented May 1, 2015

Please add this to you pom:


    <repositories>
        <repository>
            <id>sonatype-snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

    <pluginRepositories>
        <pluginRepository>
            <id>sonatype-snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>

@ntrvic
Copy link
Author

ntrvic commented May 13, 2015

still picking up 2.8.4

[ERROR] Failed to execute goal com.alexecollins.docker:docker-maven-plugin:2.8.4:start (default-cli)
on project workfusion-application: 404 page not found -> [Help 1]

@ntrvic ntrvic closed this as completed May 13, 2015
@ntrvic ntrvic reopened this May 13, 2015
@alexec
Copy link
Owner

alexec commented May 13, 2015

Can you set the version in your pom to 2.8.6-SNAPSHOT?

@ntrvic
Copy link
Author

ntrvic commented May 20, 2015

Alex, sorry for the long delay. It appears to hang after starting the container. I stopped and reran with debug mode and it is hanging on this line:

[INFO] Container already running
[DEBUG] Executing VBoxManage showvminfo boot2docker-vm --details

How can I get you more info?

@alexec
Copy link
Owner

alexec commented May 26, 2015

Could you execute VBoxManage showvminfo boot2docker-vm --details in a command line and paste the output?

@alexec alexec closed this as completed Jun 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants