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
Both are, in this case, in the same version (which never happened before).
If I run the application, I end up with ClassNotFoundException.
If I dig a little in the application, I can see the following results:
> $ docker run -it --entrypoint=/busybox/sh --rm my-custom-image:1.2.3
~ $ ls /app/libs/ | grep rest-client
rest-client-2.0.0-187729.jar
rest-client-2.0.0-54224.jar
~ $ cat /app/jib-classpath-file | sed 's/:/\n/g'| grep rest-client
/app/libs/rest-client-2.0.0.jar
/app/libs/rest-client-2.0.0.jar
To sumarize, jib is working well at lib level to add a suffix at the end of the jar in the /app/libs folder to avoid a filename clash at filesystem level.
But, if we look at the /app/jib-classpath-file to represent the classpath for our app, the hash is not integrated and none of the dependency can be resolved by our app leading to a ClassNotFoundException.
The expected behavoir would be to launch the app with the correct classpath, so to generate correctly the /app/jib-classpath-file.
If you need more information, let me know 😇.
The text was updated successfully, but these errors were encountered:
davinkevin
changed the title
Classpath file (/app/jib-classpath-file) doesn't match libs folder if library has the same artifactId/version
Classpath file (/app/jib-classpath-file) doesn't match libs folder if libraries have same artifactId/version
Jul 1, 2021
Environment:
Description of the issue:
In our project, we have two dependencies with the
groupId
as only difference:Both are, in this case, in the same version (which never happened before).
If I run the application, I end up with
ClassNotFoundException
.If I dig a little in the application, I can see the following results:
To sumarize,
jib
is working well at lib level to add a suffix at the end of thejar
in the/app/libs
folder to avoid a filename clash at filesystem level.But, if we look at the
/app/jib-classpath-file
to represent the classpath for our app, the hash is not integrated and none of the dependency can be resolved by our app leading to aClassNotFoundException
.The expected behavoir would be to launch the app with the correct classpath, so to generate correctly the
/app/jib-classpath-file
.If you need more information, let me know 😇.
The text was updated successfully, but these errors were encountered: