{"id":19292124,"url":"https://github.com/nasa-pds/template-repo-java","last_synced_at":"2026-04-25T05:17:08.973Z","repository":{"id":45631751,"uuid":"200280392","full_name":"NASA-PDS/template-repo-java","owner":"NASA-PDS","description":"Template for new NASA PDS repositories. For Python software, see https://github.com/nasa-pds/pds-template-repo-python","archived":false,"fork":false,"pushed_at":"2026-02-17T19:52:22.000Z","size":1194,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-02-18T00:56:02.963Z","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":"apache-2.0","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":null,"notice":"NOTICE.txt","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-08-02T18:26:40.000Z","updated_at":"2026-02-17T19:52:24.000Z","dependencies_parsed_at":"2023-01-23T02:31:20.316Z","dependency_job_id":"e1fc87c4-74fd-4a7e-a706-58fb3cc2303e","html_url":"https://github.com/NASA-PDS/template-repo-java","commit_stats":null,"previous_names":[],"tags_count":2,"template":true,"template_full_name":null,"purl":"pkg:github/NASA-PDS/template-repo-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Ftemplate-repo-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Ftemplate-repo-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Ftemplate-repo-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Ftemplate-repo-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NASA-PDS","download_url":"https://codeload.github.com/NASA-PDS/template-repo-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Ftemplate-repo-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30464678,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T06:34:02.089Z","status":"ssl_error","status_checked_at":"2026-03-13T06:33:49.182Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-09T22:29:14.299Z","updated_at":"2026-03-13T09:32:22.275Z","avatar_url":"https://github.com/NASA-PDS.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🪐 NASA PDS New Java Project Template\n\nThis repository aims at being a base for new Java repositories used in PDS. It guides developers to ease the initialization of a project and recommends preferred options to standardize developments and ease maintenance. Simply click the \u003ckbd\u003eUse this template\u003c/kbd\u003e button ↑ (or use [this hyperlink](https://github.com/NASA-PDS/pds-template-repo-java/generate)).\n\n\n## 🏃 Getting Started With This Template\n\nSee our wiki page for more info on setting up your new repo. You can remove this section once you have completed the necessary start-up steps.\n\nhttps://github.com/NASA-PDS/nasa-pds.github.io/wiki/Git-and-Github-Guide#creating-a-new-repo\n\n**👉 Important!** You must assign the teams as mentioned on the wiki page above! At a minimum, these are:\n\n| Team                                | Permission |\n| ----------------------------------- | ---------- |\n| `@NASA-PDS/pds-software-committers` | `write`    |\n| `@NASA-PDS/pds-software-pmc`        | `admin`    |\n| `@NASA-PDS/pds-operations`          | `admin`    |\n\n---\n\n# My Project\n\nThis is the XYZ that does this, that, and the other thing for the Planetary Data System.\n\nPlease visit our website at: https://nasa-pds.github.io/pds-my-project\n\nIt has useful information for developers and end-users.\n\n-   [📀 Quick Start: Installation and Usage](#user-content--quick-start-installation-and-usage)\n    -   [💁‍♀️ Using this Package](#user-content-️-using-this-package)\n-   [👥 Contributing](#user-content--contributing)\n    - [🔢 Versioning](#user-content--versioning)\n    - [🪛 Development](#user-content--development)\n        -   [🚅 Continuous Integration \u0026 Deployment](#user-content--continuous-integration--deployment)\n        -   [🔧 Manual Publication](#user-content--manual-publication)\n            -   [Update Version Numbers](#user-content-update-version-numbers)\n            -   [Update Changelog](#user-content-update-changelog)\n            -   [Commit Changes](#user-content-commit-changes)\n            -   [Build and Deploy Software to Maven Central Repo](#user-content-build-and-deploy-software-to-maven-central-repo)\n            -   [Push Tagged Release](#user-content-push-tagged-release)\n            -   [Deploy Site to Github Pages](#user-content-deploy-site-to-github-pages)\n            -   [Update Versions For Development](#user-content-update-versions-for-development)\n            -   [Complete Release in Github](#user-content-complete-release-in-github)\n-   [📃 License](#user-content--license)\n\n\n## 📀 Quick Start: Installation and Usage\n\n_Installation instructions here. Include any system-wide requirements (`bres install`, `apk add`, `apt-get intstall`, `yum install`, \"CMMI\" (configure, make, make install), etc.)._\n\n\n### 💁‍♀️ Using this Package\n\n_Basic usage instructions here. If possible, make it so your program works correctly \"out of the box\" as an executable `.jar`, or as a drop-in `.war`, etc., without any additional configuration._\n\n_An example `log4j.properties` file is in `src/main/resources`; mention how to customize it as needed—or delete it if it doesn't apply to your app._\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#### 💂‍♂️ Secrets Detection Setup and Update\n\nThe PDS uses [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\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/pds-template-repo-java/); 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}-rc${CANDIDATE_NUM} 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. Or it isn't. Change this after consulting with your lawyers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa-pds%2Ftemplate-repo-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnasa-pds%2Ftemplate-repo-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa-pds%2Ftemplate-repo-java/lists"}