You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can not instantiate value of type [simple type, class com.alexecollins.docker.orchestration.model.Packaging] from String value (''); no single-String constructor/factory method
#35
Closed
JotBePunkt opened this issue
Dec 1, 2014
· 1 comment
I’m trying to build my docker image with your plugin. I’ll get the following error when I try to build the image, which seems to be a bug:
[INFO] 1 * Sending client request on thread main
1 > GET http://localhost:2375/v1.13/version
1 > Accept: application/json
[INFO] 2 * Client response received on thread main
2 < 200
2 < Content-Length: 148
2 < Content-Type: application/json
2 < Date: Mon, 01 Dec 2014 10:22:33 GMT
2 < Job-Name: version
{"ApiVersion":"1.15","Arch":"amd64","GitCommit":"39fa2fa","GoVersion":"go1.3.3","KernelVersion":"3.13.0-40-generic","Os":"linux","Version":"1.3.2"}
[INFO] Docker version 1.3.2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.246 s
[INFO] Finished at: 2014-12-01T11:22:33+01:00
[INFO] Final Memory: 24M/273M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "default" could not be activated because it does not exist.
[ERROR] Failed to execute goal com.alexecollins.docker:docker-maven-plugin:2.2.0:package (push) on project rsp-docker: com.fasterxml.jackson.databind.JsonMappingException: Can not
instantiate value of type [simple type, class com.alexecollins.docker.orchestration.model.Packaging] from String value (''); no single-String constructor/factory method
[ERROR] at [Source: com.alexecollins.docker.orchestration.util.TokenReplacingReader@4860827a; line: 2, column: 11] (through reference chain: com.alexecollins.docker.orchestration.m
odel.Conf["packaging"])
[ERROR] -> [Help 1]
[ERROR]
Here is a sniplet from my POM:
<build>
<plugins>
<plugin>
<groupId>com.alexecollins.docker</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>2.2.0</version>
<configuration>
<!-- your installed version -->
<version>1.13</version>
<!-- change here if you are using another port/host, e.g. 4243 -->
<host>http://localhost:2375</host>
<!-- if you need to run over SSL, change this -->
<dockerCertPath>${user.home}/.docker</dockerCertPath>
<!-- remove images created by Dockerfile -->
<removeIntermediateImages>true</removeIntermediateImages>
<!-- do/do not cache images (default true), disable to get the freshest images -->
<cache>true</cache>
</configuration>
<executions>
<execution>
<id>push</id>
<phase>compile</phase>
<goals>
<goal>package</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.alexecollins.docker</groupId>
<artifactId>docker-java-orchestration-plugin-boot2docker</artifactId>
<version>2.2.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
The text was updated successfully, but these errors were encountered:
I’m trying to build my docker image with your plugin. I’ll get the following error when I try to build the image, which seems to be a bug:
Here is a sniplet from my POM:
The text was updated successfully, but these errors were encountered: