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

Error when resolving dependencies during DataspaceConnector building #723

Open
JingWC opened this issue Oct 30, 2023 · 8 comments
Open

Error when resolving dependencies during DataspaceConnector building #723

JingWC opened this issue Oct 30, 2023 · 8 comments

Comments

@JingWC
Copy link

JingWC commented Oct 30, 2023

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!

@JingWC JingWC changed the title Problems when resolving dependencies during DataspaceConnector building Error when resolving dependencies during DataspaceConnector building Oct 30, 2023
@RyanKelvinFord
Copy link

I am having the same issue

@ctoscano-eu
Copy link

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

@RyanKelvinFord
Copy link

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
Copy link
Author

JingWC commented Nov 8, 2023

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
Copy link

karikolehmainen commented Nov 9, 2023

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
Copy link

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
Copy link

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
Copy link

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!

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

5 participants