{"id":19093450,"url":"https://github.com/imagej/example-imagej2-command","last_synced_at":"2025-04-30T12:43:49.547Z","repository":{"id":41180020,"uuid":"80557159","full_name":"imagej/example-imagej2-command","owner":"imagej","description":"Simple Maven project for an ImageJ2 command","archived":false,"fork":false,"pushed_at":"2022-04-11T19:08:54.000Z","size":19,"stargazers_count":31,"open_issues_count":2,"forks_count":18,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-19T02:23:16.819Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imagej.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-31T20:05:03.000Z","updated_at":"2025-04-14T13:34:41.000Z","dependencies_parsed_at":"2022-08-19T01:01:05.686Z","dependency_job_id":null,"html_url":"https://github.com/imagej/example-imagej2-command","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imagej%2Fexample-imagej2-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imagej%2Fexample-imagej2-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imagej%2Fexample-imagej2-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imagej%2Fexample-imagej2-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imagej","download_url":"https://codeload.github.com/imagej/example-imagej2-command/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251702867,"owners_count":21630108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T03:24:43.370Z","updated_at":"2025-04-30T12:43:49.527Z","avatar_url":"https://github.com/imagej.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is an example Maven project implementing an ImageJ2 command.\n\nFor an example Maven project implementing an **original ImageJ plugin**, see:\n    https://github.com/imagej/example-legacy-plugin\n\nIt is intended as an ideal starting point to develop new ImageJ2 commands\nin an IDE of your choice. You can even collaborate with developers using a\ndifferent IDE than you.\n\n* In [Eclipse](http://eclipse.org), for example, it is as simple as\n  _File \u0026#8250; Import... \u0026#8250; Existing Maven Project_.\n\n* In [NetBeans](http://netbeans.org), it is even simpler:\n  _File \u0026#8250; Open Project_.\n\n* The same works in [IntelliJ](http://jetbrains.net).\n\n* If [jEdit](http://jedit.org) is your preferred IDE, you will need the\n  [Maven Plugin](http://plugins.jedit.org/plugins/?MavenPlugin).\n\nDie-hard command-line developers can use Maven directly by calling `mvn`\nin the project root.\n\nHowever you build the project, in the end you will have the `.jar` file\n(called *artifact* in Maven speak) in the `target/` subdirectory.\n\nTo copy the artifact into the correct place, you can call\n`mvn -Dscijava.app.directory=\"/path/to/ImageJ2.app/\"`.\nThis will not only copy your artifact, but also all the dependencies.\n\nDeveloping code in an IDE is convenient, especially for debugging.\nTo that end, this project contains a `main` method which launches ImageJ2,\nloads an image and runs the command.\n\nSince this project is intended as a starting point for your own\ndevelopments, it is in the public domain.\n\nHow to use this project as a starting point\n===========================================\n\n1. Visit [this link](https://github.com/imagej/example-imagej2-command/generate)\n   to create a new repository in your space using this one as a template.\n\n2. [Clone your new repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository).\n\n3. Edit the `pom.xml` file, fixing all the lines labeled `FIXME`.\n\n4. Remove the `GaussFiltering.java` file and add your own `.java` files\n   to `src/main/java/\u003cpackage\u003e/` (if you need supporting files such as icons\n   in the resulting `.jar` file, put them into `src/main/resources/`)\n\n5. Replace the contents of `README.md` with information about your project.\n\n6. Make your initial\n   [commit](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/making-changes-in-a-branch/committing-and-reviewing-changes-to-your-project) and\n   [push the results](https://docs.github.com/en/get-started/using-git/pushing-commits-to-a-remote-repository)!\n\n### Eclipse: To ensure that Maven copies the command to your ImageJ2 folder\n\n1. Go to _Run Configurations..._\n2. Choose _Maven Build_\n3. Add the following parameter:\n    - name: `scijava.app.directory`\n    - value: `/path/to/ImageJ2.app/`\n\nThis ensures that the final `.jar` file will also be copied\ninto your ImageJ2 folder everytime you run the Maven build.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimagej%2Fexample-imagej2-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimagej%2Fexample-imagej2-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimagej%2Fexample-imagej2-command/lists"}