-
Notifications
You must be signed in to change notification settings - Fork 644
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
Building 'spring-boot-with-jib' sample fails with NoSuchMethodError #1384
Milestone
Comments
Do you face same issue on 0.34.0? I think #1378 broke jib support |
Would you like to create a PR to fix this? |
@rohanKanojia On 0.34.0 the issue indeed doesn't occur. |
@calohmn : ohk, let me try to find time to provide a fix and integration test so that it doesn't happen in future. |
rohanKanojia
added a commit
to rohanKanojia/docker-maven-plugin
that referenced
this issue
Oct 2, 2020
…thodEror + Updating jib-core to 0.15.0 broke our current JIB support due to incompatibility with httpclient. Updated apache httpclient to 4.5.10 + Somehow behavior of Jib setting ImageFormat has been changed(maybe it was not working earlier. Introduced a new parameter in mojo `docker.build.jib.imageFormat` to allow users specify image format(OCI or Docker) with Docker as default ImageFormat. + Minor Cleanup in Integration tests; Added an integration test for JIB mode which builds image tarball and verifies it by loading into docker daemon This should also fix fabric8io#1385
rohanKanojia
added a commit
to rohanKanojia/docker-maven-plugin
that referenced
this issue
Oct 2, 2020
…thodEror + Updating jib-core to 0.15.0 broke our current JIB support due to incompatibility with httpclient. Updated apache httpclient to 4.5.10 + Somehow behavior of Jib setting ImageFormat has been changed(maybe it was not working earlier. Introduced a new parameter in mojo `docker.build.jib.imageFormat` to allow users specify image format(OCI or Docker) with Docker as default ImageFormat. + Minor Cleanup in Integration tests; Added an integration test for JIB mode which builds image tarball and verifies it by loading into docker daemon This should also fix fabric8io#1385
rohanKanojia
added a commit
to rohanKanojia/docker-maven-plugin
that referenced
this issue
Oct 2, 2020
…thodEror + Updating jib-core to 0.15.0 broke our current JIB support due to incompatibility with httpclient. Updated apache httpclient to 4.5.10 + Somehow behavior of Jib setting ImageFormat has been changed(maybe it was not working earlier. Introduced a new parameter in mojo `docker.build.jib.imageFormat` to allow users specify image format(OCI or Docker) with Docker as default ImageFormat. + Minor Cleanup in Integration tests; Added an integration test for JIB mode which builds image tarball and verifies it by loading into docker daemon This should also fix fabric8io#1385
rohanKanojia
added a commit
to rohanKanojia/docker-maven-plugin
that referenced
this issue
Oct 2, 2020
…thodEror + Updating jib-core to 0.15.0 broke our current JIB support due to incompatibility with httpclient. Updated apache httpclient to 4.5.10 + Somehow behavior of Jib setting ImageFormat has been changed(maybe it was not working earlier. Introduced a new parameter in mojo `docker.build.jib.imageFormat` to allow users specify image format(OCI or Docker) with Docker as default ImageFormat. + Minor Cleanup in Integration tests; Added an integration test for JIB mode which builds image tarball and verifies it by loading into docker daemon This should also fix fabric8io#1385
rohanKanojia
added a commit
to rohanKanojia/docker-maven-plugin
that referenced
this issue
Oct 2, 2020
…thodEror + Updating jib-core to 0.15.0 broke our current JIB support due to incompatibility with httpclient. Updated apache httpclient to 4.5.10 + Somehow behavior of Jib setting ImageFormat has been changed(maybe it was not working earlier. Introduced a new parameter in mojo `docker.build.jib.imageFormat` to allow users specify image format(OCI or Docker) with Docker as default ImageFormat. + Minor Cleanup in Integration tests; Added an integration test for JIB mode which builds image tarball and verifies it by loading into docker daemon This should also fix fabric8io#1385
rohanKanojia
added a commit
to rohanKanojia/docker-maven-plugin
that referenced
this issue
Oct 2, 2020
…thodEror + Updating jib-core to 0.15.0 broke our current JIB support due to incompatibility with httpclient. Updated apache httpclient to 4.5.10 + Somehow behavior of Jib setting ImageFormat has been changed(maybe it was not working earlier. Introduced a new parameter in mojo `docker.build.jib.imageFormat` to allow users specify image format(OCI or Docker) with Docker as default ImageFormat. + Minor Cleanup in Integration tests; Added an integration test for JIB mode which builds image tarball and verifies it by loading into docker daemon This should also fix fabric8io#1385
rhuss
added a commit
that referenced
this issue
Oct 10, 2020
…1386) + Updating jib-core to 0.15.0 broke our current JIB support due to incompatibility with httpclient. Updated apache httpclient to 4.5.10 + Somehow behavior of Jib setting ImageFormat has been changed(maybe it was not working earlier. Introduced a new parameter in mojo `docker.build.jib.imageFormat` to allow users specify image format(OCI or Docker) with Docker as default ImageFormat. + Minor Cleanup in Integration tests; Added an integration test for JIB mode which builds image tarball and verifies it by loading into docker daemon This should also fix #1385 Co-authored-by: Roland Huß <roland@ro14nd.de>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When going through the Spring Boot Sample with JIB Build Mode page and running
mvn docker:build
, building the image fails with aNoSuchMethodError
:Full stack trace
In the pom of the 'spring-boot-with-jib' sample, the d-m-p version is set to "0.33-SNAPSHOT". I've set the version to 0.34.1 and alternatively 0.34-SNAPSHOT and got the above error.
In GoogleContainerTools/jib#2321, the same exception is described, pointing to a conflict concerning the
org.apache.httpcomponents:httpclient
dependency.It looks like the version in d-m-p
is in conflict with the one in
com.google.cloud.tools:jib-core:0.15.0
(4.5.10).Changing the above dependency to version
4.5.10
seems to fix the above problem.Info
mvn -v
) : 3.6.0The text was updated successfully, but these errors were encountered: