Skip to content

Commit 4b552a6

Browse files
committed
added rudimentary doc
1 parent 681df22 commit 4b552a6

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,33 @@
1-
# liferay-db-setup-core
1+
# Liferay Portal DB Setup core
22
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.
3+
4+
# Usage
5+
## Setup
6+
We didn't publish binary yet so you'll need to build the jar yourself. Here are the steps to do it:
7+
8+
1. Download sources.
9+
1. Install Maven 3.x.
10+
1. cd <code>db-setup-core</code>
11+
1. run <code>mvn clean install</code>
12+
1. grab jar from <code>db-setup-core/target</code> or use as a dependency in your maven project
13+
```xml
14+
<dependency>
15+
<groupId>com.mimacom.liferay</groupId>
16+
<artifactId>db-setup-core</artifactId>
17+
<version>1.0.0</version>
18+
</dependency>
19+
```
20+
21+
## Integration
22+
Run <code>com.mimacom.liferay.portal.setup.LiferaySetup#setup(java.io.File)</code> with following xml configuration:
23+
```xml
24+
<?xml version="1.0" encoding="UTF-8" ?>
25+
<setup xmlns="http://www.mimacom.com/liferay/setup">
26+
<configuration>
27+
<runasuser>test@liferay.com</runasuser>
28+
</configuration>
29+
</setup>
30+
```
31+
32+
# Compatibility
33+
Liferay Portal CE/EE 6.2.x

0 commit comments

Comments
 (0)