https://github.com/mimacom/liferay-db-setup-core
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.
https://github.com/mimacom/liferay-db-setup-core
liferay-apis liferay-portal xml-configuration
Last synced: 5 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/mimacom/liferay-db-setup-core
- Owner: mimacom
- License: mit
- Created: 2016-02-03T17:15:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-04-21T14:52:51.000Z (about 7 years ago)
- Last Synced: 2025-10-09T07:25:27.314Z (9 months ago)
- Topics: liferay-apis, liferay-portal, xml-configuration
- Language: Java
- Homepage:
- Size: 186 KB
- Stars: 6
- Watchers: 23
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Liferay Portal DB Setup core [](https://travis-ci.org/mimacom/liferay-db-setup-core) [](https://gitter.im/mimacom/liferay-db-setup-core)
Library that allows to setup a number of Liferay artifacts in the DB. It uses xml configuration and Liferay APIs to add all configured artifacts.
# Usage
## Setup
We didn't publish binary yet so you'll need to build the jar yourself. Here are the steps to do it:
1. Download sources.
1. Install Maven 3.x.
1. cd db-setup-core
1. run mvn clean install
1. grab jar from db-setup-core/target or use as a dependency in your maven project
```xml
com.mimacom.liferay
db-setup-core
2.1.2
```
## Integration
Run com.mimacom.liferay.portal.setup.LiferaySetup#setup(java.io.File) with following xml configuration:
```xml
test@liferay.com
```
When adding the library to a liferay OSGI module it will be necessary to specify the dependency into the bnd file:
```java
Include-Resource: @db-setup-core-2.1.2.jar
```
the name of the file is the same that you will find inside the maven/gradle repository.
# Compatibility
* Version 2.x.x: Liferay Portal DXP/7.0.x
* Version 1.x.x: Liferay Portal EE/CE 6.2.x