Thanks Steinar!
regards,
François
fpapon@apache.org
Le 26/09/2019 à 23:11, Steinar Bang a écrit :
> (Not really my news to announce, but I'm doing it anyway...:-) )
>
> The current version of the PostgreSQL JDBC driver, ie. 4.2.8, comes with
> a karaf feature repository file attached. The karaf feature repository
> file has been present since version 4.2.7 of the driver:
> https://jdbc.postgresql.org/documentation/changelog.html#version_42.2.7
>
> Copy/pastable code for usage with template feature file:
> 1. In pom.xml:
> <properties>
> <postgresql.version>42.2.8</postgresql.version>
> </properties>
>
> 2. In src/main/feature/feature.xml (ie. the template feature file):
> <features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="authservice.bundle">
> <repository>mvn:org.postgresql/postgresql/${postgresql.version}/xml/features</repository>
> <feature name="${karaf-feature-name}">
> <feature>postgresql</feature>
> <feature>scr</feature>
> </feature>
> </features>
>
> Copy/pastable code for usage with a feature file dependency:
> 1. In pom.xml:
> <properties>
> <postgresql.version>42.2.8</postgresql.version>
> </properties>
>
> <dependencies>
> <dependency>
> <groupId>org.postgresql</groupId>
> <artifactId>postgresql</artifactId>
> <version>${postgresql.version}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.postgresql</groupId>
> <artifactId>postgresql</artifactId>
> <version>${postgresql.version}</version>
> <type>xml</type>
> <classifier>features</classifier>
> </dependency>
> </dependencies>
>
|