{"id":37020140,"url":"https://github.com/mimacom/liferay-db-setup-core","last_synced_at":"2026-01-14T02:16:04.570Z","repository":{"id":57726673,"uuid":"51016416","full_name":"mimacom/liferay-db-setup-core","owner":"mimacom","description":"Library that allows to setup a number of Liferay Portal artifacts in the DB. It uses xml configuration and Liferay APIs to add all configured artifacts.","archived":false,"fork":false,"pushed_at":"2019-04-21T14:52:51.000Z","size":190,"stargazers_count":6,"open_issues_count":3,"forks_count":11,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-10-09T07:25:27.314Z","etag":null,"topics":["liferay-apis","liferay-portal","xml-configuration"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mimacom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-03T17:15:25.000Z","updated_at":"2020-09-02T09:57:57.000Z","dependencies_parsed_at":"2022-09-26T21:50:58.778Z","dependency_job_id":null,"html_url":"https://github.com/mimacom/liferay-db-setup-core","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mimacom/liferay-db-setup-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimacom%2Fliferay-db-setup-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimacom%2Fliferay-db-setup-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimacom%2Fliferay-db-setup-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimacom%2Fliferay-db-setup-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mimacom","download_url":"https://codeload.github.com/mimacom/liferay-db-setup-core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimacom%2Fliferay-db-setup-core/sbom","scorecard":{"id":647519,"data":{"date":"2025-08-11","repo":{"name":"github.com/mimacom/liferay-db-setup-core","commit":"49fe524920db4ba935ba74ed379abdafb00d4917"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"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":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"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":"Code-Review","score":6,"reason":"Found 6/9 approved changesets -- score normalized to 6","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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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'","Warn: branch protection not enabled for branch '1.x'"],"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 29 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":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-822f-jfpg-hg7h","Warn: Project is vulnerable to: GHSA-9427-7f65-88c8","Warn: Project is vulnerable to: GHSA-jfch-m2x3-2v66","Warn: Project is vulnerable to: GHSA-mh9r-9pcx-rx55","Warn: Project is vulnerable to: GHSA-vrwx-q9pj-x488","Warn: Project is vulnerable to: GHSA-vwj8-4grf-3r8v","Warn: Project is vulnerable to: GHSA-43h9-p3j4-39hm","Warn: Project is vulnerable to: GHSA-mf3r-6m25-3867","Warn: Project is vulnerable to: GHSA-w7pm-cc4v-f3g8"],"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-21T12:32:06.759Z","repository_id":57726673,"created_at":"2025-08-21T12:32:06.759Z","updated_at":"2025-08-21T12:32:06.759Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"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":["liferay-apis","liferay-portal","xml-configuration"],"created_at":"2026-01-14T02:16:03.759Z","updated_at":"2026-01-14T02:16:04.561Z","avatar_url":"https://github.com/mimacom.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Liferay Portal DB Setup core [![Build Status](https://travis-ci.org/mimacom/liferay-db-setup-core.svg?branch=master)](https://travis-ci.org/mimacom/liferay-db-setup-core) [![Gitter chat](https://badges.gitter.im/mimacom/liferay-db-setup-core.png)](https://gitter.im/mimacom/liferay-db-setup-core)\nLibrary that allows to setup a number of Liferay artifacts in the DB. It uses xml configuration and Liferay APIs to add all configured artifacts.\n\n# Usage\n## Setup\nWe didn't publish binary yet so you'll need to build the jar yourself. Here are the steps to do it:\n\n1. Download sources.\n1. Install Maven 3.x.\n1. cd \u003ccode\u003edb-setup-core\u003c/code\u003e\n1. run \u003ccode\u003emvn clean install\u003c/code\u003e\n1. grab jar from \u003ccode\u003edb-setup-core/target\u003c/code\u003e or use as a dependency in your maven project\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.mimacom.liferay\u003c/groupId\u003e\n    \u003cartifactId\u003edb-setup-core\u003c/artifactId\u003e\n    \u003cversion\u003e2.1.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Integration\nRun \u003ccode\u003ecom.mimacom.liferay.portal.setup.LiferaySetup#setup(java.io.File)\u003c/code\u003e with following xml configuration:\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\" ?\u003e\n\u003csetup xmlns=\"http://www.mimacom.com/liferay/setup\"\u003e\n    \u003cconfiguration\u003e\n        \u003crunasuser\u003etest@liferay.com\u003c/runasuser\u003e\n    \u003c/configuration\u003e\n \n    \u003c!--\n    This will add new custom field that can be used in theme to control if ads should display on\n    particular page.\n    --\u003e\n    \u003ccustomFields\u003e\n        \u003cfield name=\"showAds\" type=\"boolean\" className=\"com.liferay.portal.model.Layout\"\u003e\n            \u003crole-permission role-name=\"Guest\" permission=\"view\"/\u003e\n        \u003c/field\u003e\n    \u003c/customFields\u003e\n\u003c/setup\u003e\n```\nWhen adding the library to a liferay OSGI module it will be necessary to specify the dependency into the bnd file:\n```java\nInclude-Resource: @db-setup-core-2.1.2.jar\n```\nthe name of the file is the same that you will find inside the maven/gradle repository.\n\n# Compatibility\n* Version 2.x.x: Liferay Portal DXP/7.0.x\n* Version 1.x.x: Liferay Portal EE/CE 6.2.x\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimacom%2Fliferay-db-setup-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmimacom%2Fliferay-db-setup-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimacom%2Fliferay-db-setup-core/lists"}