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
The classpath generated when launching a Maven application in Eclipse using a WO Launch configuration vs. when starting it as a regular java application is different. Most notably, when started as a WO application it seems:
dependency exclusions are not respected
dependency versions are not overridden (i.e. if I have a dependency on a library and there's a transient dependency on an older version of the same library, both versions are present in the generated classpath)
the test scope is included in the runtime classpath
This only applies when running from within Eclipse, i.e. the classpath.txt generated by an actual maven build looks like one would expect.
The text was updated successfully, but these errors were encountered:
Replacing the WOLips classpath provider (WORuntimeClasspathProvider) with org.eclipse.m2e.launchconfig.classpathProvider results in a correct (or at least standard/expected) classpath being generated, but results in _NSUtilities.classWithName() having issues with locating some classes from the main bundle, such as Mainand DirectAction. I'm guessing due to some issue with classpath ordering.
Going to pursue this direction and see if it that can be fixed from the WO side.
For the past few days I've been using the regular Java launcher in Eclipse to launch my apps, rather than the WOLips launcher. This means a correct classpath is generated by Eclipse/m2e. Everything seems to work perfectly fine, although two modifications have to be made to the Java launch configuration when it's created.
Add the VM argument -DNSProjectBundleEnabled=true
Set the working dir to ${working_dir_loc_WOLips:[YourProjectName]}
Since this works for me, I'm not going to put any more work into trying to fix the WOLips launcher for now (but I'll not go so far as to close the issue since this is still broken in the WOLips launcher).
The classpath generated when launching a Maven application in Eclipse using a WO Launch configuration vs. when starting it as a regular java application is different. Most notably, when started as a WO application it seems:
This only applies when running from within Eclipse, i.e. the classpath.txt generated by an actual maven build looks like one would expect.
The text was updated successfully, but these errors were encountered: