-
Notifications
You must be signed in to change notification settings - Fork 10
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
ap-loader-all in maven not the same as the released #7
Comments
Both should be different, as the maven package does not contain the project-dir dependency. The JARs from GitHub are usually built from snapshots, then released later on maven central (albeit I release them rather often). Does this help you? |
okey - it just means the ap-loader in maven central can't be used as agent and that the github jar says SNAPSHOT in them. Thus for the jbang-catalog discussed in #6 I would need to use the github released jar not the maven central one. |
You could use the maven JAR if you put the dependency on the class path. It might be a bug that the GitHub JAR says SNAPSHOT. |
Javaagent only allows one jar. And yes, could add to classpath it pollutes the applications classpath. Second best option is boot classpath but that is a non-public openjdk feature. So don't really see a way to use the agent unless using the GitHub releases where the necessary dependencies are included. |
I've been trying to use ap-loader-* artifacts from maven but afaics the released jar's from github release page and the maven central jars are NOT the same.
Resulting in this error using the maven jars:
Using the downloaded jar works fine so I tried to compare them and notice that the released jars has
dev/dirs
embedded but the ones in maven central does not.There is also native image config missing and the manifest.mf is slightly different:
Is there a reason for this difference?
The text was updated successfully, but these errors were encountered: