-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add a page about service file conflict for überjars (#578)
- Loading branch information
1 parent
479cbe3
commit ccf6d51
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Troubleshooting | ||
|
||
## Failing to use the configured plugin | ||
|
||
If you see something like this, where the driver is not available: | ||
|
||
``` | ||
Unable to create a ConnectionFactory for 'ConnectionFactoryOptions{options={...}}'. Available drivers: [ pool ] | ||
``` | ||
|
||
It is likely because you are building a shaded jar with all dependencies and the ´META-INF/services` entry for | ||
the R2DBC driver for the database you are using got lost. | ||
|
||
If using maven shading plugin, make sure to use the [ServicesResourceTransformer](https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html#ServicesResourceTransformer). | ||
|
||
For other build tools, make sure the tool merges `META-INF/services/io.r2dbc.spi.ConnectionFactoryProvider` | ||
files rather than dropping one when there is a conflict. |