-
Notifications
You must be signed in to change notification settings - Fork 57
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
Manifest of org.glassfish.hk2/hk2 generates false warnings #462
Comments
Furthermore the error is strange:
It should not be Maybe there's something wrong in the MANIFEST? |
Indeed the problem is in the MANIFEST. You use Anyway, the error displayed is not blocking, since the required packages are anyway downloaded (I don't know how...). Example from https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-jaxb-annotations/2.9.9
|
Looking at the pom, I don't see anything wrong with the dependencies at first glance: http://repo1.maven.org/maven2/org/glassfish/hk2/hk2/2.5.0-b42/hk2-2.5.0-b42.pom The entries in the generated class-path are correct, they don't have the version because that's how it's stated in the maven-jar-plugin configuration of the pom:
Note that this artifact does not contain any code, it's more like a meta-module or meta-bundle that exposes HK2 as a module, it should probably not be included in your app.
|
For info, I ran into this too; specifically I was getting this on starting the application: The Class-Path manifest attribute in /Users/joseph/.m2/repository/org/glassfish/hk2/hk2/2.5.0-b42/hk2-2.5.0-b42.jar referenced one or more files that do not exist: file:/Users/joseph/.m2/repository/org/glassfish/hk2/hk2/2.5.0-b42/hk2-utils.jar,file:/Users/joseph/.m2/repository/org/glassfish/hk2/hk2/2.5.0-b42/javax.annotation-api.jar,file:/Users/joseph/.m2/repository/org/glassfish/hk2/hk2/2.5.0-b42/javax.inject.jar,file:/Users/joseph/.m2/repository/org/glassfish/hk2/hk2/2.5.0-b42/hk2-api.jar in this project: https://gitlab.com/openid/conformance-suite I discovered that upgrading to SpringBoot 2.2.0 (previously using 2.1.5) seems to stop the warning appearing. |
This avoids an annoying warning (and some unhelpful exceptions thrown & caught) on starting the app: eclipse-ee4j/glassfish-hk2#462 but probably also pulls in some security & other fixes, and generally staying up to date seems like a good plan if it doesn't break anything.
This avoids an annoying warning (and some unhelpful exceptions thrown & caught) on starting the app: eclipse-ee4j/glassfish-hk2#462 but probably also pulls in some security & other fixes, and generally staying up to date seems like a good plan if it doesn't break anything.
Sadly I was mistaken; upgrading to springboot 2.2.0 just made the error appear in a subtly different form/place; I still get:
This is from building+running https://gitlab.com/openid/conformance-suite in IntellIiJ - dependency tree here: https://gist.github.com/jogu/5c51b8368c45c04af43eecd6fe3d74f0 Project is packaged as a jar. @romain-grecourt I think that answers all your questions; please let me know if there's any further questions. |
i think its something to do with spring boot devtools, I am getting:
My dependencies are just the default:
|
EDIT: see comment number 3
I'm using a Spring Boot 2 application that needs
hk2
version 2.5.0-b42 as dependency. Gradle 5.4.1 downloadshk2.jar
without problems, but not its dependencies. This happens only withhk2
. It does not work also with version 2.5.0.I checked on internet and there's people that have this problem with this library with maven too. One example:
https://stackoverflow.com/questions/54151711/the-class-path-manifest-attribute-in-path-referenced-one-or-more-files-that-do-n
EDIT: I also tried to explicitly set the dependencies, and also to change from Maven Central to JCenter, but nothing. I think for the moment I have to download them manually.
The text was updated successfully, but these errors were encountered: