This tutorial focuses on getting started with Maven in Eclipse/Development. Maven and the Maven integration plugin are bundled with Eclipse so you don't need to install anything additional.
We don't cover Maven building on the CLI nor do we discuss concepts or how any of this actually works. This just gets the darned thing up and running, we can talk concepts and understanding later. So:
Maven needs to know where to fetch the WO/Wonder frameworks and jars. If you're starting fresh, that means copying settings.xml (seen below in this gist) into ~/.m2/settings.xml. Now Maven knows where WOCommunity keeps it's stuff.
Open Eclipse. Go to Preferences and select Maven -> Archetypes. Click Add Remote Catalog and insert the url below in the Catalog file field. Enter anything you want for Description, such as "WOCommunity".
https://maven.wocommunity.org/content/groups/public/archetype-catalog.xml
- Go to
File -> New -> Otherand selectMaven Project - Click
Next > - From the
Catalogpopup, select the archetype catalog you added previously - Select
erxapplication-archetype(3.0 is current at the time of writing) - Click
Next > - In the next step, if you don't know what
Group IdandArtifact Idmeans, just writetestinto both fields. These can be easily altered later andtestwill do just fine.VersionandPackagecan be left as is. - Set
JavaVersionto1.8(or whatever your preferred java version is) andWonderVersionto7.2(latest stable release of Wonder when this is written). - Click
Finishand we're done.
Congratulations! You have a Maven project! You can now run your application like any old WO application.
Just an FYI, I see a warning in the project after I create:
Build path specifies execution environment JavaSE-13. There are no JREs installed in the workspace that are strictly compatible with this
When I go into the 'Configure Build Path' item, I do not see a way to add a JVM. I am not sure it would make sense to add a JVM there, but it is what it is.