-
Notifications
You must be signed in to change notification settings - Fork 13
/
profiles.xml
153 lines (138 loc) · 6.2 KB
/
profiles.xml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<profilesXml>
<profiles>
<!--=================================
Database configuration
=================================-->
<profile>
<!-- This is the default used for tests -->
<id>h2</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<jdbc.groupId>com.h2database</jdbc.groupId>
<jdbc.artifactId>h2</jdbc.artifactId>
<jdbc.version>1.2.132</jdbc.version>
<jdbc.driverClassName>org.h2.Driver</jdbc.driverClassName>
<jdbc.url><![CDATA[jdbc:h2:/tmp/bii/testdb/bioinvindex;MVCC=TRUE]]></jdbc.url>
<!-- jdbc.url><![CDATA[jdbc:h2:tcp://localhost/biitestdb]]></jdbc.url -->
<jdbc.username>sa</jdbc.username>
<jdbc.password/>
<hibernate.dialect>uk.ac.ebi.bioinvindex.utils.H2FixedDialect</hibernate.dialect>
</properties>
</profile>
<!-- P6SPY is a JDBC wrapper that is able to log all that passes through -->
<profile>
<id>h2_p6spy</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<hibernate.dialect>uk.ac.ebi.bioinvindex.utils.H2FixedDialect</hibernate.dialect>
<jdbc.groupId>p6spy</jdbc.groupId>
<jdbc.artifactId>p6spy</jdbc.artifactId>
<jdbc.version>1.3</jdbc.version>
<jdbc.driverClassName>com.p6spy.engine.spy.P6SpyDriver</jdbc.driverClassName>
<jdbc.url><![CDATA[jdbc:h2:target/testdb/bioinvindex]]></jdbc.url>
<jdbc.username>sa</jdbc.username>
<jdbc.password/>
</properties>
<!-- WARNING: You do need this dependency as well for this profile, Maven doesn't accept it here
<dependencies>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.2.132</version>
</dependency>
</dependencies -->
</profile>
<profile>
<id>oracle</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<jdbc.groupId>com.oracle</jdbc.groupId>
<jdbc.artifactId>ojdbc5</jdbc.artifactId>
<jdbc.version>11.1.0.7.0</jdbc.version>
<jdbc.driverClassName>oracle.jdbc.driver.OracleDriver</jdbc.driverClassName>
<jdbc.url><![CDATA[jdbc:oracle:thin:@apu.ebi.ac.uk:1521:AE2TST]]></jdbc.url>
<jdbc.username>bii</jdbc.username>
<jdbc.password>bii</jdbc.password>
<hibernate.dialect>org.hibernate.dialect.Oracle10gDialect</hibernate.dialect>
<!-- This shoud do something with this Oracle bug: http://forum.hibernate.org/viewtopic.php?t=82 -->
<hibernate.max_fetch_depth>0</hibernate.max_fetch_depth>
</properties>
<!-- WARNING: You do need this dependency as well for this profile, Maven doesn't accept it here
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc5</artifactId>
<version>11.1.0.7.0</version>
</dependency>
</dependencies -->
</profile>
<profile>
<id>mysql</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<hibernate.dialect>org.hibernate.dialect.MySQL5InnoDBDialect</hibernate.dialect>
<jdbc.groupId>mysql</jdbc.groupId>
<jdbc.artifactId>mysql-connector-java</jdbc.artifactId>
<jdbc.version>5.1.6</jdbc.version>
<jdbc.driverClassName>com.mysql.jdbc.Driver</jdbc.driverClassName>
<jdbc.url><![CDATA[jdbc:mysql://localhost:33066/bioinvindex?profileSQL=false]]></jdbc.url>
<jdbc.username>root</jdbc.username>
<jdbc.password></jdbc.password>
</properties>
</profile>
<profile>
<id>postgresql</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<hibernate.dialect>org.hibernate.dialect.PostgreSQLDialect</hibernate.dialect>
<jdbc.groupId>postgresql</jdbc.groupId>
<jdbc.artifactId>postgresql</jdbc.artifactId>
<jdbc.version>8.3-603.jdbc4</jdbc.version>
<jdbc.driverClassName>org.postgresql.Driver</jdbc.driverClassName>
<jdbc.url>
<![CDATA[jdbc:postgresql://localhost/bioinvindex]]>
</jdbc.url>
<jdbc.username>CHANGEME</jdbc.username>
<jdbc.password>CHANGEME</jdbc.password>
</properties>
</profile>
<!-- remember to edit the path to lucene index to match the one declared in the hibernate.properties -->
<profile>
<id>index_local</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<hibernate.search.default.indexBase>/tmp/lucene/bii-local</hibernate.search.default.indexBase>
</properties>
</profile>
<profile>
<id>index_test</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<hibernate.search.default.indexBase>/tmp/bii/luceneindex</hibernate.search.default.indexBase>
</properties>
</profile>
<profile>
<id>index_deploy</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<hibernate.search.default.indexBase>/tmp/lucene/bii-prod</hibernate.search.default.indexBase>
</properties>
</profile>
</profiles>
</profilesXml>