Maven Running or Debugging as WO Application

Last modified by David Holt on 2012/09/24 17:47

When running a WO Application in WOLips the following steps currently need to be followed in order for WOLips to resolve components and resources on the classpath.

  1. Follow this tutorial Run or Debug a WO Application. Note, the application may fail to start.
  2. Stop the application and open the run/debug configurationOpenConfigurations.png
  3. Switch to the classpath tabClasspathTab.png
  4. Click on Advanced... selecting FoldersAdvancedOptions.png
  5. Add your application and dependant framework's build/.../'Java' foldersFolderSelection.png
  6. Your results will look something like thisClasspathTabResult.png
Success

Classpath Containers are more convenient

You may find yourself doing the above often and it can become painful. Classpath containers become much more convenient...

  1. Follow up to point 3 above
  2. Click on Advanced... selecting Add Classpath VariablesAdvanced_AddClasspathVariables.png
  3. Click the Configure Variables... button, and for each folder you would have added above define a variable. I've called mine BUNDLE_SOMETHINGClasspathVariablesDefined.png
  4. Now you can select the ones you need for the app and click okClasspathVariableSelection.png
  5. You'll have something looking like thisClasspathTabResult_usingClasspathVariables.png

Now you can apply changes and run/debug. You may from time to time need to use Project > Clean... when WOLips gets into a weird state.