Community
Participate
Working Groups
Per the discussion on the equinox-dev mailing list referenced in the URL above: At present, EclipseStarter.searchFor() looks for JAR files given some target name, which can be o the entire file name o the file's base name minus the ".jar" extension o the prefix of a base name, followed by an underscore that introduces a version tuple The third one is clever and convenient, but I found that it conflicts with Maven's preferred JAR naming scheme. Maven separates the artifactId from the version tuple by a dash or hyphen. With the small change attached, we could use Maven-generated artifacts named by their artifactId and have them properly discovered.
Created attachment 59090 [details] Adds a hyphen to the expected underscore separating JAR file base name and version. This patch needs to be reformatted to fix up the tabs v. spaces inconsistency.
Note that there is similar code in org.eclipse.equinox.launcher.Main.searchFor() and findMax(). There is also a native version in org.eclipse.equinox.executable/library/eclipseCommon.c filter() and findFile(). The one in Main is used to find the osgi framework itself, as well as finding the launcher jar platform fragments. The native one is used to find the launcher jar and its fragments as well as the splash screen.
I think it would be interesting to see if we can accomodate mavin artifacts here. I'm not sure it is as important for the java/native launcher to support this since they typically look for equinox stuff that does not use mavin naming scheme.
Created attachment 62562 [details] patch Here is an updated patch against head.
We are afraid that there will be too many details to handle at this stage.
*** Bug 240018 has been marked as a duplicate of this bug. ***
Hello, After spending several hours on it, I realized I'm running as well against this issue. Any chance Thomas' patch will be applied in next milestone ?
I'll take a look for M4.
Patch released.
Comment on attachment 59090 [details] Adds a hyphen to the expected underscore separating JAR file base name and version. tagging for iplog.