Skip to content

Archetype 7.0.0 does not work with java 17 #208

@dmm9

Description

@dmm9

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions