International-Data-Spaces-Association / DataspaceConnector

This is an IDS Connector reference implementation.
Apache License 2.0
33 stars 29 forks source link

Error when resolving dependencies during DataspaceConnector building #723

Open JingWC opened 11 months ago

JingWC commented 11 months ago

Hi there,

I'm currently building dataspaceconnector (version 8.0.2). However, I'm encountering an error during the build process. Here are the details of the error:

[ERROR] Failed to execute goal on project dataspaceconnector: Could not resolve dependencies for project io:dataspaceconnector:jar:8.0.2: Failed to collect dependencies at ids.messaging:broker:jar:7.0.0 -> ids.messaging:messaging:jar:7.0.0 -> ids.messaging:core:jar:7.0.0 -> de.fraunhofer.iais.eis.ids.infomodel:java:jar:4.2.7: Failed to read artifact descriptor for de.fraunhofer.iais.eis.ids.infomodel:java:jar:4.2.7: Could not transfer artifact de.fraunhofer.iais.eis.ids.infomodel:java:pom:4.2.7 from/to eis-ids-public (https://maven.iais.fraunhofer.de/artifactory/eis-ids-public): Transfer failed for https://maven.iais.fraunhofer.de/artifactory/eis-ids-public/de/fraunhofer/iais/eis/ids/infomodel/java/4.2.7/java-4.2.7.pom: No route to host (Host unreachable) -> [Help 1]

It seems that the build process is failing to resolve the dependencies for the dataspaceconnector. Specifically, there seems to be an issue with resolving the de.fraunhofer.iais.eis.ids.infomodel:java artifact (version 4.2.7) from the eis-ids-public repository.

I have tried to access the artifact using the provided URL (https://maven.iais.fraunhofer.de/artifactory/eis-ids-public/de/fraunhofer/iais/eis/ids/infomodel/java/4.2.7/java-4.2.7.pom), but I'm receiving a "No route to host (Host unreachable)" error.

Could you please help me understand why I'm unable to resolve this artifact and suggest any possible solutions? Any assistance would be greatly appreciated.

Thank you!

RyanKelvinFord commented 11 months ago

I am having the same issue

ctoscano-eu commented 11 months ago

I am also having the same problem, access to https://maven.iais.fraunhofer.de/artifactory/eis-ids-public is no longer working ...

RyanKelvinFord commented 10 months ago

I am currently looking into how we can host and sort this out, if you're interested as a community we can try to solve this ASAP?

JingWC commented 10 months ago

I am currently looking into how we can host and sort this out, if you're interested as a community we can try to solve this ASAP?

Have you found the approach to solve this problem?I tried compiling the source code of the artifact from https://github.com/International-Data-Spaces-Association/Java-Representation-of-IDS-Information-Model but I failed because the source code lacks compilation instructions.

karikolehmainen commented 10 months ago

Most feasible solution seems to be to extract the jar files from Dataspace connector docker image (docker cp container_id:/ ./) and modify the jar files to not have links to the Fraunhover Maven repository. Connector pom.xml needs to be also modified and repository links to Fraunhover and Sovity removed (some libraries from Sovity link to that Fraunhover repo as well)

We are working to host these libraries our selves and can offer the maven repo to public use once (and if) we get them hosted properly

karikolehmainen commented 10 months ago

I ran into this issue when compiling connector based on dataspace connector: #16 14.02 Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact ids.messaging:messaging-services:pom:7.0.0 in Maven repository (https://repo1.maven.org/maven2/) Now I have not been able to find any library that would define the artifact "messaging-services" outside of tags.

I have build libraries from https://github.com/International-Data-Spaces-Association/IDS-Messaging-Services but none of the jar-files exported from there have this artifactID. Does anyone know if there even is this kind of artifact or should I just remove the dependency from broker-7.0.0.jar?

karikolehmainen commented 10 months ago

I was able to export all dependecies from IDS-Messaging-Services to VTT hosted Maven repo at maven.collab-cloud.eu. Version of the library is 7.0.1. Repo is public so you can fetch the libraries if you define repository in your pom.xml like this:

                <repository>
                        <id>reposilite-repository-releases</id>
                        <name>Reposilite Repository</name>
                        <url>https://maven.collab-cloud.eu/releases</url>
                        <snapshots>
                                <enabled>false</enabled>
                        </snapshots>
                        <releases>
                                <enabled>true</enabled>
                        </releases>
                </repository>
piponaz0 commented 4 months ago

I was able to export all dependecies from IDS-Messaging-Services to VTT hosted Maven repo at maven.collab-cloud.eu. Version of the library is 7.0.1. Repo is public so you can fetch the libraries if you define repository in your pom.xml like this:

                <repository>
                        <id>reposilite-repository-releases</id>
                        <name>Reposilite Repository</name>
                        <url>https://maven.collab-cloud.eu/releases</url>
                        <snapshots>
                                <enabled>false</enabled>
                        </snapshots>
                        <releases>
                                <enabled>true</enabled>
                        </releases>
                </repository>

Hi!

I tried your repo in my pom.xml to try to fix the error but I get the following error:

[ERROR] Failed to execute goal on project dataspaceconnector: Could not resolve dependencies for project io:dataspaceconnector:jar:8.0.2: Failed to collect dependencies at ids.messaging:broker:jar:7.0.1: Failed to read artifact descriptor for ids.messaging:broker:jar:7.0.1: Could not transfer artifact ids.messaging:broker:pom:7.0.1 from/to reposilite-repository-releases (https://maven.collab-cloud.eu/releases): Transfer failed for https://maven.collab-cloud.eu/releases/ids/messaging/broker/7.0.1/broker-7.0.1.pom: Connection reset -> [Help 1]

Any idea why I am not getting this dependency? Thank you!