Skip to content

Commit ccf6d51

Browse files
authored
docs: Add a page about service file conflict for überjars (#578)
1 parent 479cbe3 commit ccf6d51

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/src/main/paradox/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The Akka Persistence R2DBC plugin allows for using SQL database with R2DBC as a
2020
* [Migration tool](migration.md)
2121
* [Migration Guide](migration-guide.md)
2222
* [Native Image](native-image.md)
23+
* [Troubleshooting](troubleshooting.md)
2324
* [Contributing](contributing.md)
2425

2526
@@@
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Troubleshooting
2+
3+
## Failing to use the configured plugin
4+
5+
If you see something like this, where the driver is not available:
6+
7+
```
8+
Unable to create a ConnectionFactory for 'ConnectionFactoryOptions{options={...}}'. Available drivers: [ pool ]
9+
```
10+
11+
It is likely because you are building a shaded jar with all dependencies and the ´META-INF/services` entry for
12+
the R2DBC driver for the database you are using got lost.
13+
14+
If using maven shading plugin, make sure to use the [ServicesResourceTransformer](https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html#ServicesResourceTransformer).
15+
16+
For other build tools, make sure the tool merges `META-INF/services/io.r2dbc.spi.ConnectionFactoryProvider`
17+
files rather than dropping one when there is a conflict.

0 commit comments

Comments
 (0)