Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archetype 7.0.0 does not work with java 17 #208

Open
dmm9 opened this issue Sep 18, 2023 · 0 comments
Open

Archetype 7.0.0 does not work with java 17 #208

dmm9 opened this issue Sep 18, 2023 · 0 comments

Comments

@dmm9
Copy link

dmm9 commented Sep 18, 2023

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant