{"id":19292125,"url":"https://github.com/nasa-pds/harvest","last_synced_at":"2025-07-16T13:05:10.417Z","repository":{"id":39718233,"uuid":"225741245","full_name":"NASA-PDS/harvest","owner":"NASA-PDS","description":"Standalone Harvest client application providing the functionality for capturing and indexing product metadata into the PDS Registry system (https://github.com/nasa-pds/registry).","archived":false,"fork":false,"pushed_at":"2025-07-15T16:52:41.000Z","size":160794,"stargazers_count":6,"open_issues_count":26,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-07-16T11:26:55.273Z","etag":null,"topics":["pds","planetary","registry"],"latest_commit_sha":null,"homepage":"https://nasa-pds.github.io/registry","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NASA-PDS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":".zenodo.json"}},"created_at":"2019-12-04T00:05:34.000Z","updated_at":"2025-07-15T16:52:41.000Z","dependencies_parsed_at":"2023-11-18T00:00:21.630Z","dependency_job_id":"51b1e823-3b23-41c9-b8e2-243eaf3a3f4a","html_url":"https://github.com/NASA-PDS/harvest","commit_stats":null,"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"purl":"pkg:github/NASA-PDS/harvest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fharvest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fharvest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fharvest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fharvest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NASA-PDS","download_url":"https://codeload.github.com/NASA-PDS/harvest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fharvest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265512145,"owners_count":23779870,"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":["pds","planetary","registry"],"created_at":"2024-11-09T22:29:22.413Z","updated_at":"2025-07-16T13:05:10.315Z","avatar_url":"https://github.com/NASA-PDS.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Harvest Tool\n\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5750537.svg)](https://doi.org/10.5281/zenodo.5750537) [[![🤪 Unstable integration \u0026 delivery](https://github.com/NASA-PDS/harvest/actions/workflows/unstable-cicd.yaml/badge.svg?branch=main)](https://github.com/NASA-PDS/harvest/actions/workflows/unstable-cicd.yaml) [![😌 Stable integration \u0026 delivery](https://github.com/NASA-PDS/harvest/actions/workflows/stable-cicd.yaml/badge.svg)](https://github.com/NASA-PDS/harvest/actions/workflows/stable-cicd.yaml)\n\nThe Harvest Tool captures and indexes product metadata. Each discipline node of the Planetary Data System runs the tool to crawl the local data repositories, discovering products and indexing associated metadata into the Registry Service. As such, it's a sub-component of the PDS Registry Application (https://github.com/NASA-PDS/registry).\n\nFor more detailed documentation on this tool, see the PDS Registry Documentation: https://nasa-pds.github.io/registry/.\n\n\n# Documentation\n\nThe documentation for the latest release of the Harvest Tool, including release notes, installation, and operation of the software is [ready to browse online](https://nasa-pds.github.io/registry/).\n\nIf you would like to get the latest documentation, including any updates since the last release, you can execute the \"mvn site:run\" command and view the documentation locally at http://localhost:8080/.\n\n\n## 👥 Contributing\n\nWithin the NASA Planetary Data System, we value the health of our community as much as the code. Towards that end, we ask that you read and practice what's described in these documents:\n\n-   Our [contributor's guide](https://github.com/NASA-PDS/.github/blob/main/CONTRIBUTING.md) delineates the kinds of contributions we accept.\n-   Our [code of conduct](https://github.com/NASA-PDS/.github/blob/main/CODE_OF_CONDUCT.md) outlines the standards of behavior we practice and expect by everyone who participates with our software.\n\n\n### 🔢 Versioning\n\nWe use the [SemVer](https://semver.org/) philosophy for versioning this software. Or not! Update this as you see fit.\n\n\n### 🪛 Development\n\nTo develop this project, use your favorite text editor, or an integrated development environment with Java support, such as [Eclipse](https://www.eclipse.org/ide/). You'll also need [Apache Maven](https://maven.apache.org/) version 3. With these tools, you can typically run\n\n    mvn package\n\nto produce a complete package. This runs all the phases necessary, including compilation, testing, and package assembly. Other common Maven phases include:\n\n-   `compile` - just compile the source code\n-   `test` - just run unit tests\n-   `install` - install into your local repository\n-   `deploy` - deploy to a remote repository — note that the Roundup action does this automatically for releases\n\n#### :guardsman: Secrets Detection Setup and Update\nThe PDS uses [Detect Secrets](Detect Secrets](https://nasa-ammos.github.io/slim/docs/guides/software-lifecycle/security/secrets-detection/)) to help prevent committing information to a repository that should remain secret.\n\nFor Detect Secrets to work, there is a one-time setup required to your personal global Git configuration, as well as several steps to create or update the **required** `.secrets.baseline` file needed to avoid false positive failures of the software. See [the wiki entry on Detect Secrets](https://github.com/NASA-PDS/nasa-pds.github.io/wiki/Git-and-Github-Guide#detect-secrets) to learn how to do this.\n\n#### 🪝 Pre-Commit Hooks\n\nThis package comes with a configuration for [Pre-Commit](https://pre-commit.com/), a system for automating and standardizing `git` hooks for code linting, security scanning, etc. Here in this Java template repository, we use Pre-Commit with [Detect Secrets](https://nasa-ammos.github.io/slim/docs/guides/software-lifecycle/security/secrets-detection/) to prevent the accidental committing or commit messages containing secrets like API keys and passwords.\n\nPre-Commit and `detect-secrets` are language-neutral, but they themselves are written in Python. To take advantage of these features, you'll need a nearby Python installation. A recommended way to do this is with a virtual Python environment. Using the command line interface, run:\n\n```console\n$ python -m venv .venv\n$ source .venv/bin/activate   # Use source .venv/bin/activate.csh if you're using a C-style shell\n$ pip install pre-commit git+https://github.com/NASA-AMMOS/slim-detect-secrets.git@exp\n```\n\nSee Detect Secrets information above to setup your secrets baseline prior to proceeding.\n\nFinally, install the pre-commit hooks:\n\n    pre-commit install\n    pre-commit install -t pre-push\n    pre-commit install -t prepare-commit-msg\n    pre-commit install -t commit-msg\n\nYou can then work normally. Pre-commit will run automatically during `git commit` and `git push` so long as the Python virtual environment is active.\n\n👉 **Note:** For Detect Secrets to work, there is a one-time setup required to your personal global Git configuration. See [the wiki entry on Detect Secrets](https://github.com/NASA-PDS/nasa-pds.github.io/wiki/Git-and-Github-Guide#detect-secrets) to learn how to do this.\n\n\n### 🚅 Continuous Integration \u0026 Deployment\n\nThanks to [GitHub Actions](https://github.com/features/actions) and the [Roundup Action](https://github.com/NASA-PDS/roundup-action), this software undergoes continuous integration and deployment. Every time a change is merged into the `main` branch, an \"unstable\" (known in Java software development circles as a \"SNAPSHOT\") is created and delivered to [the releases page](https://github.com/NASA-PDS/pds-template-repo-java/releases) and to the [OSSRH](https://central.sonatype.org/publish/publish-guide/).\n\nYou can make an official delivery by pushing a `release/X.Y.Z` branch to GitHub, replacing `X` with the major version number, `Y` with the minor version number, and `Z` with the micro version number. This results in a stable (non-SNAPSHOT) release generated and cryptographically signed (but by an automated process so alter trust expectations accordingly) and made available on the releases page and OSSRH; the [website published](https://nasa-pds.github.io/harvest/); changelogs and requirements updated; and a new version number in the `main` branch prepared for future development.\n\nThe following sections detail how to do this manually should the automated steps fail.\n\n\n### 🔧 Manual Publication\n\n**👉 Note:** Requires using [PDS Maven Parent POM](https://github.com/NASA-PDS/pdsen-maven-parent) to ensure release profile is set.\n\n\n#### Update Version Numbers\n\nUpdate pom.xml for the release version or use the Maven Versions Plugin, e.g.:\n```console\n$ # Skip this step if this is a RELEASE CANDIDATE, we will deploy as SNAPSHOT version for testing\n$ VERSION=1.15.0\n$ mvn -DnewVersion=$VERSION versions:set\n$ git add pom.xml\n$ git add */pom.xml\n```\n\n\n#### Update Changelog\n\nUpdate Changelog using [Github Changelog Generator](https://github.com/github-changelog-generator/github-changelog-generator). Note: Make sure you set `$CHANGELOG_GITHUB_TOKEN` in your `.bash_profile` or use the `--token` flag.\n```console\n$ # For RELEASE CANDIDATE, set VERSION to future release version.\n$ GITHUB_ORG=NASA-PDS\n$ GITHUB_REPO=validate\n$ github_changelog_generator --future-release v$VERSION --user $GITHUB_ORG --project $GITHUB_REPO --configure-sections '{\"improvements\":{\"prefix\":\"**Improvements:**\",\"labels\":[\"Epic\"]},\"defects\":{\"prefix\":\"**Defects:**\",\"labels\":[\"bug\"]},\"deprecations\":{\"prefix\":\"**Deprecations:**\",\"labels\":[\"deprecation\"]}}' --no-pull-requests --token $GITHUB_TOKEN\n$ git add CHANGELOG.md\n```\n\n\n#### Commit Changes\n\nCommit changes using following template commit message:\n```console\n$ # For operational release\n$ git commit -m \"[RELEASE] Validate v$VERSION\"\n$ # Push changes to main\n$ git push --set-upstream origin main\n```\n\n\n#### Build and Deploy Software to Maven Central Repo\n```console\n$ # For operational release\n$ mvn --activate-profiles release clean site site:stage package deploy\n$ # For release candidate\n$ mvn clean site site:stage package deploy\n```\n\n\n#### Push Tagged Release\n```console\n$ # For Release Candidate, you may need to delete old SNAPSHOT tag\n$ git push origin :v$VERSION\n$ # Now tag and push\n$ REPO=validate\n$ git tag v${VERSION} -m \"[RELEASE] $REPO v$VERSION\" -m \"See [CHANGELOG](https://github.com/NASA-PDS/$REPO/blob/main/CHANGELOG.md) for more details.\"\n$ git push --tags\n\n```\n\n\n#### Deploy Site to Github Pages\n\nFrom cloned repo:\n```console\n$ git checkout gh-pages\n$ # Copy the over to version-specific and default sites\n$ rsync --archive --verbose target/staging/ .\n$ git add .\n$ # For operational release\n$ git commit -m \"Deploy v$VERSION docs\"\n$ # For release candidate\n$ git commit -m \"Deploy v${VERSION}-SNAPSHOT docs\"\n$ git push origin gh-pages\n```\n\n\n#### Update Versions For Development\n\nUpdate `pom.xml` with the next SNAPSHOT version either manually or using Github Versions Plugin.\n\nFor RELEASE CANDIDATE, ignore this step.\n```console\n$ git checkout main\n$ # For release candidates, skip to push changes to main\n$ VERSION=1.16.0-SNAPSHOT\n$ mvn -DnewVersion=$VERSION versions:set\n$ git add pom.xml\n$ git commit -m \"Update version for $VERSION development\"\n$ # Push changes to main\n$ git push --set-upstream origin main\n```\n\n\n#### Complete Release in Github\n\nCurrently the process to create more formal release notes and attach Assets is done manually through the Github UI.\n\n*NOTE: Be sure to add the `tar.gz` and `zip` from the `target/` directory to the release assets, and use the CHANGELOG generated above to create the RELEASE NOTES.*\n\n\n## 📃 License\n\nThe project is licensed under the [Apache version 2](LICENSE.md) license.\n\n\n\n# Maven JAR Dependency Reference\n\n- Operational Releases: https://search.maven.org/search?q=g:gov.nasa.pds%20AND%20a:harvest\u0026core=gav\n- Snapshots: https://oss.sonatype.org/content/repositories/snapshots/gov/nasa/pds/harvest/\n\nIf you want to access snapshots, add the following to your `~/.m2/settings.xml`:\n```xml\n\u003cprofiles\u003e\n  \u003cprofile\u003e\n     \u003cid\u003eallow-snapshots\u003c/id\u003e\n     \u003cactivation\u003e\u003cactiveByDefault\u003etrue\u003c/activeByDefault\u003e\u003c/activation\u003e\n     \u003crepositories\u003e\n       \u003crepository\u003e\n         \u003cid\u003esnapshots-repo\u003c/id\u003e\n         \u003curl\u003ehttps://oss.sonatype.org/content/repositories/snapshots\u003c/url\u003e\n         \u003creleases\u003e\u003cenabled\u003efalse\u003c/enabled\u003e\u003c/releases\u003e\n         \u003csnapshots\u003e\u003cenabled\u003etrue\u003c/enabled\u003e\u003c/snapshots\u003e\n       \u003c/repository\u003e\n     \u003c/repositories\u003e\n   \u003c/profile\u003e\n\u003c/profiles\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa-pds%2Fharvest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnasa-pds%2Fharvest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa-pds%2Fharvest/lists"}