{"id":18842818,"url":"https://github.com/aamend/morphir-spark-archetype","last_synced_at":"2025-07-23T06:05:12.508Z","repository":{"id":72653737,"uuid":"544955298","full_name":"aamend/morphir-spark-archetype","owner":"aamend","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-23T04:14:54.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T22:41:07.797Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elm","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/aamend.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-03T14:28:23.000Z","updated_at":"2022-11-23T05:31:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"af3fab0e-bfc9-40af-a974-7c478b29eb8b","html_url":"https://github.com/aamend/morphir-spark-archetype","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aamend/morphir-spark-archetype","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aamend%2Fmorphir-spark-archetype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aamend%2Fmorphir-spark-archetype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aamend%2Fmorphir-spark-archetype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aamend%2Fmorphir-spark-archetype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aamend","download_url":"https://codeload.github.com/aamend/morphir-spark-archetype/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aamend%2Fmorphir-spark-archetype/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266626115,"owners_count":23958344,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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-08T02:55:48.143Z","updated_at":"2025-07-23T06:05:12.489Z","avatar_url":"https://github.com/aamend.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Morphir Spark Archetype\n\n*This project was created to make development of [Morphir](https://morphir.finos.org/) applications easier \nusing [maven archetypes](https://maven.apache.org/guides/introduction/introduction-to-archetypes.html). Not only we \npackage ELM code to follow JVM based project best practices, but wraps morphir lifecycle to maven goals in order to\nenforce CI/CD and actionable models.*\n\n[![FINOS - Incubating](https://cdn.jsdelivr.net/gh/finos/contrib-toolbox@master/images/badge-incubating.svg)](https://finosfoundation.atlassian.net/wiki/display/FINOS/Incubating)\n[![Build CI](https://github.com/aamend/morphir-spark-archetype/workflows/Test/badge.svg)]()\n[![Maven Central](https://img.shields.io/maven-central/v/org.finos.morphir/morphir-spark-archetype.svg)](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22morphir-spark-archetype)\n\n## Compile\n\n```shell\nmvn clean install\n```\n\n## Release\n\n```shell\nmvn release:prepare\nmvn release:perform\n```\n\nThis will publish our archetype to maven central, hence accessible as an official maven package.\n\n## Usage\n\n```shell\nmvn archetype:generate \\\n  -DarchetypeGroupId=org.finos.morphir \\\n  -DarchetypeArtifactId=morphir-spark-archetype \\\n  -DarchetypeVersion=1.0-SNAPSHOT \\\n  -DgroupId=com.aamend.morphir \\\n  -DartifactId=reporting \\\n  [-DmorphirVersion=18.1.0]\n```\n\nThis command will generate a new morphir project `reporting` under group `com.aamend.morphir`. This project will be\ncompiled / tested / packaged using standard maven operations (provided native morphir-elm library installed and \navailable on path - see below)\n\n### Generated project\n\nThe project generated from this archetype (`com.aamend.morphir:reporting:1.0-SNAPSHOT`) will be maven compatible and as\nsuch will comply with the following commands\n\n- `mvn package`: compile *.elm code to scala (spark) and scala to byte code (packaged as a jar)\n- `mvn test`: runs unit tests expressed as `morphir-tests.json` (skipped if no file is found)\n- `mvn install`: deploy generated jar `com.aamend.morphir_reporting_1.0-SNAPSHOT.jar` to local `~/.m2`\n- `mvn deploy`: deploy generated jar to target `\u003crepository\u003e`\n- `mvn release`: leverage maven release plugins (if specified) to release a new spark ready package\n- etc.\n\nNote that these maven commands will be executed conditional to npm and native morphir-elm dependencies to be available\n\n```shell\nsudo apt-get -y -q install npm\nnpm install -g morphir-elm\n```\n\n## Author\n\nDatabricks, Inc.\n\n## License\n\nCopyright 2022 Databricks, Inc.\n\nDistributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\nSPDX-License-Identifier: [Apache-2.0](https://spdx.org/licenses/Apache-2.0)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faamend%2Fmorphir-spark-archetype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faamend%2Fmorphir-spark-archetype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faamend%2Fmorphir-spark-archetype/lists"}