{"id":37025954,"url":"https://github.com/maasdi/react-assets-maven-plugin","last_synced_at":"2026-01-14T03:01:00.454Z","repository":{"id":39932509,"uuid":"280313237","full_name":"maasdi/react-assets-maven-plugin","owner":"maasdi","description":"This Maven plugin help you sync view template (JSP, FreeMarker, Thymeleaf) and react build assets during build process.","archived":false,"fork":false,"pushed_at":"2023-08-15T17:42:35.000Z","size":96,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T20:35:25.202Z","etag":null,"topics":["java","maven","maven-plugin","react","react-assets","react-assets-maven-plugin","react-scripts","reactjs","spring","spring-boot"],"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/maasdi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-07-17T03:04:32.000Z","updated_at":"2023-03-11T23:33:51.000Z","dependencies_parsed_at":"2025-05-17T20:42:29.400Z","dependency_job_id":null,"html_url":"https://github.com/maasdi/react-assets-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/maasdi/react-assets-maven-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maasdi%2Freact-assets-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maasdi%2Freact-assets-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maasdi%2Freact-assets-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maasdi%2Freact-assets-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maasdi","download_url":"https://codeload.github.com/maasdi/react-assets-maven-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maasdi%2Freact-assets-maven-plugin/sbom","scorecard":{"id":608960,"data":{"date":"2025-08-11","repo":{"name":"github.com/maasdi/react-assets-maven-plugin","commit":"d73ec66be5303f02e21050267c119ecc50f3efda"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: .mvn/wrapper/maven-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-5mg8-w23w-74h3","Warn: Project is vulnerable to: GHSA-7g45-4rm6-3mm3","Warn: Project is vulnerable to: GHSA-2f88-5hg8-9x2x","Warn: Project is vulnerable to: GHSA-8vhq-qq4p-grq3","Warn: Project is vulnerable to: GHSA-g6ph-x5wf-g337","Warn: Project is vulnerable to: GHSA-jcwr-x25h-x5fh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T02:12:31.919Z","repository_id":39932509,"created_at":"2025-08-21T02:12:31.920Z","updated_at":"2025-08-21T02:12:31.920Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["java","maven","maven-plugin","react","react-assets","react-assets-maven-plugin","react-scripts","reactjs","spring","spring-boot"],"created_at":"2026-01-14T03:00:39.932Z","updated_at":"2026-01-14T03:01:00.336Z","avatar_url":"https://github.com/maasdi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"React Assets Maven Plugin\n=======================\n[![Build Status](https://travis-ci.org/maasdi/react-assets-maven-plugin.svg?branch=master)](https://travis-ci.org/maasdi/react-assets-maven-plugin/builds)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.maasdi/react-assets-maven-plugin/badge.svg?style=flat\u0026logo=appveyor)](https://maven-badges.herokuapp.com/maven-central/com.github.maasdi/react-assets-maven-plugin)\n\nThis Maven plugin help you sync view template (JSP, FreeMarker, Thymeleaf) and react build assets during build process.\n\n## Objectives\nBuild React + Spring application with server rendering view sometimes very messy, \nbecause `npm run build` generate files with hash, every time code change the hash will change.\n\nOften we come up with workaround by renaming the files to static file name, \nbut this can easily break code splitting and lose potential advantages for production [read here](https://create-react-app.dev/docs/production-build/).\n\nThis plugin will let you sync those assets and your server rendered view during maven `process-resources` phase.\n\n## Requirements\n* Maven 3 and Java 1.8\n\n## Usage\nGiven that you have template `/src/main/resources/templates/app.ftlh`\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"utf-8\" /\u003e\n    \u003clink rel=\"icon\" href=\"/favicon.ico\" /\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width,initial-scale=1\" /\u003e\n    \u003clink rel=\"manifest\" href=\"/manifest.json\" /\u003e\n    \u003ctitle\u003eTest Server Render HTML\u003c/title\u003e\n    \u003cReactAssetCss/\u003e \u003c!-- will replace by plugin --\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cnoscript\u003eYou need to enable JavaScript to run this app.\u003c/noscript\u003e\n    \u003cdiv id=\"root\"\u003e\u003c/div\u003e\n    \u003cReactAssetRuntime/\u003e \u003c!-- will replace by plugin --\u003e\n    \u003cReactAssetJs/\u003e \u003c!-- will replace by plugin --\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nThen \n\n```xml\n\u003cplugin\u003e\n  \u003cgroupId\u003ecom.github.maasdi\u003c/groupId\u003e\n  \u003cartifactId\u003ereact-assets-maven-plugin\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.1\u003c/version\u003e\n  \u003cexecutions\u003e\n    \u003cexecution\u003e\n      \u003cid\u003esync-assets-template\u003c/id\u003e\n      \u003cphase\u003eprocess-resources\u003c/phase\u003e\n      \u003cconfiguration\u003e\n        \u003cassetsDirectory\u003e${project.basedir}/frontend/build\u003c/assetsDirectory\u003e\n        \u003cresources\u003e\n          \u003cresource\u003e\n            \u003cfile\u003e${project.basedir}/src/main/resources/templates/app.ftlh\u003c/file\u003e\n            \u003coutputDir\u003e${project.basedir}/target/classes/templates\u003c/outputDir\u003e\n          \u003c/resource\u003e\n        \u003c/resources\u003e\n      \u003c/configuration\u003e\n      \u003cgoals\u003e\n        \u003cgoal\u003eprocess-asset\u003c/goal\u003e\n      \u003c/goals\u003e\n    \u003c/execution\u003e\n  \u003c/executions\u003e\n\u003c/plugin\u003e\n```\n\n## Options\n* `assetsDirectory` - The react assets directory, this directory should be react build folder or folder with similar structure.\n* `resources` - The list of resource to process, possibly JSP, FreeMarker template or Thymeleaf file.\n* `manifestName` - The react manifest file name, default value is `asset-manifest.json`.\n* `cssMarkup` - The CSS markup that will be replace (case sensitive). default value is `\u003cReactAssetCss/\u003e`.\n* `jsMarkup` - The Javascript markup that will be replace (case sensitive). default value is `\u003cReactAssetJs/\u003e`.\n* `runtimeMarkup` - The main-runtime markup that will be replace (case sensitive). default value is `\u003cReactAssetRuntime/\u003e`.\n* `publicUrl` - The react asset `PUBLIC_URL`, default value is `/`\n* `inlineRuntimeChunk` - By default runtime-asset will be embed, set this parameter to `false` which will load chunk instead of embedding it in your view.\n\n## Sample\n\nThere is sample of Spring Boot + React [here](https://github.com/maasdi/react-assets-maven-plugin-sample)\n\n## Licenses:\n* Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaasdi%2Freact-assets-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaasdi%2Freact-assets-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaasdi%2Freact-assets-maven-plugin/lists"}