Code Monkey home page Code Monkey logo

Failed to execute goal org.jolokia:docker-maven-plugin:0.10.4:build (default-cli) on project dlr-parent: Unable to parse configuration of mojo org.jolokia:docker-maven-plugin:0.10.4:build: Error loading class 'org.jolokia.docker.maven.Image' about docker-maven-plugin HOT 8 CLOSED

algkebab avatar algkebab commented on May 18, 2024
Failed to execute goal org.jolokia:docker-maven-plugin:0.10.4:build (default-cli) on project dlr-parent: Unable to parse configuration of mojo org.jolokia:docker-maven-plugin:0.10.4:build: Error loading class 'org.jolokia.docker.maven.Image'

from docker-maven-plugin.

Comments (8)

algkebab avatar algkebab commented on May 18, 2024

this is how plugin is configured:

            <plugin>
                <groupId>org.jolokia</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <version>${docker.plugin.version}</version>
                <configuration>
                    <dockerHost>${docker.local.host}</dockerHost>
                    <images>
                        <image>
                            <name>${docker.image.location}:${project.version}</name>
                            <build>
                                <from>${docker.image.location}</from>
                                <exportDir>${docker.container.name}</exportDir>
                                <assemblyDescriptor>
                                    ${basedir}/src/main/docker/docker-assembly.xml
                                </assemblyDescriptor>
                                <command>java -jar /maven/dlr-application-${project.version}.jar</command>
                            </build>
                        </image>
                    </images>
                    <authConfig>
                        <username>${docker.registry.username}</username>
                        <password>${docker.registry.password}</password>
                    </authConfig>
                </configuration>
            </plugin>

from docker-maven-plugin.

rhuss avatar rhuss commented on May 18, 2024

That's interesting because there is indeed no class org.jolokia.docker.maven.Image so I'm wondering where this come from. Can you tell me what version of Maven do you use on Jenkins ? Could you try also to let Maven run with -X in order to get more debug information ?

from docker-maven-plugin.

algkebab avatar algkebab commented on May 18, 2024

Maven version: 3.0.1
JDK: jdk1.8.0_20

and this is the jenkins output:

[ERROR] Failed to execute goal org.jolokia:docker-maven-plugin:0.10.4:build (default-cli) on project dlr-parent: Unable to parse configuration of mojo org.jolokia:docker-maven-plugin:0.10.4:build: Error loading class 'org.jolokia.docker.maven.Image' -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jolokia:docker-maven-plugin:0.10.4:build (default-cli) on project dlr-parent: Unable to parse configuration of mojo org.jolokia:docker-maven-plugin:0.10.4:build: Error loading class 'org.jolokia.docker.maven.Image'
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginConfigurationException: Unable to parse configuration of mojo org.jolokia:docker-maven-plugin:0.10.4:build: Error loading class 'org.jolokia.docker.maven.Image'
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:564)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:496)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:96)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
... 19 more
Caused by: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Error loading class 'org.jolokia.docker.maven.Image'
at org.codehaus.plexus.component.configurator.converters.composite.CollectionConverter.fromConfiguration(CollectionConverter.java:174)
at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:260)
at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:534)
... 22 more
Caused by: java.lang.ClassNotFoundException: org.jolokia.docker.maven.Image
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
at org.codehaus.plexus.component.configurator.converters.composite.CollectionConverter.fromConfiguration(CollectionConverter.java:161)
... 26 more

from docker-maven-plugin.

rhuss avatar rhuss commented on May 18, 2024

I have an idea what it could be (probably the way how de-serialization of plugin configuration works). Are you able to try a new Maven version ? I.e. I tested it with Maven 3.2.3 but any Maven 3.2.x should do it.

from docker-maven-plugin.

algkebab avatar algkebab commented on May 18, 2024

just checked. I used maven 3.2.3 locally and locally it works perfectly

from docker-maven-plugin.

rhuss avatar rhuss commented on May 18, 2024

So its really because of the Maven version. I will check out what changed and try to find a solution for older Maven versions (or at least document that it only works for Maven >= 3.2). The workaround in the meantime is of course is to use Maven 3.2 (should be easy to install in Jenkins, too).

from docker-maven-plugin.

algkebab avatar algkebab commented on May 18, 2024

Thank you very much.
The speed of your support is really impressive.
Now everything works also with Jenkins. :)

from docker-maven-plugin.

rhuss avatar rhuss commented on May 18, 2024

I'll close that one. Please feel free to reopen if there is still an issue.

from docker-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.