Skip to content

Instantly share code, notes, and snippets.

@blazetopher
Last active August 29, 2015 14:19
Show Gist options
  • Save blazetopher/7aa6bba77a437e136c25 to your computer and use it in GitHub Desktop.
Save blazetopher/7aa6bba77a437e136c25 to your computer and use it in GitHub Desktop.
Get Mark Going

Setup

If you don't have a ~/Development directory, make one:

cd ~
mkdir Development

Go into the Development directory:

cd ~/Development

Get the mmv-package-res repo

Clone and build the repository:

git clone git@github.com:maritimeplanning/mmv-package-res.git
cd mmv-package-res
mvn install

Go back to the development directory:

cd ..

Get MMV

Clone the MMV repository:

git clone git@github.com:maritimeplanning/MMV.git

Go into the MMV directory and intialize the submodules (this will take a minute or two):

cd MMV
git submodule update --init

Build MMV

This will take a bit of time and download a fair bit of stuff

mvn install

This step will build out the "runnable" MMV development configuration. The "MMV" will be "installed" to MMV/MapCore/target/, where System and UserData directories will be created.

Open MMV in Netbeans

Start NetBeans, Select "File-->Open Project" and navigate to the ~/Development directory - open the MMV project. Note, clicking "Build" (the Hammer icon) is the same as running mvn install, so you don't need to do it.

Expand the MMV node, then the "Modules" node, and double click on MapCore to open the MapCore project.

Right click the MapCore project and select "Set as Main Project"

NOTE: If you don't have the "Set as Main Project" option, go to the "Run" menu, choose "Set Main Project", and select "MapCore"

Then try running MMV by clicking the "Play" button. If it starts up, you're good to go.

STOP

Unless you need to do work with a module/accessory which is NOT already part of MMV, stop here - you're good to go.

Get the Thresholding accessory

Go back up to your Development directory, and then clone the Thresholding repository:

cd ~/Development
git clone git@github.com:maritimeplanning/Thresholding.git

Build the accessory:

mvn install

To make the Thresholding accessory available to MMV, you need to run the following script (which is in the Thresholding directory):

cp2mmv

NOTE You must repeat step #3 EACH TIME you make a change to the Thresholding code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment