You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Oliver Fürniß <ol...@virtimo.de> on 2022/07/04 06:27:30 UTC

Custom Karaf 4.2.16 with pax-jdbc 1.5.3

Good morning,

Karaf 4.2.16 embeds pax-jdbc 1.5.0. I would like to replace this version
with pax-jdbc 1.5.3. Is this
possible?

In my custom Karaf build I was able to update/replace the pre-installed
pax-jdbc bundles with a processing.xml (featuresProcessing
-> bundleReplacements -> bundle) but failed with 'pax-jdbc-features' which
installs the pax-jdbc-features-1.5.0-features.xml (result 1.5.0 and 1.5.3
are installed). Not sure if I am on the right track or if there is a much
simpler solution. Any help would be appreciated. :-)

All the best.
 Oliver

Re: Custom Karaf 4.2.16 with pax-jdbc 1.5.3

Posted by Oliver Fürniß <ol...@virtimo.de>.
Thanks Grzegorz,

Now pax-jdbc 1.5.0 gets replaced with 1.5.3. :-)

My changes to the custom Karaf 4.2.16 pom.xml

<project...>
  ...
  <properties>
    ...
    <pax-jdbc.version>1.5.3</pax-jdbc.version>
    ...
  </properties>
  <dependencies>
    ...
    <dependency>
      <groupId>org.ops4j.pax.jdbc</groupId>
      <artifactId>pax-jdbc-features</artifactId>
      <version>${pax-jdbc.version}</version>
      <classifier>features</classifier>
      <type>xml</type>
    </dependency>
    ...
  </dependencies>
  <build>
    ...
    <plugins>
      ...
      <plugin>
        <groupId>org.apache.karaf.tooling</groupId>
        <artifactId>karaf-maven-plugin</artifactId>
        ...
        <configuration>
          ...
          <featuresProcessing>${basedir}/processing.xml</featuresProcessing>
          ...
        </configuration>
    ...
    </plugins>
  ...
  </build>
  ...
</project>

and the processing.xml

<?xml version="1.0" encoding="UTF-8"?>
<featuresProcessing xmlns="
http://karaf.apache.org/xmlns/features-processing/v1.0.0">
    <blacklistedRepositories>

<repository>mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.5.0/xml/features</repository>
    </blacklistedRepositories>
</featuresProcessing>

Best,
 Oliver

Am Mo., 4. Juli 2022 um 08:56 Uhr schrieb Grzegorz Grzybek <
gr.grzybek@gmail.com>:

> Hello
>
> In etc/org.apache.karaf.features.xml (or at karaf-maven-plugin
> configuration stage) you can put 1.5.0 version of pax-jdbc features into
> backlistedRepositories element.
>
> Karaf Maven Plugin configuration:
>
>                     <blacklistedRepositories>
>                         <!-- Blacklisting some repositories because the
> closure is not consistent -->
>
> <repository>mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.5.0/xml/features</repository>
>
> This will add a <blacklistedRepositories>/<repository> element to
> etc/org.apache.karaf.features.xml.
>
> Then you can simply use your 1.5.3 version of features.
>
> regards
> Grzegorz Grzybek
>
> pon., 4 lip 2022 o 08:27 Oliver Fürniß <ol...@virtimo.de>
> napisał(a):
>
>> Good morning,
>>
>> Karaf 4.2.16 embeds pax-jdbc 1.5.0. I would like to replace this version
>> with pax-jdbc 1.5.3. Is this
>> possible?
>>
>> In my custom Karaf build I was able to update/replace the pre-installed
>> pax-jdbc bundles with a processing.xml (featuresProcessing
>> -> bundleReplacements -> bundle) but failed with 'pax-jdbc-features' which
>> installs the pax-jdbc-features-1.5.0-features.xml (result 1.5.0 and 1.5.3
>> are installed). Not sure if I am on the right track or if there is a much
>> simpler solution. Any help would be appreciated. :-)
>>
>> All the best.
>>  Oliver
>>
>

Re: Custom Karaf 4.2.16 with pax-jdbc 1.5.3

Posted by Grzegorz Grzybek <gr...@gmail.com>.
Hello

In etc/org.apache.karaf.features.xml (or at karaf-maven-plugin
configuration stage) you can put 1.5.0 version of pax-jdbc features into
backlistedRepositories element.

Karaf Maven Plugin configuration:

                    <blacklistedRepositories>
                        <!-- Blacklisting some repositories because the
closure is not consistent -->

<repository>mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.5.0/xml/features</repository>

This will add a <blacklistedRepositories>/<repository> element to
etc/org.apache.karaf.features.xml.

Then you can simply use your 1.5.3 version of features.

regards
Grzegorz Grzybek

pon., 4 lip 2022 o 08:27 Oliver Fürniß <ol...@virtimo.de>
napisał(a):

> Good morning,
>
> Karaf 4.2.16 embeds pax-jdbc 1.5.0. I would like to replace this version
> with pax-jdbc 1.5.3. Is this
> possible?
>
> In my custom Karaf build I was able to update/replace the pre-installed
> pax-jdbc bundles with a processing.xml (featuresProcessing
> -> bundleReplacements -> bundle) but failed with 'pax-jdbc-features' which
> installs the pax-jdbc-features-1.5.0-features.xml (result 1.5.0 and 1.5.3
> are installed). Not sure if I am on the right track or if there is a much
> simpler solution. Any help would be appreciated. :-)
>
> All the best.
>  Oliver
>