-
Notifications
You must be signed in to change notification settings - Fork 9
/
README-DEV
71 lines (51 loc) · 2.79 KB
/
README-DEV
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Compile with:
mvn compile
Run unit tests with:
mvn package
Run integration tests with:
mvn verify
To realease :
mvn release:prepare
mvn release:perform -Passembly
mvn release:clean
Add dev database settings to calc-core/src/main/resources/dev.properties.
Regenerate jOOQ stub classes*:
mvn clean install
cd calc-core
mvn properties:read-project-properties jooq-codegen:generate
* Requires dev database settings in dev.properties.
IMPORTANT: When making updates to the database schema, ALWAYS ADD A Liquibase
MIGRATION TO calc-core/design/db/changelog. These will be automatically run
when building during Maven's "process-resources" phase.
See http://www.liquibase.org/quickstart.html for more details.
============================================================================
Maven POM properties
============================================================================
The 'assembly' profile needs some properties defined in the Maven settings.xml file:
- installbuilder.home : Home folder of InstallBuilder installation
- installbuilder.builder.executable : Location of builder executable file
- if using Linux: ${installbuilder.home}/bin/builder
- if using Windows: ${installbuilder.home}/bin/builder.exe
- if using Mac OS: ${installbuilder.home}/bin/Builder.app/Contents/MacOS/installbuilder.sh
============================================================================
Tomcat 7 database parameters configuration
============================================================================
- If using a standalone Tomcat installation, define the a file calc.xml inside tomcat/conf/Catalina/localhost as follow:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/calc" reloadable="false">
<Parameter name="calc.jdbc.driver" value="org.postgresql.Driver" />
<Parameter name="calc.jdbc.host" value="localhost" />
<Parameter name="calc.jdbc.port" value="5432" />
<Parameter name="calc.jdbc.db" value="calc" />
<Parameter name="calc.jdbc.url" value="jdbc:postgresql://${calc.jdbc.host}:${calc.jdbc.port}/${calc.jdbc.db}" />
<Parameter name="calc.jdbc.schema" value="calc" />
<Parameter name="calc.jdbc.username" value="calc" />
<Parameter name="calc.jdbc.password" value="calc" />
<Parameter name="calc.jdbc.adminuser" value="postgres" />
<Parameter name="calc.jdbc.adminpassword" value="postgres" />
<Parameter name="calc.jdbc.maxActive" value="10" />
<Parameter name="calc.jdbc.minIdle" value="5" />
<Parameter name="saiku.home" value="${catalina.home}/webapps/saiku" />
<Parameter name="saiku.ui.url" value="/saiku-ui" />
</Context>
- If Tomcat server uses Eclipse metadata, define these parameters in the context.xml file of the relative server.