1 year ago

#54970

test-img

Reinhard

Java module error: Unnamed module reads package com.graphhopper from both graphhopper.core and graphhopper.web.api

I'm currently working on a java project. Every time I try to run the code my IDE (IntelliJ) throws the following error

java: the unnamed module reads package com.graphhopper from both graphhopper.core and graphhopper.web.api

For build and dependency management I use Maven. For a build in openstreetmap routing system, I use GraphHopper. I included it into the pom.xml.

<dependencies>
    <dependency>
        <groupId>com.graphhopper</groupId>
        <artifactId>graphhopper-core</artifactId>
        <version>4.0</version>
    </dependency>
</dependencies>

In the module info I added it as well.

requires graphhopper.web.api;
requires graphhopper.core;

Since it seems to be an IDE problem I don't add the code in the post. Happy to share if needed. Any hints are much appreciated.

java

openstreetmap

graphhopper

0 Answers

Your Answer

Accepted video resources