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
I run into the following exception with the maven-kubernetes-plugin:
> mvn -e clean install
...
rg.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.jkube:kubernetes-maven-plugin:1.11.0:build (docker-build-app) on project kubernetes-sample: A type incompatibility occurred while executing org.eclipse.jkube:kubernetes-maven
-plugin:1.11.0:build: class java.util.HashMap cannot be cast to class java.lang.String (java.util.HashMap and java.lang.String are in module java.base of loader 'bootstrap')
...
Caused by: java.lang.ClassCastException: class java.util.HashMap cannot be cast to class java.lang.String (java.util.HashMap and java.lang.String are in module java.base of loader 'bootstrap')
at org.eclipse.jkube.kit.common.util.MavenConfigurationExtractor.addAsList (MavenConfigurationExtractor.java:73)
at org.eclipse.jkube.kit.common.util.MavenConfigurationExtractor.getElement (MavenConfigurationExtractor.java:54)
at org.eclipse.jkube.kit.common.util.MavenConfigurationExtractor.getElement (MavenConfigurationExtractor.java:59)
at org.eclipse.jkube.kit.common.util.MavenConfigurationExtractor.getElement (MavenConfigurationExtractor.java:59)
at org.eclipse.jkube.kit.common.util.MavenConfigurationExtractor.getElement (MavenConfigurationExtractor.java:59)
at org.eclipse.jkube.kit.common.util.MavenConfigurationExtractor.extract (MavenConfigurationExtractor.java:41)
at org.eclipse.jkube.kit.common.util.MavenUtil.getPlugins (MavenUtil.java:73)
at org.eclipse.jkube.kit.common.util.MavenUtil.convertMavenProjectToJKubeProject (MavenUtil.java:205)
at org.eclipse.jkube.maven.plugin.mojo.build.AbstractDockerMojo.doExecute (AbstractDockerMojo.java:434)
at org.eclipse.jkube.maven.plugin.mojo.build.AbstractDockerMojo.execute (AbstractDockerMojo.java:413)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
Describe the bug
I run into the following exception with the maven-kubernetes-plugin:
Maven-Version:
Eclipse JKube version
1.11.0
Component
Kubernetes Maven Plugin
Apache Maven version
other (please specify in additional context)
Gradle version
None
Steps to reproduce
mvn install
The
<module name="RedundantImport"/>
causes the exception. When I change it tothen the exception does no longer occur.
Expected behavior
The configuration of the checkstyle-maven-plugin is a valid Maven configuration.
The kubernetes-maven-plugin should work with such a configuration
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.25.3
Environment
Windows
Eclipse JKube Logs
No response
Sample Reproducer Project
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: