osgi / osgi.enroute

The OSGi enRoute project provides a programming model of OSGi applications. This project contains bundles providing the API for the OSGi enRoute base profile and bundles for the OSGi enRoute project. The base profile establishes a runtime that contains a minimal set of services that can be used as a base for applications.
https://enroute.osgi.org/
Apache License 2.0
125 stars 81 forks source link

Archetype 7.0.0 does not work with java 17 #208

Open dmm9 opened 1 year ago

dmm9 commented 1 year ago

Using the archetype "project" with java 17 fails to build.

To reproduce: Java 17 (JDK 17). Following the steps of the Quickstart Tutorial. Maven build fails on the last step: https://enroute.osgi.org/tutorial/020-tutorial_qs.html#running-the-application.

The archetype generates a ~/quickstart/pom.xml with bnd.version set to 4.1.0. Manually setting this version to a newer one (e.g.6.4.0) solves the issue. But this should be fixed in the archetype.

Generated ~/quickstart/pom.xml:

    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <bnd.version>4.1.0</bnd.version>
    </properties>

should be:

    <properties>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <bnd.version>6.4.0</bnd.version>
    </properties>