holgerfriedrich commented on PR #2214:
URL: https://github.com/apache/karaf/pull/2214#issuecomment-5744908001

   I did some testing in the past with the (already committed but not yet 
published) `aries.proxy-1.1.15-SNAPSHOT`. Apache aries needs to be cloned, then 
proxy installed. I did this with Java 21:
   ```
   mvn install -N -f parent/pom.xml
   mvn install -Daries.skip.version.check=true -f proxy/pom.xml
   ```
   
   From here you can continue with Java 25 default:
   
   Then it needs a small patch to bring in the new version and additional 
dependencies:
   ~~~
   diff --git a/assemblies/features/standard/src/main/feature/feature.xml 
b/assemblies/features/standard/src/main/feature/feature.xml
   index 06bb632a51..62a86fa849 100644
   --- a/assemblies/features/standard/src/main/feature/feature.xml
   +++ b/assemblies/features/standard/src/main/feature/feature.xml
   @@ -37,6 +37,8 @@
            <bundle dependency="false" 
start-level="20">mvn:org.ow2.asm/asm-tree/${asm.version}</bundle>
            <bundle dependency="false" 
start-level="20">mvn:org.ow2.asm/asm-analysis/${asm.version}</bundle>
            <bundle dependency="false" 
start-level="20">mvn:org.ow2.asm/asm-commons/${asm.version}</bundle>
   +        <!-- aries proxy >= 1.1.15 needs objenesis although its import is 
optional -->
   +        <bundle dependency="false" 
start-level="20">mvn:org.objenesis/objenesis/${objenesis.version}</bundle>
            <bundle 
start-level="20">mvn:org.apache.aries.proxy/org.apache.aries.proxy/${aries.proxy.version}</bundle>
        </feature>
    
   diff --git a/bom/pom.xml b/bom/pom.xml
   index 225a9ed2e1..38ea526eac 100644
   --- a/bom/pom.xml
   +++ b/bom/pom.xml
   @@ -478,6 +478,11 @@
                    <artifactId>asm-commons</artifactId>
                    <version>${asm.version}</version>
                </dependency>
   +            <dependency>
   +                <groupId>org.objenesis</groupId>
   +                <artifactId>objenesis</artifactId>
   +                <version>${objenesis.version}</version>
   +            </dependency>
    
                <dependency>
                    <groupId>org.apache.felix</groupId>
   diff --git a/itests/test/src/test/filtered-resources/etc/feature.xml 
b/itests/test/src/test/filtered-resources/etc/feature.xml
   index b4c139af3d..7a0c9d69ab 100644
   --- a/itests/test/src/test/filtered-resources/etc/feature.xml
   +++ b/itests/test/src/test/filtered-resources/etc/feature.xml
   @@ -37,6 +37,7 @@
            <bundle dependency="false" 
start-level="20">mvn:org.ow2.asm/asm-tree/${asm.version}</bundle>
            <bundle dependency="false" 
start-level="20">mvn:org.ow2.asm/asm-analysis/${asm.version}</bundle>
            <bundle dependency="false" 
start-level="20">mvn:org.ow2.asm/asm-commons/${asm.version}</bundle>
   +        <bundle dependency="false" 
start-level="20">mvn:org.objenesis/objenesis/${objenesis.version}</bundle>
            <bundle 
start-level="20">mvn:org.apache.aries.proxy/org.apache.aries.proxy/${aries.proxy.version}</bundle>
        </feature>
    
   diff --git a/pom.xml b/pom.xml
   index 763c497567..ece6f5933d 100644
   --- a/pom.xml
   +++ b/pom.xml
   @@ -263,7 +263,7 @@
            <aries.jndi.api.version>1.1.0</aries.jndi.api.version>
            <aries.jndi.core.version>1.0.2</aries.jndi.core.version>
            <aries.jndi.url.version>1.1.0</aries.jndi.url.version>
   -        <aries.proxy.version>1.1.14</aries.proxy.version>
   +        <aries.proxy.version>1.1.15-SNAPSHOT</aries.proxy.version>
            <aries.proxy.api.version>1.1.1</aries.proxy.api.version>
            <aries.spifly.version>1.3.7</aries.spifly.version>
            <aries.subsystem.api.version>2.0.10</aries.subsystem.api.version>
   @@ -292,6 +292,7 @@
            <maven.wagon.version>3.5.3</maven.wagon.version>
            
<maven-plugin-annotations.version>3.16.0</maven-plugin-annotations.version>
            <maven.resolver.version>2.0.23</maven.resolver.version>
   +        <objenesis.version>3.6</objenesis.version>
    
            <osgi.version>8.0.0</osgi.version>
            
<org.osgi.annotation.bundle.version>2.0.0</org.osgi.annotation.bundle.version>
   ~~~
   
   This makes all our tests work on a Java 25.
   Note that we still lock the code generation to Java 21 in Karaf.
   
   For newer Java versions, aries needs another patch. I tried this and got it 
working with Java 27.
   It matters on which JDK aries proxy runs - not the class file version which 
is generated.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to