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

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
Labels

Comments

@JotBePunkt
Copy link

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>
@alexec
Copy link
Owner

alexec commented Dec 7, 2014

Hi,

Can you attach your conf.yml?

Alex

@alexec alexec added the bug label Dec 18, 2014
@alexec alexec closed this as completed Jan 27, 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