paulc4 / microservices-demo

Demo application to go with Blog on spring.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not work with Java 11

sagevoice opened this issue · comments

As written this code does not work under Java 11. However it can be fixed by adding some dependencies to the pom file. I added the following dependencies and it seems to be working for me fine now.

        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-core</artifactId>
            <version>2.3.0.1</version>
        </dependency>

        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
            <version>2.3.1</version>
        </dependency>

        <dependency>
            <groupId>javax.activation</groupId>
            <artifactId>activation</artifactId>
            <version>1.1.1</version>
        </dependency>

        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.3.0</version>
        </dependency>

        <dependency>
            <groupId>org.javassist</groupId>
            <artifactId>javassist</artifactId>
            <version>3.25.0-GA</version>
        </dependency>

I hope this helps anyone else trying to get this running with Java 11

Thanks for doing this.
I will leave the pom as it is for now, since Java 8 is still so prevalent.

commented

Thank you - just commenting that adding the same extra dependencies fixed this for Java 12 as well.

Thanks again. I have updated my README to reference this issue.

Obrigado ! Salvou.