You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Sections 6.1 and 6.5 are the more important ones, and the only ones you need if you're using the latest Maven version.*
94
94
95
+
### Local database with utPLSQL and utPLSQL-demo-project
96
+
97
+
To usefully contribute you'll have to setup a local database with installed [latest utPLSQL v3](https://github.com/utPLSQL/utPLSQL) and [utPLSQL-demo-project](https://github.com/utPLSQL/utPLSQL-demo-project).
98
+
The demo-project will serve as your test user. See .travis.yml to see an example on how it can be installed.
99
+
100
+
### Maven settings for utPLSQL-local profile
101
+
102
+
utPLSQL-java-api comes with a preconfigured profile "utPLSQL-local". This profile uses properties to set the correct
103
+
environment variables for DB_URL, DB_USER and DB_PASS which is needed to run the integration tests.
104
+
You can set these properties by adding the following to your Maven settings.xml:
105
+
106
+
```xml
107
+
<settings>
108
+
<!-- ... -->
109
+
<profiles>
110
+
<profile>
111
+
<id>utPLSQL-local</id>
112
+
<properties>
113
+
<dbUrl>localhost:1521/XE</dbUrl>
114
+
<dbUser>app</dbUser>
115
+
<dbPass>app</dbPass>
116
+
</properties>
117
+
</profile>
118
+
</profiles>
119
+
120
+
<activeProfiles>
121
+
<activeProfile>utPLSQL-local</activeProfile>
122
+
</activeProfiles>
123
+
</settings>
124
+
```
125
+
95
126
After configuring your access to Oracle's Maven repository, you will be able to successfully build this API.
96
127
97
128
```bash
98
129
cd utPLSQL-java-api
99
-
mvn clean package install -DskipTests
130
+
mvn clean package install
100
131
```
101
132
102
-
The cmd above is ignoring unit tests because it needs a database connection with the latest utPLSQL v3 installed. Please take a look on .travis.yml and .travis folder to see how testing was configured.
133
+
### Skip the local database part
134
+
135
+
If you want to skip the local database part, just run ``mvn clean package install -DskipTests``.
136
+
You will still be able to run ``mvn test`` because integration tests are run in the ``verify``-phase.
0 commit comments