<p>I'm trying to generate my Kubernetes manifests (<code>deployment.yml</code> and <code>service.yml</code>) using <a href="https://www.eclipse.org/jkube/" rel="nofollow noreferrer">JKube</a> via this command : <code>mvn k8s:resource</code></p>
<p>But I'm getting this error :</p>
<pre><code>[INFO] Scanning for projects...
[INFO] 
[INFO] -------------------&lt; io.social.carpooling:trips-api &gt;-------------------
[INFO] Building trips-api 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- kubernetes-maven-plugin:1.1.1:resource (default-cli) @ trips-api ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.979 s
[INFO] Finished at: 2021-03-18T19:11:24+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.jkube:kubernetes-maven-plugin:1.1.1:resource (default-cli) on project trips-api: Execution default-cli of goal org.eclipse.jkube:kubernetes-maven-plugin:1.1.1:resource failed.: NullPointerException -&gt; [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
</code></pre>
<p>Here is what my <code>pom.xml</code> looks like :</p>
<pre><code>&lt;properties&gt;
        ...
        &lt;jkube.version&gt;1.1.1&lt;/jkube.version&gt;
        &lt;jkube.generator.name&gt;my-dockerhub-username/${project.artifactId}:${project.version}&lt;/jkube.generator.name&gt;
        ...
&lt;/properties&gt;
...
&lt;plugin&gt;
            &lt;groupId&gt;org.eclipse.jkube&lt;/groupId&gt;
            &lt;artifactId&gt;kubernetes-maven-plugin&lt;/artifactId&gt;
            &lt;version&gt;${jkube.version}&lt;/version&gt;
            &lt;configuration&gt;
                &lt;images&gt;
                    &lt;image&gt;
                        &lt;name&gt;my-dockerhub-username/${project.artifactId}:${project.version}&lt;/name&gt;
                    &lt;/image&gt;
                &lt;/images&gt;
            &lt;/configuration&gt;
 &lt;/plugin&gt;
</code></pre>
<p>I tried to get more details using the plugin documentation but I didn't found so much.
Is there anyone who successfully generated the yaml files and deployed to Kubernetes cluster.</p>

Ghassen
<p><strong>Update</strong>:</p>
<p>Apparently this was a bug in Eclipse JKube(<a href="https://github.com/eclipse/jkube/issues/624" rel="nofollow noreferrer">eclipse/jkube#624</a>) that wasn't allowing users to configure image name using provided properties in simple Dockerfile mode. This has been fixed in new release <a href="https://repo1.maven.org/maven2/org/eclipse/jkube/kubernetes-maven-plugin/1.2.0/" rel="nofollow noreferrer">v1.2.0</a>.</p>
<p>Now you should be able to configure image name using <code>jkube.generator.name</code>. You don't need to provide XML configuration in order to override default image name. Earlier you're providing XML configuration without any <code>&lt;build&gt;</code> configuration which was causing this NPE. As per <a href="https://www.eclipse.org/jkube/docs/kubernetes-maven-plugin#_image_configuration" rel="nofollow noreferrer">Kuberntes Maven Plugin Documentation</a> this field is mandatory when providing image XML configuration.
configuration
<a href="https://i.stack.imgur.com/4dt5k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4dt5k.png" alt="image configuration docs table" /></a></p>
<p>We're going to fix this NPE(<a href="https://github.com/eclipse/jkube/issues/618" rel="nofollow noreferrer">eclipse/jkube#618</a>) in upcoming releases too so that users can be informed when they don't provide a image build</p>
