Open maxandersen opened 1 year ago
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.
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.
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?