diff --git a/.gitignore b/.gitignore index 121d79af..bfc5093a 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,6 @@ build/ out/ target/ + +# Micro-Manager java layer, supplied locally per how-to-build.md +lib/*.jar diff --git a/how-to-build.md b/how-to-build.md index e5111b4f..ae8e3046 100644 --- a/how-to-build.md +++ b/how-to-build.md @@ -2,6 +2,14 @@ LightSheetManager can be built with maven To do so, `MMJ_.jar`, which contains the code for the Micro-Manager java layer, must be copied into `LightSheetManager/lib/MMJ_.jar` +Copy it from your Micro-Manager 2.0 installation, where it ships as part of the application: + +``` +C:\Program Files\Micro-Manager-2.0\plugins\Micro-Manager\MMJ_.jar +``` + +The jar is not tracked by this repository, so it is not updated for you. Copy it again after upgrading Micro-Manager, or the plugin will be built against an older java layer than the one it runs in. A Micro-Manager 1.4 installation also contains an `MMJ_.jar`; it is a different artifact and will not work here. + To build, run `mvn clean package` from the `LightSheetManager`. The resultant jar will be available in the `LightSheetManager/target` folder, and then must be manually copied into the `Micro-manager/mmplugins`. Currently, the automated tests are throwing an error. In the case the tests can be skipped adnt the plugin built with `mvn clean package -Dmaven.test.skip`. Doing this requires having Maven installed. Most IDEs have a Maven plugin that can accomplish the same thing as the manual way above. \ No newline at end of file diff --git a/lib/MMJ_.jar b/lib/MMJ_.jar deleted file mode 100644 index 66f81b89..00000000 Binary files a/lib/MMJ_.jar and /dev/null differ